ds.select: Keep or drop columns using their names and types

View source: R/ds.select.R

ds.selectR Documentation

Keep or drop columns using their names and types

Description

DataSHIELD implentation of dplyr::select.

Usage

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

Arguments

df.name

Character specifying a serverside data frame or tibble.

tidy_expr

List of one or more unquoted expressions separated by commas. Variable names can be used as if they were positions in the data frame, so expressions like x:y can be used to select a range of 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

## Not run: 
ds.select(
  df.name = "mtcars",
  tidy_expr = list(mpg, starts_with("t")),
  newobj = "df_subset",
  dataources = conns
)

## End(Not run)

dsTidyverseClient documentation built on April 12, 2025, 1:55 a.m.