I am using DT in shiny to allow users to filter data:
dt <- DT::datatable( choice_df(), filter = list(position = 'top', clear = FALSE), options = list( pageLength = 5, searchCols = list( NULL, list(search = default_crop), NULL, NULL ) )
It is working great. However, when a factor column contains value of string 'NA' ( it stands for North America), it does not work properly. If nothign is put in the filter box, I can see 'NA', and other values; if I select a value other than 'NA' it is working, but when I select only 'NA'
, it says, "No matching records found".