Does what rowMeans() does can be used one its own without dplyr::mutate() within a pipe.

mutate_rowmeans(data, new_var, ..., na.rm = FALSE)

Arguments

data

the dataframe that contains the variables to get the row means from

new_var

the name of the new variable for which you'll put the row means in quotes

...

the variables (unquoted) to be included in the row means

na.rm

should the missing values be ignored? default is FALSE

Value

the row means included within the data.frame