Learn R Programming

simulist (version 0.7.0)

coerce-df: Coerce and store <data.frame> subclass to <data.frame> and restore <data.frame> subclass to <data.frame> from attribute.

Description

Coerce and store <data.frame> subclass to <data.frame> and restore <data.frame> subclass to <data.frame> from attribute.

Usage

.as_df(x)

.restore_df_subclass(x)

Value

A <data.frame> or subclass of <data.frame>.

Arguments

x

An R object.