DataEditR icon indicating copy to clipboard operation
DataEditR copied to clipboard

Does "contains" / "not contains" filters really works?

Open sbridel opened this issue 11 months ago • 4 comments

Hello.

For instance using iris$Species dataset, either Species CONTAINS / NOT CONTAINS "set" (setosa) doesn't return anything.

Am I doing something wrong ?

I checked the dataFilter() code but i cant see any problem but I am not familiar with this type of code and IDK how I could test something to work around this..

Cheeers

EDIT: I think it's the NOT CONTAIN which is slightly weird

sbridel avatar Mar 06 '24 08:03 sbridel

image

Only 5 setosa returned

image

sbridel avatar Mar 06 '24 09:03 sbridel

image it seems the not contains is broken

sbridel avatar Mar 06 '24 09:03 sbridel

EDIT =

if (logic == "contain") { return(ind) # NOT CONTAIN } else if (logic == "not contain") { return(seq_len(ncol(values$data))[-ind]) } }

=> change to nrow?????

sbridel avatar Mar 06 '24 10:03 sbridel

Fixed on my fork : https://github.com/sbridel/DataEditR

sbridel avatar Mar 06 '24 10:03 sbridel