as_hce.default: Coerce a data frame to an 'hce' object

View source: R/as_hce.default.R

as_hce.defaultR Documentation

Coerce a data frame to an hce object

Description

Coerce a data frame to an hce object

Usage

## Default S3 method:
as_hce(x, ...)

Arguments

x

an object.

...

additional parameters.

Value

an hce object.

See Also

as_hce(), as_hce.data.frame().

Examples

dat <- KHCE
class(dat) <- "moo" # non-existent class
as_hce(dat) # tries to convert to an hce object
## It still works because the inheritance converted it to a data frame

hce documentation built on Dec. 5, 2025, 9:07 a.m.