check_data_cols: Check data columns

View source: R/export_utils.R

check_data_colsR Documentation

Check data columns

Description

Checks that a dataframe to be reformatted for bayesact or interact has the necessary columns – term, E, P, A, and sd or cov if needed (bayesact only).

Usage

check_data_cols(data, program, group = "none", stat = "mean")

Arguments

data

dataframe to check

program

for bayesact or for interact (bayesact can only have three EPA columns, interact can have 3 or 6... could print a warning if 6 are passed to bayesact)

group

name of the grouping column (for interact only)

stat

statistic type wanted (mean, sd, cov)

Value

logical


ahcombs/actdata documentation built on Jan. 15, 2025, 6:48 p.m.