View source: R/SDS100_pnull_shuffle_resample_pairs.R
resample_pairs | R Documentation |
Samples with replacement the same rows from two vectors
resample_pairs(vector1, vector2)
vector1 |
A vector of values. |
vector2 |
A vector of values of the same length as vector1. |
Returns a data frame that has three variables: 1. The original sample index number 2. The values that were randomly selected from vector1 3. The values that were randomly selected from vector2
vector1 <- 1:26
vector2 <- letters
resample_pairs(vector1, vector2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.