data("airquality")
dt <- airquality
head(add(from = dt, formula = ~ log(Ozone)))
head(add(from = dt, formula = ~ log(Ozone) + log(Wind)))
head(add(from = dt, formula = ~ log(Ozone), as = "Ozone_1"))
head(add(from = dt, formula = Ozone + Wind ~ log()))
head(add(from = dt, formula = ~ log()))
head(add(from = dt, formula = .~ log(), position = "left"))
head(add(from = dt, formula = .~ log(), na.remove = TRUE))
head(add(from = dt, formula = ~ I((Ozone>5))))
head(add(from = dt, formula = ~ I((Ozone>5)), logic_convert = FALSE ))
head(add(from = dt, formula = Ozone + Wind ~ C(Ozone-Ozone)))
head(add(from = dt, formula = ~ C(log(Ozone))))
head(add(from = dt, formula = ~ C(5)))
head(add(from = dt, formula = Ozone + Wind ~ C(Ozone-Ozone)))
head(add(from = dt, formula = Ozone + Wind ~ C(log(Ozone))))
foo <- function(x, a = 100){return(x-x + a)}
head(add(from = dt, formula = Ozone + Month~ I(foo(a = 100))))
head(add(from = dt, formula = Ozone + Month~ foo()))
head(add(from = dt, formula = ~ I(foo(Ozone, a = 100))))
Run the code above in your browser using DataLab