Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getFields.Class

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

R Object-Oriented Programming with or without References

v1.24.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.