varlevels_dont_clash: Are varlevels unique

varlevels_dont_clashR Documentation

Are varlevels unique

Description

Are varlevels unique

Usage

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), ...)

Arguments

object

SummarizedExperiment or data.table

...

required for s3 dispatch

vars

character vector

Value

TRUE or FALSE

Examples

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)

bhagwataditya/autonomics documentation built on Nov. 1, 2024, 5:47 a.m.