View source: R/as_hce.data.frame.R
as_hce.data.frame | R Documentation |
hce
objectCoerce a data frame to an hce
object
## S3 method for class 'data.frame'
as_hce(x, ...)
x |
a data frame. |
... |
additional parameters. |
an hce
object.
as_hce()
, as_hce.default()
.
# The case when all required variables `AVAL0`, `GROUP`, `PADY`, and `TRTP` are present.
KHCE <- as_hce(KHCE)
## Converts to an `adhce` object
class(KHCE)
calcWO(KHCE)
# The case when only `AVAL` and `TRTP`.
## Converts to an `hce` object
dat <- KHCE[, c("TRTP", "AVAL")]
dat <- as_hce(dat)
class(dat)
summaryWO(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.