Used to generate a permutation of a sequence 1:length(lev). observations are permutted within blocks, according to the vector lev passed to the function.
a vector containing the group to which belongs the observations to be permuted.
a vector 1:length(lev) (with blocks defined by
) randomly permuted. Usually, one passes the result to reorder observations in a data set in order to carry out permutation-based tests.
Jerome Goudet, DEE, UNIL, CH-1015 Lausanne Switzerland
Goudet J. (2005). Hierfstat, a package for R to compute and test variance components and F-statistics. Molecular Ecology Notes. 5:184-186
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.