Learn R Programming

objectProperties (version 0.6.8)

as.list-methods: Coercion to list

Description

Coercion from PropertySet to list.

Arguments

x

A PropertySet object.

Value

A list of properties instance.

Details

This coersion only return a list of properties instances. filtering out singal function and other fields which are not properties.

Examples

Run this code
# NOT RUN {
filt.gen <- setRefClass("Filter", properties(list(cutoff = "NonnegativeInteger",
weight = "PositiveInteger")),
contains = "PropertySet")
obj <- filt.gen$new(cutoff = NonnegativeInteger(0),
weight = PositiveInteger(1))
obj$properties()
as.list(obj)
# }

Run the code above in your browser using DataLab