[.binmapr | R Documentation |
This function subsets binmapr objects either by individual or by marker.
## S3 method for class 'binmapr'
x[i, j, by, ...]
x |
A binmapr object. |
i |
A numeric vector or logical vector to subset rows. |
j |
A numeric vector or logical vector to subset columns. |
by |
A character string to specify the subset method. Can be either "ind" (individual) or "mar" (marker). |
... |
Other arguments to be passed to the function. |
A subsetted binmapr object.
# Create a binmapr object
bm <- binmapr(...)
# Subset the binmapr object by individual
bm1 <- bm[1:5, , by="ind"]
# Subset the binmapr object by marker
bm2 <- bm[ , 1:5, by="mar"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.