ds.rename.Rd
DataSHIELD implentation of dplyr::rename
.
ds.rename(df.name = NULL, tidy_expr = NULL, newobj = NULL, datasources = NULL)
Character specifying a serverside data frame or tibble.
List with format new_name = old_name to rename selected variables.
Character specifying name for new server-side data frame.
DataSHIELD connections object.
No return value, called for its side effects. An object (typically a data frame or tibble)
with the name specified by newobj
is created on the server.
if (FALSE) {
## First log in to a DataSHIELD session with mtcars dataset loaded.
ds.rename(
df.name = "mtcars",
tidy_select = list(new_var_1 = mpg, new_var_2 = cyl),
newobj = "df_renamed",
dataources = conns
)
## Refer to the package vignette for more examples.
}