xtabs.flex: Create crosstabs (contingency tables)

View source: R/xtabs.R

xtabs.flexR Documentation

Create crosstabs (contingency tables)

Description

Function creates crosstabulation with multiple variables in rows and one variable in column.

Usage

xtabs.flex(data, form, deci = 1, title = "", option = r.flex.opts)

Arguments

data

dataset

form

formula specified as row variables on left hand side and one section variable (columns) on right hand side. E.g. var1 + var2 + var3 ~ var_sect

deci

number of decimal points (default=1)

title

Table title (optional)

option

inherits from r.flex.opts

Value

list with elements

  • type - table type - used for inserting in word document (, desc - are there descriptives)

  • title - used for table title. Can be set manually or automatically

  • section - section variable title

  • table - flextable with results

  • tab.df - results as data.frame

  • orientation - suggested page orientation (P/L)


mrajter/rajter.flex documentation built on July 30, 2024, 1:31 a.m.