rowLapply | R Documentation |
Just like an lapply
on data frames,
but on the rows.
rowLapply(df, fun, ..., unlist = FALSE) rowSapply(df, fun, ..., unlist = FALSE, simplify = TRUE, use.names = TRUE)
df |
[ |
fun |
[ |
... |
[ |
unlist |
[ |
simplify |
[ |
use.names |
[ |
[list
or simplified object]. Length is nrow(df)
.
rowLapply(iris, function(x) x$Sepal.Length + x$Sepal.Width)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.