add_row_means: Calculate the rowwise mean for columns selected in data.frame

Description Usage Arguments Examples

View source: R/rowwise.R

Description

Calculate the rowwise mean for columns selected in data.frame

Usage

1
add_row_means(.data, ..., .name = "row_mean", na.rm = TRUE)

Arguments

.data

data.frame

...

columns selected for rowwise 'sum' or 'mean' using 'tidyselect' grammar

.name

the name of new column

na.rm

whether to delete the missing value, 'TRUE' or 'FALSE'

Examples

1
2
iris %>%
  add_row_means(starts_with("Sepal"), .name = "Sepal.Mean")

perlatex/easyuse documentation built on April 14, 2020, 5:35 a.m.