Access an arbitrary row across all demographic parameter matrices of indeterminate dimension

subset_dem_params(dem_params, r, d = 1, drop = TRUE)

Arguments

dem_params

a list of arrays with more than 2 dimensions

r

the index along the first dimension to access

d

dimension index, default: 1

drop

controls whether singleton dimensions are dropped or preserved after subsetting default: TRUE

Value

a list with the same elements as dem_params but containing a single row from each list element