getSummaryTable: Create a summary table for numeric and factor data in terms...

Description Usage Arguments

View source: R/UsagiSan.R

Description

Create a summary table for numeric and factor data in terms of each level of a factor data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
getSummaryTable(
  data,
  namesForRow,
  nameForCol,
  digits = 2,
  locationPar = "mean",
  sd = FALSE,
  Qu = FALSE,
  ratio = FALSE
)

Arguments

data

Dataset you want to summarize.

namesForRow

Column names assigned to row names of a summary table.

nameForCol

Column name assigned to col names of a summary table.

digits

integer indicating the number of decimal places.

locationPar

A Character variable which determine the location parameter.

sd

Whether to include standard deviation for numeric data. and ratio for factor data.

Qu

Whether to include 1-quantile and 2-quantile.

ratio

Whether to include ratio of percentage for each cell.


usagi-san-dayo/UsagiSan documentation built on Dec. 29, 2021, 10:17 p.m.