https://researchdatapod.com/how-to-solve-r-error-in-rep1-n-invalid-times-argument/
How to Solve R Error in rep(1, n) : invalid "times" argument