Description Usage Arguments Value Author(s)

View source: R/ComplexInternal_functions.R

This function takes a character of factor vector and returns a new vector of equal sample size along with a vector of index positions to sort whatever other data might be associated with the factor vector into the new equal sample size order. The user can also provide a user defined minimum sample size if the user wishes the resampling procedure to sample to a smaller number of specimens than the smallest sample size. In this way the function can also be used in a leave-p-out cross- validation exercise.

1 | ```
BalancedGrps(GroupMembership, GroupSize = NA)
``` |

`GroupMembership` |
a character or factor vector in the same order as the distance data to denote group membership. |

`GroupSize` |
the sample size you wish the function to resample the data to. If NA supplied then the smallest sample size of the groups supplied will be used. |

Returns a list of 2 vectors. The first vector is the indexed location of the new equally size sample

Ardern Hulme-Beaman

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.