Skip to contents

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