sd_split: Split Standard Deviation (error) columns

Description Usage Arguments Details

View source: R/sd_split.R

Description

Function that splits standard deviation (error) values in a column into two new positive and negative columns based on the mean variable value. Used to produce upper or lower error bars on bar plot. Dataframe should contain unique mean and sd columns with matching variable name prefix and differing only by suffix "_mean" or "_sd" (or "_sem"). Note: If there are any unmatched mean and sd pairs the function will fail.

Usage

1

Arguments

df

dataframe with mean and sd columns. Columns without proper suffix ("_mean" and "_sd" (or "_sem)) will be ignored.

Details

sd_split fizzTulz


lindseyboulet/fizzTulz documentation built on Jan. 2, 2021, 4:04 p.m.