I'd like to retain rows with only one element and I am struggling to find a code/package that allows me to do that.
to be clearer, this is an example of my dataset:
Considering variable A1, I would like to remove row 5 as it has two elements (CA) and considering variable A2, rows 16 (TAA) and 19 (GA) should be removed. I tried to use the "str_remove" command but the cells with two or more elements are all different in terms of letters they include as well as number of elements in them (e.g, one cell can have two elements and others have even 5 elements in it), so I cannot establish a pattern.
Do you have any suggestion? Thanks for your help
Silvia