calculateSummaryDT {BGmisc} | R Documentation |
summarize_pedigree
function.This function calculates summary statistics for all numeric variables in a data.table. It is supposed to be used internally by the summarize_pedigree
function.
calculateSummaryDT(data, group_var, skip_var, five_num_summary = FALSE)
data |
A data.table containing the pedigree data. |
group_var |
A character string specifying the column name of the grouping variable. |
skip_var |
A character vector of variables to skip when calculating summary statistics. |
five_num_summary |
Logical, if TRUE, include the 5-number summary (min, Q1, median, Q3, max) in the summary statistics. |
A data.table containing the summary statistics for all numeric variables.