dh.renameVars | R Documentation |
This function is an analogue of 'dplyr::rename' which allows you to rename columns of a serverside data frame.
dh.renameVars(
df = NULL,
current_names = NULL,
new_names,
conns = NULL,
checks = TRUE
)
df |
Character specifying a server-side data frame. |
current_names |
Character vector of columns within 'df' to rename. |
new_names |
Character vector giving the new names for the columns specified in 'current_names'. |
conns |
DataSHIELD connections object. |
checks |
Logical; if TRUE checks are performed prior to running the function. Default is TRUE. |
Data frame specified in 'df' is returned server-side with variables renamed.
Other data manipulation functions:
dh.dropCols()
,
dh.makeAgePolys()
,
dh.makeIQR()
,
dh.makeStrata()
,
dh.quartileSplit()
,
dh.tidyEnv()
,
dh.zByGroup()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.