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

1
as2(object, class)

Arguments

object

any R object

class

the name of the class to which object should be coerced


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.