table1: Table 1

Description Usage Arguments Value

View source: R/table1.R

Description

Table 1

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
table1(
  DF,
  y,
  paired = FALSE,
  strata = NULL,
  ynames = NULL,
  make.names = TRUE,
  overall = TRUE,
  overall_name = "Overall",
  tests = TRUE,
  norm_test = TRUE,
  Khi2 = TRUE,
  mutation = 40,
  legend = TRUE,
  title = TRUE,
  round = 2,
  exit = "html"
)

Arguments

DF

dataframe : datas to be analysed

y

character : column that can separate the dataframe

ynames

vector of characters (optionnal) : names to be put in table one columns instead of y levels.

make.names

(optionnal) : TRUE so that the colnames provided are formated

overall

booleen (optionnal) : TRUE if an "overall" column is wanted

overall_name

(optionnal) : name of the 'overall' column

tests

booleen (optionnal) : TRUE if you want tests to be executed

norm_test

booleen (optionnal) : TRUE if you want tests on normal distribution to be performed has condition to student test

Khi2

booleen (optionnal) : if TRUE, khi2 is prefered to fisher

mutation

numeric : number of modalities to display for one variable. If there is more than "mutation" categories, the modalities after this threeshold are wrapped into an "others" categorie.

legend

booleen (optionnal) : TRUE if a legend is wanted under the table

title

booleen (optionnal) : TRUE if a title is wanted

round

(optionnal) : the number of digits to be display in the results

exit

character : 'html', 'console' or 'excel'

Value

dataframe, excel file or html table depending on the exit parameter


TanguyPerennec/Autostats documentation built on Dec. 13, 2020, 10:43 a.m.