Skip to content
Prev 62612 / 63424 Next

transform

Yes. A quirk, rather than a bug I'd say. One issue is that the internal logic of transform() relies on

    e <- eval(substitute(list(...)), `_data`, parent.frame())
    tags <- names(e)

so untagged entries in ... will not be included. The other part is a direct consequence of a quirk in data.frame:
Ozone Solar.R Wind Temp Month Day          x
1    41     190  7.4   67     5   1  0.3075402
2    36     118  8.0   72     5   2  0.7765265
3    12     149 12.6   74     5   3  0.3909341
4    18     313 11.5   62     5   4  0.4733170
5    NA      NA 14.3   56     5   5 -0.6947709
6    28      NA 14.9   66     5   6  0.1126040

whereas (the wisdom of this escapes me)
Ozone Solar.R Wind Temp Month Day        y.x         y.z
1    41     190  7.4   67     5   1 -0.9250228  0.46483406
2    36     118  8.0   72     5   2 -0.5035793  0.28822668
...

On the whole, I think that transform was never designed (nor documented) to take data frame arguments, so caveat emptor.

- Peter