Learn R Programming

DescriptiveStats.OBeu (version 1.3.2)

compare.stats: Group and compare summaries statistics to a data frame

Description

Extract and return a data frame with the columns that include only numeric values

Usage

compare.stats(df, group_var, values, m_functions)

Arguments

df

numeric vector or matrix or dataframe

group_var

character vector of variables to group the data

values

numeric or integer variables

m_functions

functions to apply in values

Value

This function returns a data frame with the selected group_vars and the result of m_functions applied in the selected values.