count_in | R Documentation |
Count/Collapse in/outside intersection
count_in(x, ...)
## S3 method for class 'character'
count_in(x, y, ...)
## S3 method for class 'factor'
count_in(x, y, ...)
## S3 method for class 'list'
count_in(x, y, ...)
collapse_in(x, ...)
## S3 method for class 'character'
collapse_in(x, y, sep, ...)
## S3 method for class 'factor'
collapse_in(x, y, sep, ...)
## S3 method for class 'list'
collapse_in(x, y, sep, ...)
count_out(x, ...)
## S3 method for class 'character'
count_out(x, y, ...)
## S3 method for class 'factor'
count_out(x, y, ...)
## S3 method for class 'list'
count_out(x, y, ...)
x |
character OR list |
... |
used for S3 dispatch |
y |
character |
sep |
string |
number OR numeric
# Sets
contrast1 <- c('a', 'b', 'c', 'd')
pathway <- c('c', 'd', 'e', 'f')
contrast2 <- c('e', 'f', 'g', 'h')
# Count outside
count_out(contrast1, pathway)
count_out(list(contrast1 = contrast1, contrast2 = contrast2), pathway)
# Count inside
count_in(contrast1, pathway)
count_in(list(contrast1 = contrast1, contrast2 = contrast2), pathway)
# Collapse inside
collapse_in(contrast1, pathway, sep = ' ')
collapse_in(list(contrast1 = contrast1, contrast2 = contrast2), pathway, sep = ' ')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.