I am working in R studio and currently have this as a field for a column:
row 1: SA * OP OIT ORT * PC row 2: SA DT * ACMA * PC
I would like to have this
SA DT ACMA OP OIT ORT PC 1 na na 1 1 1 1 1 1 1 na na na 1
I have tried using separate() but do knot know the number of columns possible as it is a very large dataset and this does not address the issues of 1 vs. a character. This would also make it challenging/tedious to use grep or some sort of other specific call-outs.