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

Description Usage Arguments Details See Also Examples

View source: R/split.desc.R

Description

Split a table of statistics in two.

Usage

1
2
## S3 method for class '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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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 

ClinReport documentation built on Sept. 3, 2019, 5:07 p.m.