Set the indices specified in a mask to NA

# S4 method for DsNOMe
maskMethNA(.object, mask, type = "sites", reaggregate = TRUE)

Arguments

.object

DsNOMe object

mask

a mask, i.e. a logical matrix of indices to set to NA

type

character string specifying a name for the region type (default: sites)

reaggregate

redo region aggregation (only has an effect if type is sites and there are aggregated regions in the dataset)

Value

a new DsNOMe object with sites/regions masked

Author

Fabian Mueller