Wrapper to the `dplyr::mutate()` function that adds metadata attributes to the new variables.

mutate(.data, ..., units = NULL)

Arguments

.data

An ecodata data frame

...

Parameters passed on to mutate

units

Optional, character string, or vector of strings, for the units to give to the new variables. Should be a vector of the same length as the number of expressions, or a single string if all the expressions have the same units. Default for each new variable is to use the units for the first variable in the expression.

Value

An ecodata data frame with the new variables and metadata attributes

See also

`dplyr::mutate()`