bininfo | R Documentation |
tidyvpcobj
Obtain information about the bins from a tidyvpcobj
bininfo(o, ...)
## S3 method for class 'tidyvpcobj'
bininfo(o, by.strata = o$bin.by.strata, ...)
o |
An object. |
... |
Additional arguments. |
by.strata |
Should the calculations be done by strata? Defaults to what was specified when the binning was done. |
A 'data.table' containing the following columns:
nobs
: Number of observed data points in the bin
xmedian
: Median x-value of the observed data points in the bin
xmean
: Mean x-value of the observed data points in the bin
xmax
: Maximum x-value of the observed data points in the bin
xmin
: Minimum x-value of the observed data points in the bin
xmid
: Value halfway between 'xmin' and 'xmax'.
x-value of the observed data points in the bin
xleft
: Value halfway between the minimum x-value of the
current bin and the maximum x-value of the previous bin to the left (for
the left-most bin, it is the minimum x-value).
xright
: Value halfway between the maximum x-value of the
current bin and the minimum x-value of the next bin to the right (for the
right-most bin, it is the maximum x-value).
xcenter
: Value halfway between 'xleft' and 'xright'.
In addition, if stratification was performed, the stratification columns will be included as well.
bininfo(tidyvpcobj)
: Method for tidyvpcobj
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.