| applyOverDFList | R Documentation |
applyOverDFList operates on a list of data frames where all data frames
has the same size and columns. Column of interest is extracted from each data
frame and column binded in groups, next fun is applied over
rows. Final result is a matrix with result for each group on a separate column.
Function is parallelized over groups.
applyOverDFList(list_of_df, col_name, fun, groups)
list_of_df |
list of |
col_name |
string specifying column in |
fun |
function to apply, should take a single vector as a argument. |
groups |
factor defining how elements of |
matrix with nrow(list_of_df[[1]]) rows and
nlevels(groups) columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.