Skip to contents

[Deprecated]

This function was an analogue of dplyr::rename(). It was deprecated because you can now use dsTidyverseClient::ds.rename() which is much quicker and more flexible.

Usage

dh.renameVars(
  df = NULL,
  current_names = NULL,
  new_names,
  conns = NULL,
  checks = TRUE
)

Arguments

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.

Value

Data frame specified in df is returned server-side with variables renamed.