subpopsVectorToList: Convert subpopulation vector to a list of indices

Description Usage Arguments Details Value Author(s) See Also

View source: R/jacobi_etal_2012.R

Description

A helper function to convert a vector of subpopulation identifications into a list appropriate for recSplitConnMat, qualitySubpops, etc.

Usage

1

Arguments

x

vector of subpopulation identifications

Details

Note that subpopulations list will be ordered according to the numerical order of the subpopulation indices in the original matrix, which will not necessarily be that of the spatial order of sites in the original connectivity matrix.

Value

A list where each element is a vector of indices for a given subpopulation.

Author(s)

David M. Kaplan dmkaplan2000@gmail.com

See Also

See also recSplitConnMat, qualitySubpops


dmkaplan2000/ConnMatTools documentation built on Feb. 8, 2020, 4:41 p.m.