Skip to contents

Helper function that repeats a number k times

Usage

rep_index(index, num)

Arguments

index

Number to be repeated

num

Number of times to repeat index

Details

Can be used to create vectors of lineup data

Examples

rep_index(1, 10)
#>  [1] 1 1 1 1 1 1 1 1 1 1