bsStat | R Documentation |
Calcluate basic statistics of data.
bsStat(y, two = NULL, digits = c(2, 2), use = 'complete.obs',
na.rm = TRUE, ...)
y |
input data for summary statistics. |
two |
a logical value of whether to report the correlation and summary statistics separately; if |
digits |
digits for the output data, one for correlation coefficients and the other for mean and others; if a single scalar is supplied, it will be used for both. |
use |
an argument for correlation coefficient; see |
na.rm |
an argument for |
... |
additional arguments to be passed. |
Two set of summary statistics are generated. One is correlation coefficients and the other is mean, minimum, maximum, standard deviation, and number of observations. When two
is unspecified and the number of variables is bigger than ten, the two sets are reported separately; otherwise, it is reported as a single data frame object.
A dataframe or list of the summary statistics.
Changyou Sun (edwinsun258@gmail.com)
data(daIns)
(sum.daIns <- bsStat(y=daIns, digits=c(3,2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.