# Use a tolerance of plus or minus 5 ppm
toy_metaboscape %>%
filter_mz(m_z_col = `m/z`, 162.1132, tolerance = 5, tolerance_type = "ppm")
# Use a tolerance of plus or minus 0.005 Da
toy_metaboscape %>%
filter_mz(m_z_col = `m/z`, 162.1132, tolerance = 0.005, tolerance_type = "absolute")
Run the code above in your browser using DataLab