transform is a generic function, which---at least currently---only does anything useful with data frames. transform.default converts its first argument to a data frame if possible and calls transform.data.frame.
transform(`_data`, …)
| Parameter | Description |
|---|---|
_data |
The object to be transformed |
… |
Further arguments of the form tag=value |
# NOT RUN {
transform(airquality, Ozone = -Ozone)
transform(airquality, new = -Ozone, Temp = (Temp-32)/1.8)
attach(airquality)
transform(Ozone, logOzone = log(Ozone)) # marginally interesting ...
detach(airquality)
# }