ehi_values | R Documentation |
Calculate the sum on non-NA values in all columns in the specified direction( 1 == sum all positives, -1 sum absolutes values of negatives)
ehi_values(data, cols = matches("^ehi_[0-9][0-9]$"), direction = 1)
data |
data.frame containing ehi data |
cols |
tidy-selection of all ehi columns |
direction |
sum positive or negatives (1 for positive, -1 for negative) |
numeric vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.