[R] 回复: Uploading CSV file into R

From: shizhao cao <poemcao_at_gmail.com>
Date: Thu, 12 May 2011 23:45:46 -0700 (PDT)

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

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 13 May 2011 - 15:22:49 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 13 May 2011 - 15:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive