Description Usage Arguments Value Examples
Alternative to the datashield function ds.subset
1 2 3 4 5 6 7 8 9 |
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 |
It doesn't return anything, it creates a filtered dataframe on the remote node
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.