className
Class Name and Package

### Description

Creates and manipulates an object containing a class name and package.

### Usage

    className(class, package)
    packageSlot(object)

### Arguments

class | a character string identifying a class.
package | a character string identifying a package. If this is not given, then the function uses the package associated with the class named by class.
object | any object.

Value

- className returns a className object containing the class name and package.
- packageSlot takes a className object, and returns the associated package string.

See Also
setClass
Examples

    className("numeric")
    ## a className object with class "numeric" and package "methods"
    className("numeric", "pkg")
    ## a className object with class "numeric" and package "pkg"
    packageSlot(className("numeric", "pkg"))
    ## "pkg"

Package methods version 6.1.5-18
Package Index