getFields.Object: Returns the field names of an Object
Description
Returns the field names of an Object.Usage
## S3 method for class 'Object}(this, private=FALSE, ...)':
getFieldsundefined
- private
{If TRUE
, private fields will also be returned,
otherwise only public fields are returned.}
- ...
{Not used.}
Returns a character
vector
of field names.
obj <- Object()
obj$x <- 1:100
obj$y <- 100:1
getFields(obj)
gives:
[1] "x" "y"
[object Object]
To check if a field exists or not, see *hasField()
.
For more extensive information about the fields in an Object see
*ll()
.
For more information see Object
.
programming
methods
internal
methods