collectAsSparseMatrix | R Documentation |
offloading the majority of processing onto sql if dbplyr tables are involved
collectAsSparseMatrix( df, rowVar, colVar, valueVar = NULL, rowNameVar = NULL, colNameVar = NULL, ... )
df |
- a df |
rowVar |
- the dataframe columns(s) which define the matrix row, quoted by vars(...) - typically this is the observation id |
colVar |
- the dataframe columns(s) which define the matrix columns, quoted by vars(...) - typically this is the feature id |
valueVar |
- the name of the value variable. (#TODO could be missing - in which case use binary) |
rowNameVar |
- (optional) the dataframe column continaing the row names otherwise use rowVar |
colNameVar |
- (optional) the dataframe column continaing the column names otherwise use colVar |
... |
- other parameters passes to Matrix::sparseMatrix |
a dbplyr dataframe containing the grouped function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.