Subset an Array in one Dimension
# S3 method for array subset(x, dim, i, drop = FALSE)
an array.
an integer specifying the dimension to subset.
subset index, see [.
[
logical indicating if singular dimensions should be dropped, see [.
the more general function extract.array in package R.utils
extract.array
hhh4contacts:::subset.array(counts, 1, 4:7)
Run the code above in your browser using DataCamp Workspace