On May 22, 2013, at 01:54 , David Winsemius wrote:

>> {
>> test0 <- transform(test, (get(var.names[i])) = 0)
> 
> There is no `get<-` function. You need to use assign.

Also note that transform's "left hand sides" are really names of function 
arguments and therefore syntactically cannot be expressions. The within() 
function allows full assignment syntax. 

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd....@cbs.dk  Priv: pda...@gmail.com

______________________________________________
R-help@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.

Reply via email to