sum_score | R Documentation |
sum_score() computes the mean for a given set of variables in a row wise manner
sum_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 sums (default is na.rm=TRUE)
a numeric vector
library(dplyr)
data_frame %>%
mutate(score = sum_score(x, z, y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.