| as.data.frame.uhc_data {amt} | R Documentation |
Coerce a uhc_data object to data.frame
Description
Coerces uhc_data from list to data.frame
Usage
## S3 method for class 'uhc_data'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
Arguments
x |
|
row.names |
Included for consistency with generic
|
optional |
Included for consistency with generic
|
... |
Included for consistency with generic
|
Details
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".
Value
Returns a data.frame with columns:
-
var: The name of the variable -
x: The x-coordinate of the density plot (the value ofvar). -
y: The y-coordinate of the density plot (the probability density for a numericvarand the proportion for a factorvar). -
dist: The distribution represented. Either"U"for used,"A"for available, or"S"for sampled. -
iter: The iteration number ifdist == "S". -
label: The label ifvaris a factor.
Author(s)
Brian J. Smith
See Also
prep_uhc(), conf_envelope()