| as.data.frame.uhc_data | R Documentation |
uhc_data object to data.frameCoerces uhc_data from list to data.frame
## S3 method for class 'uhc_data'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
|
row.names |
Included for consistency with generic
|
optional |
Included for consistency with generic
|
... |
Included for consistency with generic
|
This coercion aims to keep all of the information contained in
the uhc_data list in the resulting data.frame representation. Factors
are converted to numeric, but the levels are retained in the column
"label".
Returns a data.frame with columns:
var: The name of the variable
x: The x-coordinate of the density plot (the value of var).
y: The y-coordinate of the density plot (the probability density for
a numeric var and the proportion for a factor var).
dist: The distribution represented. Either "U" for used, "A" for
available, or "S" for sampled.
iter: The iteration number if dist == "S".
label: The label if var is a factor.
Brian J. Smith
prep_uhc(), conf_envelope()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.