https://researchdatapod.com/how-to-solve-r-error-missing-values-are-not-allowed-in-subscripted-assignments-of-data-frames/
How to Solve R Error: missing values are not allowed in subscripted assignments of data frames