I'm trying to split my dataset (296 rows) in two, the first part will have some conditions and the other is only the rest of the dataset that does not match the conditions.
I did this and found 81 rows for the first part :
cardio = donnees %>%
select(`Nausées/vomissements`,Vertige,Nystagmus,`Ataxie:Démarche ébrieuse`,`Motif si pas HINTS`,
Alcool,Tabac,`atcd neuro`,Dyslipidémies,Diabète) %>%
filter(Alcool == "Yes" |
Tabac == "Yes"|
`atcd neuro` == "3" |
Dyslipidémies == "Yes"|
Diabète == "Yes")
Then I simply use "!" to find the rest, but unfortunately I only got 77 rows instead of the 215 expected,
donnees %>%
select(`Nausées/vomissements`,Vertige,Nystagmus,`Ataxie:Démarche ébrieuse`,`Motif si pas HINTS`,
Alcool,Tabac,`atcd neuro`,Dyslipidémies,Diabète) %>%
filter(!(Alcool == "Yes" |
Tabac == "Yes" |
`atcd neuro` == "3" |
Dyslipidémies == "Yes" |
Diabète == "Yes" ))
If someone can help? Thanks a lot