binding: Binding

rbind2,aSnpMatrix,aSnpMatrix-methodR Documentation

Binding

Description

Bind two aSnpMatrix or aXSnpMatrix objects, or add empty rows/columns to an existing object.

Usage

## 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)

Arguments

x

object of class aSnpMatrix

y

object of same class as x

Details

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

Value

object of same class as x

Author(s)

Chris Wallace

Examples

## 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

chr1swallace/annotSnpStats documentation built on April 18, 2023, 11:22 a.m.