Extract the poset as a matrix or list
This function allows you to extract the poset from either a
pim.environment or a
The poset can be extracted as a matrix or a list.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
poset(x, ...) ## S4 method for signature 'pim.environment' poset(x, ...) ## S4 method for signature 'pim.poset' poset(x, as.list = FALSE) ## S4 method for signature 'environment' poset(x, as.list = FALSE) ## S4 method for signature 'pim' poset(x, ...) ## S4 method for signature 'pim.formula' poset(x, ...)
an object of class
arguments passed to other methods. Currently ignored.
a logical value indicating whether the poset should be returned as list or as a matrix. Defaults to FALSE, which returns a matrix
When x contains a poset, either a matrix or a list
TRUE) with the indices that
make up the poset. If there's no poset, the function returns
a missing value.
The returned matrix hax 2 columns, each named after the
respective poset function. In case a list is requested, the function
returns a named list with 2 elements, each element containing the
indices related to the poset function of the same name
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.