prop_names | R Documentation |
prop_names(x)
returns the names of the properties
prop_exists(x, "prop")
returns TRUE
iif x
has property prop
.
prop_names(object)
prop_exists(object, name)
object |
An object from a S7 class |
name |
The name of the parameter as a character. Partial matching is not performed. |
prop_names()
returns a character vector; prop_exists()
returns
a single TRUE
or FALSE
.
Foo <- new_class("Foo", properties = list(a = class_character, b = class_integer))
f <- Foo()
prop_names(f)
prop_exists(f, "a")
prop_exists(f, "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.