search for: gset_membership

Displaying 1 result from an estimated 1 matches for "gset_membership".

Did you mean: gset_memberships
2010 Mar 22
1
sets package: converting a set to data frame?
I just started using nice package "sets" and I wonder if there are utilities to convert (some) sets to data frame (as in the example below) > library(sets) > a <- gset(elements = list(e('A', 0.1), e('B', 0.8))) > lst <- as.list(a) > nr <- length(lst) > rnames <- character() > for (i in 1:nr) rnames[i] <- lst[[i]] > df <-