This might look like a simple question, and it probably is.
I have a dataset with 43 species and 24 environmental variables, for which I would like to calculate the mean value +/- CI 95% for each environmental variables for each species.
I figured out how to calculate the mean +/- CI 95% for one species and one environmental variable. But how to form a data frame (43 x 24) with all the values... I don't want to do it one by one...
ci.mean(tapply(allbryo$prep_anne, allbryo$Myl_ano , mean))
I suppose it's pretty simple, but I am new in R. Thank you!