mytable_df: make mytable from data.frame

Description Usage Arguments Value

View source: R/mytable.df.R

Description

make mytable from data.frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
mytable_df(
  x,
  use.labels = TRUE,
  use.column.label = TRUE,
  max.ylev = 5,
  maxCatLevel = 20,
  digits = 1,
  method = 1,
  show.all = FALSE
)

Arguments

x

A data.frame

use.labels

Logical. Whether or not use labels.

use.column.label

Logical. Whether or not use column labels.

max.ylev

An integer indicating the maximum number of levels of grouping variable. If a colummn have unique values less than max.ylev it is treated as a categorical variable. Default value is 5.

maxCatLevel

An integer indicating the maximum number of unique levels of categorial variable. If a colummn have unique values more than maxCatLevel, categorical summarization will not be performed.

digits

An integer indicating the number of decimal places (round) or significant digits to be used. Default value is 1.

method

An integer indicating methods for continuous variables. Possible values in methods are

1

forces analysis as normal-distributed

2

forces analysis as continuous non-normal

3

performs a Shapiro-Wilk test to decide between normal or non-normal

Default value is 1.

show.all

A logical value indicating whether or not all statistical values have to be shown in table. Default value is FALSE.

Value

An object of class "mytable.df". 'print' returns a table for descriptive statistics.


moonBook documentation built on Jan. 13, 2021, 6:43 a.m.