Learn R Programming

r4lineups (version 0.1.1)

gen_boot_samples: Bootstrap resampling

Description

Function for generating bootstrapped samples from 1 vector of lineup data

Usage

gen_boot_samples(lineup_vec, bootno)

Arguments

lineup_vec

A numeric vectors of lineup choices

bootno

Number of bootstrap samples

Value

A dataframe of bootstrapped lineup data

Examples

Run this code
# NOT RUN {
#Data:
lineup_vec <- round(runif(100,1,6))
bootno <- 1000

#Call:
bootdf <- gen_boot_samples(lineup_vec, bootno)

# }

Run the code above in your browser using DataLab