dh.renameVars: Rename one or more columns within a serverside data frame

View source: R/rename-vars.R

dh.renameVarsR Documentation

Rename one or more columns within a serverside data frame

Description

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


lifecycle-project/ds-cs-functions documentation built on Nov. 18, 2024, 3:36 p.m.