Re: [R] "unexpected symbol" error?

From: Charles C. Berry <cberry_at_tajo.ucsd.edu>
Date: Mon, 25 Aug 2008 16:13:57 -0700

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

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 Mon 25 Aug 2008 - 23:16:55 GMT

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 Mon 25 Aug 2008 - 23:33:55 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