[R] Question on Import
jim at bitwrit.com.au
Mon Apr 25 10:52:37 CEST 2011
On 04/25/2011 05:58 PM, Georgina Salazar wrote:
> I have the data in a tab delimited text file titled "ken_data_try_anova." I
> tried to import it into R entering
> but received the error message
> Error in read.table(file = file, header = header, sep = sep, quote = quote, :
> object 'ken_data_try_anova' not found
If that doesn't work, turn off the "Hide extensions for known file
types" option in Windows Explorer and find out what the extension for
this file is.
> I have another file called 10423nad.txt.
> I tried
> but got the error message
> Error: unexpected input in "data<-as.matrix(read.table(C:\"
The single backslash doesn't work as a path delimiter in R. Try:
That is, replace the backslashes with forward slashes (and don't forget
> How do I place the data where the import function can find it? Or, how do I
> correct my use of the import functions?
More information about the R-help