Hi,
I have date that looks like
How do I generate a column that counts the number of strings (numbers inputted as strings) for every observation?
So I want something like:
Thanks in advance!
I have date that looks like
Observation | X |
1 | 1,2,3 |
2 | 3,4 |
3 | 1,5,4,2 |
4 | 1 |
5 | 1,2,3 |
So I want something like:
Observation | X | Count_X |
1 | 1,2,3 | 3 |
2 | 3,4 | 2 |
3 | 1,5,4,2 | 4 |
4 | 1 | 1 |
5 | 1,2,3 | 3 |
Comment