descr(x, na.rm=TRUE, round.digits=2, style="simple", justify="right", plain.ascii=TRUE, file=NA, append=FALSE, transpose=FALSE, escape.pipe=FALSE, weights=NA, rescale.weights=FALSE, ...)
TRUE
.2
.style='rmarkdown'
, in which case it is set to FALSE (unless explicitly defined as TRUE).NA
. To append output to an existing text file, use append=TRUE
.TRUE
) or to overwrite any existing file (FALSE
, default). If TRUE
and no file exists, a new file will be created.FALSE
.style='grid'
and file
argument is not NA
, in which case it will escape the pipe character (|) in order for Pandoc to correctly display table cells.TRUE
, the function makes the sum of weights equal to the length of x, so that the total N remains unchanged. FALSE
by default.plain.ascii=TRUE
option is there to make results appear clean in the console, but creates problems when generating markdown documents. For this reason, whenever style='rmarkdown'
, the option is set to FALSE, unless plain.ascii=TRUE
is stated explicitly. On the other hand, with style='grid'
, if the intent is to produce markdown text, then the user needs to explicitly set plain.ascii=FALSE
.
data(exams)
descr(exams)
descr(exams, transpose=TRUE)
data(tobacco)
with(tobacco, by(age, smoker, descr))
Run the code above in your browser using DataLab