extreme_pairing_rearranger_ | R Documentation |
Wrapper for running extreme pairing
extreme_pairing_rearranger_(
data,
col = NULL,
unequal_method = "middle",
order_by_aggregates = FALSE,
shuffle_members = FALSE,
shuffle_pairs = FALSE,
num_pairings = 1,
balance = "mean",
factor_name = ".pair",
overwrite = FALSE
)
data |
|
col |
Column to create sorting factor by.
When |
unequal_method |
Method for dealing with an
unequal number of rows/elements in One of: firstThe first group will have size Example: The ordered column values:
Creates the sorting factor:
And are ordered as:
middleThe middle group will have size Example: The ordered column values:
Creates the sorting factor:
And are ordered as:
lastThe last group will have size Example: The ordered column values:
Creates the sorting factor:
And are ordered as:
|
order_by_aggregates |
Whether to order the pairs from initial pairings (first N.B. Only used when |
shuffle_members |
Whether to shuffle the order of the group members within the groups. (Logical) |
shuffle_pairs |
Whether to shuffle the order of the pairs. Pair members remain together. (Logical) |
num_pairings |
Number of pairings to perform (recursively). At least Based on |
balance |
What to balance pairs for in a given secondary pairing.
Either The first pairing always pairs the actual element values. meanPairs have similar means. The values in the pairs from the previous pairing
are aggregated with spreadPairs have similar spread (e.g. standard deviations).
The values in the pairs from the previous pairing
are aggregated with min / maxPairs have similar minimum / maximum values. The values in the pairs from the previous pairing
are aggregated with |
factor_name |
Name of new column with the sorting factor.
If |
overwrite |
Whether to allow overwriting of existing columns. (Logical) |
The sorted data.frame
(tibble
) / vector
.
Optionally with the sorting factor(s) added.
When `data`
is a vector
and `factor_name`
is `NULL`
,
the output will be a vector
. Otherwise, a data.frame
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.