calculateSummaryDT {BGmisc}R Documentation

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.

Description

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.

Usage

calculateSummaryDT(data, group_var, skip_var, five_num_summary = FALSE)

Arguments

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.

Value

A data.table containing the summary statistics for all numeric variables.


[Package BGmisc version 1.3.2 Index]