one_way_anova_by_col: One way ANOVA by column

Description Usage Arguments Examples

View source: R/lipidome_comparison_hypothesis_testing.R

Description

'one_way_anova_by_col' performs an ANOVA for each numeric column of a data frame and returns f-statistic and p-value in a data frame.

Usage

1
one_way_anova_by_col(input_df, factor_col, print_all = FALSE)

Arguments

input_df

data frame. Has multiple columns with numerical variables and at least one column with a factor variable.

factor_col

string. Gives the name of the column, where the groups between which the anova is performed are stored.

print_all

bool. Prints a summary of each anova. Default = FALSE

Examples

1
2
one_way_anova_by_col(iris, "Species")
one_way_anova_by_col(iris, "Species", print_all = TRUE)

lisaschneider0509/lipidomeComparisonR documentation built on Aug. 12, 2020, 12:52 a.m.