powered by
A function that takes a table of lineup choices and generates a vector of raw lineup data
gen_linevec(lineup_table, k)
A table of lineup choices
Nominal size (i.e.,total number of lineup members). Must be declared by user
Returns a vector of lineup choices
# NOT RUN { #Data: lineup_vec <- round(runif(100, 1, 6)) lineup_table <- table(lineup_vec) #Call: lineup_vec <- gen_linevec(lineup_table, 3) # }
Run the code above in your browser using DataLab