ds.select {dsTidyverseClient}R 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)

[Package dsTidyverseClient version 1.0.2 Index]