Learn R Programming

R.oo (version 1.26.0)

getFields.Class: Returns the field names of a class

Description

Returns the field names of a class.

Usage

# S3 method for Class
getFields(this, private=FALSE, ...)

Value

Returns a character

vector of field names.

Arguments

private

If TRUE, private fields will also be returned, otherwise only public fields are returned.

...

Not used.

Author

Henrik Bengtsson

See Also

For more information see Class.

Examples

Run this code
  print(getFields(Exception))

Run the code above in your browser using DataLab