[R] 回复: Uploading CSV file into R

shizhao cao poemcao at gmail.com
Fri May 13 08:45:46 CEST 2011


when uploading csv  file to R, the file.csv should save as".csv" from". 
xls",if u just  modify suffix of files, files cannot be read .

BTW,who know the problem i meet, "strsplit(txt$Sentence,",|。|!|?|、")" how to 
understand this order~

> txt=read.csv("1988.csv",colClasses="character")
> sentences=strsplit(txt$Sentence,",|。|!|?|、")
Error in strsplit(txt$Sentence, ",|。|!|?|、") : 
  non-character argument




More information about the R-help mailing list