split columns into multiple columns
问题 i have been struggled with how to split multiple columns into multiple columns using R but with no result, i have tried many tricks on Stackoverflow and it doesn't work. here is my probleme : reactions__001 reactions__002 reactions__003 25 Like 23 Love 15 Like 5 Love 3 Haha 20 Haha 3 Sad 2 Angry now what i am looking for is to split this data frame like this one Like Love Haha Sad Angry 25 23 0 0 0 15 5 3 0 0 0 0 20 3 2 i have tried the str_split_fixed(df$reactions__001, " ", 2) but it gives