I have a column as follows.
Id Feedback
1 c("No", "No", "No", "No", "No", "No")
2 c("No", "No", "No")
3 c("No", "No", "No", "No", "Taking Medication")
I am trying to get rid of the No such that the final results after cleanup should look like this
Id Feedback
1
2
3 "Taking Medication"
I tried using function sub
it did not work. I tied using gsub
the function worked but the results are messy. When I use df1$Feedback = gsub("No", "", df1$Feedback)
the results are like this below
Id Feedback
1 c("", "", "", "", "", "")
2 c("", "", "")
3 c("", "", "", "", "Taking Medication")
Any help regarding this issue is much appreciated.