rowApply | R Documentation |
This is intended to work similar to apply(x,1,f), but instead of coercing the row into vector, they are provided as individual function arguments. This helps preserve the original data types
rowApply(tbl, f)
tbl |
a data.frame |
f |
a function with parameters matching the column names |
a list of the return values of f
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.