Compute the mean by row

row_mean(df, na.rm = TRUE, log = FALSE)

Arguments

df

a data frame

na.rm

logical, remove NA values

log

logical, use geometric mean instead of arithmetic mean

Value

A numeric vector