Probably the solution is simple, but I can't find it right now. I like to use tapply
in descriptive-statistical analyses. For example:
tapply(dataframe1$Means, dataframe2$gender, function(x) {
c(
"mean" = mean(x, na.rm = TRUE),
"sd" = sd(x, na.rm = TRUE),
"med" = median(x, na.rm = TRUE),
"min" = min(x, na.rm = TRUE),
"max" = max(x, na.rm = TRUE)
)
})
Now I would like to have the results rounded directly to two places, but without writing them to another or new object.
Thanks for tips