Skip to content

Pb building sets of S4 / RefClass objects with package "sets"

2 messages · Johnny Paulo, Martin Maechler

1 day later
#
There is no visible reason why you should ask this on R-devel.

Please do not misuse R-deve, but rather use R-help.
> Hi, does anyone know if it is possible to construct sets
    > of S4 objects?  It seems the constructor set does not
    > like it:

    > Error in as.vector(x, "character") : cannot coerce type
    > 'environment' to vector of type 'character'

    > Regards

    > Johnny

    > PS: by the way, does anyone know where I can find some
    > examples using the cset class from the "sets" package,
    > beside the one in the standard doc?