rbind2,aSnpMatrix,aSnpMatrix-method | R Documentation |
Bind two aSnpMatrix or aXSnpMatrix objects, or add empty rows/columns to an existing object.
## S4 method for signature 'aSnpMatrix,aSnpMatrix'
rbind2(x, y)
## S4 method for signature 'aXSnpMatrix,aXSnpMatrix'
rbind2(x, y)
## S4 method for signature 'aSnpMatrix,aSnpMatrix'
cbind2(x, y)
## S4 method for signature 'aXSnpMatrix,aXSnpMatrix'
cbind2(x, y)
add.snps(x, y)
## S4 method for signature 'aSnpMatrix,aSnpMatrix'
add.snps(x, y)
add.samples(x, y)
## S4 method for signature 'aSnpMatrix,aSnpMatrix'
add.samples(x, y)
x |
object of class aSnpMatrix |
y |
object of same class as |
rbind2
and cbind2
work as they do with SnpMatrix
objects
add.snps()
adds empty entries to x for SNPs found in y
add.samples()
adds empty entries to x for Samples found in y
object of same class as x
Chris Wallace
## load some example data from snpStats
x <- example.data(10,5)
y <- example.data(10,11:15)
# bind x and y columnwise
z <- cbind2(x,y)
z
# add empty entries to x corresponding to the samples in x
# and the snps in y
z <- add.snps(x,y)
z
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.