summarySE | R Documentation |
Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95 percent)
summarySE( data = NULL, measurevar, groupvars = NULL, na.rm = FALSE, conf.interval = 0.95, .drop = TRUE )
data |
A data frame. |
measurevar |
The name of a column that contains the variable to be summariezed. |
na.rm |
A boolean that indicates whether to ignore NA's. |
conf.interval |
The percent range of the confidence interval, 95 percent default. |
betweenvars |
A vector containing names of columns that are between-subjects variables. |
idvar |
The name of a column that identifies each subject (or matched subjects). |
See : http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/
Winston Chang
x <- rnorm(100,100,15) y <- sample(c("Group 1","Group 2"),100,TRUE) df <- data.frame(x,y) summarySE(data=df, measurevar="x", betweenvars="y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.