Split a table of statistics in two.
# S3 method for desc
split(x, f, drop, ..., variable, at)
A desc object
see split documentation
see split documentation
Other parameters
Character. Indicates the variable to use for the split
Integer. Indicates the maximum number of levels to include in the first splitted table
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).
# 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