summarySE: Summarizes data

Description Usage Arguments Examples

View source: R/summarySE.R

Description

Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%). Uses ddply() from the plyr library. From "Cookbook for R."

Usage

1
2
3
4
5
6
7
8
summarySE(
  data = NULL,
  measurevar,
  groupvars = NULL,
  na.rm = FALSE,
  conf.interval = 0.95,
  .drop = TRUE
)

Arguments

data

A data frame.

measurevar

The name of a column that contains the variable to be summariezed

groupvars

A vector containing names of columns that contain grouping variables

na.rm

A boolean that indicates whether to ignore NA's

conf.interval

The percent range of the confidence interval (default is 95%)

Examples

1
2
df <- DNase; summarySE(df, measurevar="density", groupvars=c("Run","conc"))
df <- DNase; summarySE(df, measurevar="density", groupvars="conc")

hodgeslab/hodgeslabR documentation built on Aug. 6, 2021, 5:10 a.m.