getFields.Class: Returns the field names of a class

getFields.ClassR Documentation

Returns the field names of a class

Description

Returns the field names of a class.

Usage

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

Arguments

private

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

...

Not used.

Value

Returns a character vector of field names.

Author(s)

Henrik Bengtsson

See Also

For more information see Class.

Examples

  print(getFields(Exception))

R.oo documentation built on Nov. 2, 2024, 1:07 a.m.