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

⁠[uhc_data]⁠ An object of class uhc_data, as returned by the function prep_uhc().

row.names

Included for consistency with generic as.data.frame(). Currently ignored.

optional

Included for consistency with generic as.data.frame(). Currently ignored.

...

Included for consistency with generic as.data.frame(). Currently ignored.

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:

Author(s)

Brian J. Smith

See Also

prep_uhc(), conf_envelope()


[Package amt version 0.2.2.0 Index]