varlevels_dont_clash | R Documentation |
Are varlevels unique
varlevels_dont_clash(object, ...)
## S3 method for class 'data.table'
varlevels_dont_clash(object, vars = names(object), ...)
## S3 method for class 'SummarizedExperiment'
varlevels_dont_clash(object, vars = svars(object), ...)
object |
SummarizedExperiment or data.table |
... |
required for s3 dispatch |
vars |
character vector |
TRUE or FALSE
require(data.table)
object1 <- data.table(expand.grid(genome = c('WT', 'MUT'), treat = c('control', 'drug')))
object2 <- data.table(expand.grid(mutant = c('YES', 'NO'), treated = c('YES', 'NO')))
varlevels_dont_clash(object1)
varlevels_dont_clash(object2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.