How can I convert string entries of several columns into numeric at once?
For example, if I have 'red' in row 1&3 of column 1, row 2 of column 2, and row 3 of column 3 - how can I make sure that when I convert all three columns into numeric, all the 'red's will get assigned the same numeric number? --this is just a simplified example - as I am working with columns filled with thousands of unique entries
|col 1|col 2|col 3|
|red |blue | blue|
|gray|red |blue |
|red |gray |red |
into:
|col 1|col 2|col 3|
| 1 |2 | 2 |
|3 |1 |2 |
|1 |3 |1 |
Thanks a lot!