Subset cells in a MarchRDataset/MarchRProject object.
subset_cells.RdSubset cells in a MarchRDataset/MarchRProject object.
Arguments
- proj
(MarchRDataset, MarchRProject) The project/dataset to subset.
- cell_subset
(character vector; logical vector; numeric vector) A subset of cells to keep in the matrices. Requires that the matrices are cell aligned if provided. For a project with
by_dataset = FALSE, a logical vector must contain one non-missing value per cell, and numeric indices must be positive whole numbers within the total number of cells.- subset_fragments
(logical) If TRUE, subset fragments to only include the cells in
cell_subset.- values_only
(logical) If TRUE, return the matrices concatenated together.