Row-wise means
row_means(.data, ...) # S3 method for matrix row_means(.data, cumulative = FALSE, output_mode, output_class, ...) # S3 method for data.frame row_means(.data, cumulative = FALSE, output_mode, output_class, ...)
.data | A two-dimensional data structure. |
---|---|
... | Arguments passed on to
|
cumulative | Logical. Whether to return the cumulative operation. |
output_mode | Passed to |
output_class | Passed to |
#> [1] -0.008452961 -0.679009921# semantically, this is like looking for row means that are different from zero # (but not missing) mat[1L] <- NA_real_ row_means(mat, output_mode = "logical", na_action = "pass")#> [1] NA TRUE