I’m new in the forum, and first I want to say hello to everyboy!
And now, this is the question:
I’m trying to manipulate and re-organise a lot of complex data, they have many problems, they’re presented very bad, and one-to-one I’m trying to solve all the problems..Now I have to solve a problem that I don’t know how can I do, honestly:
I have in a column many different values for each row, that means a list of values that are separate through a comma, and it’s ok, I did it with “colsplit()”, but now the problem is that not evey row in the column has many values, so I have to say: split the values only if there is the comma.
I could do it with apply, or if else, or for cycle…but I can’t create a good cycle that does it, sorry.. I think it would be easy for people that do always “Programming in R”, but I have not so much practice with the programming, so I ask for a help..