bycont.Rd
bycont
takes a list of categorical variabls and returns
median(min, max) of the single continuous variable within each level
of each categorical variable. Computes Kruskall-Wallis p-values.
bycont(catvars, contvar, dat, pval = TRUE)
catvars | is a list of the categorical variables for the rows of the table e.g. list('Gene1', 'Gene2') |
---|---|
contvar | is the continuous variable you want summarized by each categorical variable. Must be in quotes. |
dat | is the dataset to use for analysis |
pval | takes the value TRUE or FALSE indicating whether p-values should be computed. Defaults to TRUE. When TRUE, Kruskal-Wallis p-values are produced. |
Returns a dataframe