fp_msd_class: fp_msd_class function

fp_msd_classR Documentation

fp_msd_class function

Description

base function for the fp_msd_class suite, recommend using fp_msd_class2. given an independent variable and a class variable creates a dataframe that is a cross tabulation of the two with values being 'out of' the class variable columns

Usage

fp_msd_class(indvar, classvar, fp = TRUE, funct1 = "mean", funct2 = "sd")

Arguments

indvar

independent variable to be split across the class variable. usually presented in the form data$variable

classvar

class variable used to split the indvar. usually presented in the form data$variable

fp

boolean indicating if the requested result should be frequency(percent). Default is TRUE

funct1

the first function to use (i.e. outside the parentheses) if fp='FALSE'. default is 'mean'

funct2

the second function to use (i.e. inside the parentheses) if fp='FALSE'. default is 'sd'

Examples

fp_msd_class_function()


clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.