[R] long command line cut in 2 parts
arnaud Gaboury
arnaud.gaboury at gmail.com
Thu May 13 15:19:38 CEST 2010
Removing the + sign resolves the problem.
TY
> -----Original Message-----
> From: Muhammad Rahiz [mailto:muhammad.rahiz at ouce.ox.ac.uk]
> Sent: Thursday, May 13, 2010 3:15 PM
> To: arnaud Gaboury
> Cc: r-help at r-project.org
> Subject: Re: [R] long command line cut in 2 parts
>
> Dear Arnaud,
>
> Wrap a pair of curly brackets around the command line and remove the
> "+" like the following;
>
> zz<-{merge(transform(merge(value,allcon,all.y=T),SHORTDESCRIPTION=NULL,
> VALUE=NULL,PL=-VALUE*pl,quantity=NULL),PosB,all.x=T,sort=F )}
>
>
> Muhammad
>
>
> arnaud Gaboury wrote:
> > Dear group,
> >
> > I have this command line in a function:
> >
> > zz<-
> merge(transform(merge(value,allcon,all.y=T),SHORTDESCRIPTION=NULL,VALUE
> =
> > NULL,PL=-VALUE*pl,quantity=NULL),PosB,all.x=T,sort=F)
> >
> > I want to cut it in 2 lines (just for convenient purpose). Here is
> what I
> > did :
> >
> >
> > zz<-
> merge(transform(merge(value,allcon,all.y=T),SHORTDESCRIPTION=NULL,
> > + VALUE=NULL,PL=-VALUE*pl,quantity=NULL),PosB,all.x=T,sort=F)
> >
> > But when I source the function, I get an error message:
> >
> > Error in source("C:\\Users\\arno\\Documents\\r\\LSC\\PLwork2.r") :
> > C:\Users\arno\Documents\r\LSC\PLwork2.r:34:10: unexpected '='
> > 33: zz<-
> merge(transform(merge(value,allcon,all.y=T),SHORTDESCRIPTION=NULL,
> > 34: + VALUE=
> > ^
> >
> > What is wrong?
> >
> > TY for any help
> >
> > ______________________________________________
> > 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.
> >
More information about the R-help
mailing list