[R] "unexpected symbol" error?

Charles C. Berry cberry at tajo.ucsd.edu
Tue Aug 26 01:13:57 CEST 2008


On Mon, 25 Aug 2008, Ayesha Gray wrote:

> Hi. I am getting an "unexpected symbol" error, which I haven't gotten before. 
> I have checked my data and searched the FAQ. I hoping someone has a 
> suggestion on what I might be doing wrong? Thanks!
>
> A. Gray
> Fisheries Consultant
>
> Here's the code I'm using and the error:
>
>>  0708smolts <- read.csv("C:\Documents and Settings\ayesha\My 
> Documents\USFWS\Caswell_RST\2008Report\L_Wreg\0708smolts_2.csv", header=T, 
> sep=",")
>
> Error: unexpected symbol in "0708smolts"

See

 	?backtick

> 0708smolts <- c("foo","bar")
Error: unexpected symbol in "0708smolts"
> `0708smolts` <- c("foo","bar")
> ls()
[1] "0708smolts"
> 0708smolts
Error: unexpected symbol in "0708smolts"
> `0708smolts`
[1] "foo" "bar"
>

HTH,

Chuck

>
> This email has been processed by SmoothZap - www.smoothwall.net
>
> ______________________________________________
> 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.
>
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901



More information about the R-help mailing list