hey, I in my dataset i have one column with factor variables, "no" and "yes" i wuld like to create new dataset only with rows containg "no" option.
I was trying this:
data_with_only_no<-data[data$column!="yes",]
but nothing changed, no rows have been removed
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
i dont think its necessery
Besides being a polite thing to do when you ask for help with coding problems, The code you posted should have worked so the issue should lay in the structure of your data so it would be useful to see a sample of it.
1 Like
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.