dssSubset: Subset a dataframe using free filters

Description Usage Arguments Value Examples

View source: R/dssSubset.R

Description

Alternative to the datashield function ds.subset

Usage

1
2
3
4
5
6
7
8
9
dssSubset(
  symbol,
  what,
  row.filter = TRUE,
  col.filter = TRUE,
  async = TRUE,
  wait = TRUE,
  datasources = NULL
)

Arguments

symbol

the name of the new dataframe

what

the name of the source dataframe

row.filter

a character containing the row filtering conditions. The filter is executed in the dataframe environment so no need to qualify the column names. Ex: .... row.filter = "LBTESTCD == 'HDL'"

col.filter

a character containing the column filtering conditions. Ex: "c('LBTESTCD', 'LBORRES')"

async

same as in datashield.assign

wait

same as in datashield.assign

datasources

same as in datashield.assign

Value

It doesn't return anything, it creates a filtered dataframe on the remote node

Examples

1
2
3
4
5
6
7
# open a local pseudo connection:
opals <- dssCreatePseudoServers(servers = 1, tie_first_to_GlobalEnv = TRUE)
# load iris
data('iris')
# now play around:
dssSubset('iris_filtered', 'iris', row.filter = 'Sepal.Length < 6 & Species == "setosa"', col.filter = '!(colnames(iris) == "Petal.Width")', datasources = opals)
str(iris_filtered)

IulianD/dsSwissKnifeClient documentation built on June 23, 2020, 4:38 p.m.