subpopsVectorToList {ConnMatTools} | R Documentation |
A helper function to convert a vector of subpopulation identifications into a
list appropriate for recSplitConnMat
,
qualitySubpops
, etc.
subpopsVectorToList(x)
x |
vector of subpopulation identifications |
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.
A list where each element is a vector of indices for a given subpopulation.
David M. Kaplan dmkaplan2000@gmail.com
See also recSplitConnMat
, qualitySubpops