[R] Error message after following Appendix A R-intro

Ben Tupper btupper at bigelow.org
Thu Oct 17 03:20:10 CEST 2013


On Oct 16, 2013, at 7:03 PM, timscharlton <tcharlton at aquafirma.com.au> wrote:

> I am new to R and tried to go through the commands shown at App. A of
> "R-intro" (p.78).  
> I get the following error message.
>> fm<-1m(y~x,data=dummy)
> Error: unexpected symbol in "fm<-1m"

I think the example shows the function 'lm', which is an acronym for 'linear model', not '1m', which is an acronym 'one melon'. 

> I suspect it might be related to the tilda.  All the commands in R-intro for
> the tilda show it in a superscript postion. From my keyboard I only have the
> option as shown above.  
> Any help would be much appreciated.
> Tim
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-message-after-following-Appendix-A-R-intro-tp4678394.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> 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.

Ben Tupper
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544

More information about the R-help mailing list