If I do this
data %>% filter(primary.name == "Down syndrome" | other.names == "Down syndrome")
I get the whole row of data. But what if I only want the data in one of the cells (ie, the one with the "dx" header)?
I tried this:
data$dx %>% filter(primary.name == "Down syndrome" | other.names == "Down syndrome")
But got this error:
Error in UseMethod("filter_") :
no applicable method for 'filter_' applied to an object of class "factor"