Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

ClinReport (version 0.9.1.14)

split.desc: Split a table of statistics in two.

Description

Split a table of statistics in two.

Usage

# S3 method for desc
split(x, f, drop, ..., variable, at)

Arguments

x

A desc object

f

see split documentation

drop

see split documentation

...

Other parameters

variable

Character. Indicates the variable to use for the split

at

Integer. Indicates the maximum number of levels to include in the first splitted table

Details

Used for splitting an output in two. It can be used for example when the table takes too much space in a page of a Word document (see the example below).

See Also

desc

Examples

Run this code
# NOT RUN {
data(datafake)

tab1=report.quanti(data=datafake,y="y_numeric",
	x1="GROUP",x2="TIMEPOINT",at.row="TIMEPOINT",subjid="SUBJID")


s=split(tab1,variable="TIMEPOINT",at=3)

tab1.1=s$x1
tab1.2=s$x2

tab1.1
tab1.2 

# }

Run the code above in your browser using DataLab