Learn R Programming

roistats (version 0.1.1)

df_sem: Generate standard error of mean

Description

Generate standard error of mean

Usage

df_sem(data, x)

Arguments

data

A data frame, generally grouped by the intended sub-groups which you want to compare for the same t-test.

x

A (bare) column name of the variable which you want to get the mean, sd, and standard error of the mean (SEM).

Value

A data.frame with consisting of characters. The columns that are always present are: group variable(s), mean, sd, n, and se(SEM).

Examples

Run this code
# NOT RUN {
df_sem(color_index, color_index)

library(magrittr)
color_index %>%
  df_sem(color_index)
# }

Run the code above in your browser using DataLab