subpopsVectorToList {ConnMatTools}R Documentation

Convert subpopulation vector to a list of indices

Description

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

Usage

subpopsVectorToList(x)

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


[Package ConnMatTools version 0.3.5 Index]