Description Usage Arguments Details Value
View source: R/RandomizingTree.R
Function to randomize the names of a list to sample, as provided by StructureDocument
. It takes the names of the list, not the list itself, and it provides the indexes needed to resample the original list judging by those names. It doesn't output a resampled list.
1 2 | GetLayerSampleIndexes(section_vector, command_vector,
sampleSectionOrder = FALSE, randomizeSection = TRUE)
|
sampleSectionOrder |
Should it also move around the sections or not? Look at the details for a more detailed explanation |
NamesOfListToSample |
The names of each element on the list we want to sample, with the original order. The usual use would be Being specific, the names that are provided will be matched with the regular expression |
isRandomized |
If this is set to false, it will not randomize the list, it will just output |
Following the prescription from StructureDocument
, it keeps the "prior_to" and "post_to" parts fixed. And within each section it keeps the "begin_" and "end_" parts fixed. Then, it resamples everything within each section, and afterwards resamples the order of the sections if sampleSectionOrder
is true
Note how the names of the list are expected to represent the structure described in StructureDocument
An integer vector, that would provide a random reordering of the list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.