mutate() adds new variables and preserves existing; transmute() drops existing variables.

# S3 method for FDF
mutate(.data, ...)

mutate(.data, ...)

Arguments

.data

A FDF.

...

Name-value pairs of expressions. Use NULL to drop a variable.

These arguments are automatically quoted and evaluated in the context of the data frame. They support unquoting and splicing. See vignette("programming") for an introduction to these concepts.

Value

An object of the same class as .data.

Examples

(test <- FDF(datasets::airquality))
#> # A Filebacked Data Frame with 153 rows and 6 columns.
mutate(test, Temp_Celsius = (Temp - 32) / 1.8, Temp_Kelvin = Temp_Celsius + 273.15)
#> # A Filebacked Data Frame with 153 rows and 8 columns.