Hi - I am not familiar with R. Could I ask you a quick question? When I read a file like this, I get an error. Not sure what I am doing wrong. I use a MAC. How do I specify a full path name for a file in R? Or do files have to reside locally?
> KoreaAuto <- read.table(""/Users/ raviramaswamy/Documents/Rutgers/STT 586/HW1 Data.txt"") Error: unexpected numeric constant in "KoreaAuto <- read.table(""/Users/raviramaswamy/Documents/Rutgers/STT 586" > Seems like the working directory is > getwd() [1] "/Users/raviramaswamy" > so I said this and still got an error > KoreaAuto <- read.table(/Documents/Rutgers/HW1Data) Error: unexpected '/' in "KoreaAuto <- read.table(/" Could someone please help me with the correct syntax? Thanks Ravi Year AO GNP CP OP 01 1974 .0022 183 2322 189 02 1975 .0024 238 2729 206 03 1976 .0027 319 3069 206 04 1977 .0035 408 2763 190 05 1978 .0050 540 2414 199 06 1979 .0064 676 2440 233 07 1980 .0065 785 2430 630 08 1981 .0069 944 2631 740 09 1982 .0078 1036 3155 740 10 1983 .0095 1171 3200 660 [[alternative HTML version deleted]] ______________________________________________ R-help@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.