graph_values: Compute values for graphing

Description Usage Arguments Value Examples

View source: R/graph_values.R

Description

Takes dataframe and calculates descriptive statistics for a given dependent variable that is formatted for KS graphing with ggplot2

Usage

1
graph_values(df, sort_by, dep_var)

Arguments

df

Dataframe. What data you want to use. Dataframe should be formatted so that each row has a dependent variable marked with the condition that you wish to sortby

sort_by

String or list. What conditions you want your data summarized by; e.g. average by SNR etc.; can be a character "quotes" or a list c("a","b")

dep_var

Dependent variable, column name that exists in dataframe

Value

datagrame that lists the N/sample size, mean, std deviation, std error

Examples

1
graph_values(CogLin_Data,"Noise_Condition",Percent)

katherinesimeon/HLL documentation built on Aug. 20, 2019, 8:19 a.m.