Is it possible to subset and assign in the same command? For example, I would like to reduce an assay to 1000 features for illustrative purposes. But, it causes an error.
melanomaData[, , 2] <- melanomaData[1:1000, , 2] Error in .nextMethod(value = value, x = x) : 'value' must be a ExperimentList object (or coercible to a ExperimentList object)
What's the correct way to subset one assay and reassign it to the same variable?