powered by
Subset (split) landmark coordinates via a grouping factor
coords.subset(A, group)
An array of landmarks with dimensions p x k x n
A grouping factor of length n, for splitting the array into sub-arrays
This function splits a set of landmark coordinates into subsets, as described by a factor. The results is a list of separate sets of landmarks.
data(pupfish) group <- factor(paste(pupfish$Pop, pupfish$Sex)) levels(group) coords.subset(A = pupfish$coords, group = group)
Run the code above in your browser using DataLab