hhh4contacts (version 0.13.1)

subset.array: Subset an Array in one Dimension

Description

Subset an Array in one Dimension

Usage

# S3 method for array
subset(x, dim, i, drop = FALSE)

Arguments

x

an array.

dim

an integer specifying the dimension to subset.

i

subset index, see [.

drop

logical indicating if singular dimensions should be dropped, see [.

See Also

the more general function extract.array in package R.utils

Examples

Run this code
hhh4contacts:::subset.array(counts, 1, 4:7)

Run the code above in your browser using DataCamp Workspace