makeF | R Documentation |
makeF
creates a matrix of focal sets
makeF(c, type = c("simple", "full", "pairs"), pairs = NULL, Omega = TRUE)
c |
Number of clusters. |
type |
Type of focal sets ("simple": |
pairs |
Set of pairs to be included in the focal sets; if NULL, all pairs are included. Used only if type="pairs". |
Omega |
Logical. If TRUE (default), |
A matrix (f,c) of focal sets.
c<-4
## Generation of all 16 focal sets
F<-makeF(c,type='full')
## Generation of focal sets of cardinality 0, 1 and c
F<-makeF(c,type='simple')
## Generation of focal sets of cardinality 0, 1, and 2
F<-makeF(c,type='pairs',Omega=FALSE)
## Generation of focal sets of cardinality 0, 1, and c, plus the pairs (1,2) and (1,3)
F<-makeF(c,type='pairs',pairs=matrix(c(1,2,1,3),nrow=2,byrow=TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.