[R] long command line cut in 2 parts

arnaud Gaboury arnaud.gaboury at gmail.com
Thu May 13 14:54:29 CEST 2010


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



More information about the R-help mailing list