Learn R Programming

rowr (version 1.1.3)

as2: 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