[R] Paste Funtion Help

SHIVI BHATIA shivi.bhatia at safexpress.com
Thu Feb 4 09:33:13 CET 2016


HI Team, 

 

Need help with the below syntax.

 

merge.salaries[, name:=paste("nameFirst","nameLast")]. Here merge.salaries
is the data set I have merged. 

 

There are 2 columns nameFirst and nameLast I need to merge these two into
one and name as name however I can getting an error:

 

Error in `[.data.frame`(merge.salaries, , `:=`(name, paste("nameFirst",  : 

  could not find function ":="

 

Please advice. 

 

Thanks, Shivi

Mb: 9891002021

 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20160204/99039a80/attachment.pl>


More information about the R-help mailing list