A method to duplicate a column

rep_col(x, n)

Arguments

x

the column value that need to be repeated

n

the number of repeats