Description Usage Arguments Details Value Examples
View source: R/analysis_functions.R
Count number of items in each set by degree of overlap. The degree of overlap is the number of sets of which an item is a member.
1 | getSetSizesByDegree(df, setNames, idName, maxDegree = 4)
|
df |
A data frame indicating set membership |
setNames |
A character vector of set names |
idName |
A string specifying name of ID variable for each item |
maxDegree |
A numeric input indicating upper limit on degree |
The input data frame should contain a row for each item and a binary variable
for each set indicating the membership of each item. The setNames
input should correspond to the binary indicator columns in the data frame.
A data frame with variables:
set
indicating set
degree
indicating degree of overlap (maximum of maxDegree
)
degreeLabel
a factor labeling the degree variable
N
number of items
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.