mutate_x() adds new variables and preserves existing ones.
select() keeps only the listed variables; rename() keeps all variables.
Note: this function uses xpose.xtras::edit_xpose_data, but is otherwise
the same as <xpose::mutate>.
Usage
mutate_x(.data, ..., .problem, .source, .where)
rename_x(.data, ..., .problem, .source, .where)Arguments
- .data
An xpose database object.
- ...
Name-value pairs of expressions. Use
NULLto drop a variable.- .problem
The problem from which the data will be modified
- .source
The source of the data in the xpdb. Can either be 'data' or an output file extension e.g. 'phi'.
- .where
A vector of element names to be edited in special (e.g.
.where = c('vpc_dat', 'aggr_obs')with vpc).
