R/rep_index.R

Defines functions rep_index

Documented in rep_index

#'Rep index
#'
#'Helper function that repeats a number k times
#'@details Can be used to create vectors of lineup data
#'@param index Number to be repeated
#'@param num Number of times to repeat index
#'@examples
#'rep_index(1, 10)
#'@export

rep_index <- function(index,num){
  rep(index, num)
}

Try the r4lineups package in your browser

Any scripts or data that you put into this service are public.

r4lineups documentation built on May 2, 2019, 7:10 a.m.