https://researchdatapod.com/how-to-solve-r-error-replacement-has-length-zero/
How to Solve R Error: replacement has length zero