I have data that looks like this:
| Column A | Column B | Column C |
|---|---|---|
| 1 | 2 3 | NA |
| 4 | 5 | 6 |
| 7 | 8 | 9 |
| 10 | 11 12 |
I am trying to clean in it in R. Each column has to contain one number. In the case of row 1, number 3 belongs to column C but is stored in column B. Likewise, I have column B, the last row, where 12 belongs to column C but is stored in B.
How do I go about cleaning this in R?
I am new to R and haven't encountered a problem like this before.
It looks like it was imported incorrectly, but if you don't have the ability to fix it there (preferred), here's a hack to fix that frame:
Data