I have a data frame in R as follows
PROBE_ID H_1AVG_Signal H_1Detection Pval H_2AVG_Signal H_2Detection Pval GH_1AVG_Signal GH_1Detection Pval
ILMN_1343291 47631.78 0.00 53022.43 0.00 46567.29 0.00
ILMN_1651229 135.42 0.01 161.59 0.01 162.46 0.04
ILMN_1651260 80.81 0.86 88.05 0.86 92.45 0.89
ILMN_1651279 143.65 0.01 138.96 0.04 113.29 0.47
Is there any possible way to subset data containing the Probe IDs with detection p value < 0.05 for all samples using the common suffix "Detection Pval" to finally get a subset data as follows
PROBE_ID H_1AVG_Signal H_1Detection Pval H_2AVG_Signal H_2Detection Pval GH_1AVG_Signal GH_1Detection Pval
ILMN_1343291 47631.78 0.00 53022.43 0.00 46567.29 0.00
ILMN_1651229 135.42 0.01 161.59 0.01 162.46 0.04
I would really appreciate advice on how to go about creating such a subset. Thank You.