Note the inconsistency in the names in these two examples. X.Time in the first case and Time.1 in the second case.
> transform(BOD, X = BOD[1:2] * seq(6)) Time demand X.Time X.demand 1 1 8.3 1 8.3 2 2 10.3 4 20.6 3 3 19.0 9 57.0 4 4 16.0 16 64.0 5 5 15.6 25 78.0 6 7 19.8 42 118.8 > transform(BOD, X = BOD[1] * seq(6)) Time demand Time.1 1 1 8.3 1 2 2 10.3 4 3 3 19.0 9 4 4 16.0 16 5 5 15.6 25 6 7 19.8 42 -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel