# NOT RUN {
library(metan)
# means of all numeric variables by ENV
means_by(data_ge2, GEN, ENV)
# Coefficient of variation for all numeric variables
# by GEN and ENV
cv_by(data_ge2, GEN, ENV)
# Skewness of a numeric vector
set.seed(1)
nvec <- rnorm(200, 10, 1)
skew(nvec)
# Confidence interval 0.95 for the mean
# All numeric variables
# Grouped by levels of ENV
data_ge2 %>%
group_by(ENV) %>%
ci_mean()
# standard error of the mean
# Variable PH and EH
sem(data_ge2, PH, EH)
# Frequency table for variable NR
data_ge2 %>%
freq_table(NR)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab