DataSHIELD implentation of dplyr::rename.

ds.rename(df.name = NULL, tidy_expr = NULL, newobj = NULL, datasources = NULL)

Arguments

df.name

Character specifying a serverside data frame or tibble.

tidy_expr

List with format new_name = old_name to rename selected variables.

newobj

Character specifying name for new server-side data frame.

datasources

DataSHIELD connections object.

Value

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.

Examples

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.
}