I have list of names and I have a data frame with colnames that match sometimes the names in the list. Now I want to subset the data frame based on two criteria: the colnames (a
Use the old-fashioned [ and [[ operators:
[
[[
name <- "name1" df[df[[name]] > 1.5, ] (etc)