Learn R Programming

tidystats (version 0.3)

report_descriptives: Report descriptives helper functions

Description

Report descriptives helper functions

Usage

M(identifier, var = NULL, group = NULL,
  results = getOption("tidystats_list"))

SD(identifier, var = NULL, group = NULL, results = getOption("tidystats_list"))

Arguments

identifier

A character string identifying the descriptives.

var

A character string identifying the exact variable, if needed.

group

A character string identifiying the group, if needed.

results

A tidystats list.

Examples

Run this code
# NOT RUN {
# Read in a list of results
descriptives <- read_stats(system.file("descriptives.csv",
  package = "tidystats"))

options(tidystats_list = descriptives)

# Report the mean
M("D4_avoidance")
M("D5_avoidance_anxiety", var = "avoidance")

# Report the standard deviation
SD("D4_avoidance")

# }

Run the code above in your browser using DataLab