mean_score | R Documentation |
mean_score() computes the mean for a given set of variables in a row wise manner
mean_score(..., na.rm = TRUE)
x, y, z |
are set of variables from a data frame (i.e. a selection of numeric columns) |
simple wrapper to produce row wise means (default is na.rm=TRUE)
a numeric vector
library(dplyr)
data_frame %>%
mutate(score = mean_score(x, z, y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.