powered by
Returns the field names of an Object.
# S3 method for Object getFields(this, private=FALSE, ...)
If TRUE, private fields will also be returned, otherwise only public fields are returned.
TRUE
Not used.
Returns a character vector of field names.
character
vector
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.
*hasField()
*ll()
Object
# NOT RUN { obj <- Object() obj$x <- 1:100 obj$y <- 100:1 getFields(obj) # } # NOT RUN { gives: [1] "x" "y" # }
Run the code above in your browser using DataLab