[R] one command on several lines

David Barron david.barron at jesus.ox.ac.uk
Wed Dec 5 15:36:28 CET 2001


The problem with this is the use of the equals sign, not continuing over
more than one line.  It should be
a <- c(1990," ",1991,...)

David

----- Original Message -----
From: "Nick Kostrov" <nikolai at eri.u-tokyo.ac.jp>
To: <r-help at stat.math.ethz.ch>
Sent: Wednesday, December 05, 2001 2:30 PM
Subject: [R] one command on several lines


> Hello!
>
> Is it possible to continue expand one command on several lines in R ?
>
> An attempt to write
>
> a=c(1990," ",1991,
>       1992,
>       1993,1994,1995,1996,1997,1998,
>      1999)
>
> in a file and then
>
> source('file')
>
> results in
>
> Error in parse(file, n, text, prompt) : syntax error on line 55
>
>
>
> Thanks.
>
> Nick
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-
> r-help mailing list -- Read
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
>
>

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list