A method to generate binary data randomly

randomGenerateBinary(genelist = c(), maxState = 0)

Arguments

genelist

An vector of genes

maxState

that should be less that 2^length(genelist)

Examples

individualgenes<-c('a','b','c')
testdata2 <- randomGenerateBinary(individualgenes,maxState = 4)
testdata2
#> [[1]]
#> a b c 
#> 1 0 0 
#> 
#> [[2]]
#> a b c 
#> 1 0 1 
#> 
#> [[3]]
#> a b c 
#> 1 0 0 
#> 
#> [[4]]
#> a b c 
#> 0 1 0 
#>