as2: A more robust form of the R 'as' function.

View source: R/row.r

as2R Documentation

A more robust form of the R as function.

Description

Alternative to as that allows any data object to be converted to any other.

Usage

as2(object, class)

Arguments

object

any R object

class

the name of the class to which object should be coerced

Details

Originally written for the row.r package by Craig Varrichio. Included here because the rowr package was discontinued. I use these functions in my packages


ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.