Calculate the Mean of each Row of an Object in R Programming â rowMeans() Function
rowMeans() function in R Language is used to find out the mean of each row of a data frame, matrix, or array. Syntax: rowMeans(data) Parameter: data: data frame, array, or matrix Example 1 # R program to illustrate # rowMean function # Create example values # Set seed set.seed(1234) # Create example