RE: [R] attached file with syntax error

From: Ted Harding <Ted.Harding_at_nessie.mcc.ac.uk>
Date: Fri 20 May 2005 - 23:09:27 EST


On 20-May-05 Eric Lecoutre wrote:
>
> Well...
>
> You just can't end vector declaration with a comma...
>

>> x <- c(0,1,)

> Error: syntax error
>> x <- c(0,1)

>
> Eric

Well, maybe some people can't achieve that, but I can:

> x<-c(1,2,3,)
> x

[1] 1 2 3

(on both R-1.8.0 and R-2.1.0beta)

Best wishes to all,
Ted.



E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861
Date: 20-May-05                                       Time: 14:07:14
------------------------------ XFMail ------------------------------

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 20 23:32:47 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:57 EST