formatResults.RdformatResults format statistical analysis results table to html or
latex format.
Tibble as returned by runMiDAS.
Character vector specifying conditional expression used to
filter results, this is equivalent to ... argument passed to
filter.
Character vector specifying variable names to use for
sorting. Equivalent to ... argument passed to
arrange.
Character vector specifying variable names that should be included in the output table. Can be also used to rename selected variables, see examples.
String "latex" or "html".
String specifying header for result table. If NULL no header is added.
A character string indicating the height of the table.
Character vector of formatted table source code.
if (FALSE) {
midas <- prepareMiDAS(hla_calls = MiDAS_tut_HLA,
colData = MiDAS_tut_pheno,
experiment = "hla_alleles")
object <- lm(disease ~ term, data = midas)
res <- runMiDAS(object,
experiment = "hla_alleles",
inheritance_model = "dominant")
formatResults(res,
filter_by = c("p.value <= 0.05", "estimate > 0"),
arrange_by = c("p.value * estimate"),
select_cols = c("allele", "p-value" = "p.value"),
format = "html",
header = "HLA allelic associations")
}