Computes the mean for all numeric variables of a data frame, grouping by one or more factors.
means_by(.data, ...)
A data frame
One or more categorical variables for grouping the data.
An object of class tbl_df with the computed means by each level of the factor(s) declared in ....
...
# NOT RUN { library(metan) means_by(data_ge2, ENV) means_by(data_ge2, GEN, ENV) # }
Run the code above in your browser using DataCamp Workspace