sub-.genotypes: Indexing into a 'genotypes' object

Description Usage Arguments Value Examples

Description

Allows indexing into a genotype matrix, trimming marker and sample metadata, filters, and intensity matrices accordingly.

Usage

1
2
## S3 method for class 'genotypes'
x[i, j, ..., drop = FALSE]

Arguments

x

an object of class genotypes

i

row index (logical, character, or numeric), recycled if needed

j

column index (logical, character, or numeric), recycled if needed

...

ignored

drop

allow reduction of the dimensions of x if i,j are of length 1?

Value

a genotypes object, preserving any attributes

Examples

1
2
3
4
5
## Not run: 
geno[ 1:10, ]
geno[ ,c("sample1","sample2") ]

## End(Not run)

andrewparkermorgan/argyle documentation built on May 10, 2019, 11:08 a.m.