[,snap,ANY,ANY,ANY-method | R Documentation |
This function takes a snap object and returns the subset of snap object.
## S4 method for signature 'snap,ANY,ANY,ANY' x[i, j, mat = c("bmat", "pmat", "gmat"), drop = "missing"]
x |
snap; a snap object |
i |
integer; selected barcode index |
j |
integer; selected feature index |
mat |
character; indicates the slot to subsetting |
drop |
character; |
data(demo.sp); demo.sp[1:10,]; demo.sp[,1:10,mat="bmat"]; demo.sp[,1:10,mat="pmat"];
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.