powered by
Tries to make apply more readable. Other functions to think of include cumsum, rowSums, colMeans, etc.
cumsum
rowSums
colMeans
umx_apply(FUN, of, by = "columns", ...)
The function to apply
The dataframe to work with
What to apply the function to: columns or rows (default = "columns")
optional arguments to FUN, i.e., na.rm = T
- object
- http://tbates.github.io, https://github.com/tbates/umx
- umx_aggregate
umx_aggregate
Other Misc: umxEval, umx_APA_model_CI, umx_add_variances, umx_default_option, umx_get_bracket_addresses, umx_object_as_str, umx_string_to_algebra, umx
umxEval
umx_APA_model_CI
umx_add_variances
umx_default_option
umx_get_bracket_addresses
umx_object_as_str
umx_string_to_algebra
umx
# NOT RUN { umx_apply(mean, mtcars, by = "columns") umx_apply(mean, of = mtcars, by = "columns") umx_apply(mean, by = "rows", of = mtcars[1:3,], na.rm = TRUE) # }
Run the code above in your browser using DataLab