I'm still a beginner to R and trying to filter the AF column in this dataset to include values <=0.01 and the blank spaces.
Have used the dplyr filter command to filter one of the other columns and that has been fine so I know it works just don't know how to apply it to the current command I want to run.
A few things...when you reference a column in a dataframe by name, you can'tuse quotation marks. Furthermore, when using dplyr functions, it assumes that you are using the dataframe you passed into the functions, so there's no need for the df$ before a column name. To filter the AF column in this dataset (unclear if dataset is called maf or maf.db so I'll assume the former) to include values <=0.01 and the blank spaces, try