Does anyone report p = 0.00 or p < .000 or p > .000?
p_zero_regex <- "p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.00[^0-9]|p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.000[^0-9]|p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.0000[^0-9]"
text_found <- search_text(xml, p_zero_regex, section = "results")$text
result_df <- data.frame(problem = rep("A p-value of exactly 0 was found", length(text_found)), text = text_found, solution = rep("P-values are never exactly zero. If p is smaller than .001, use p < .001", length(text_found)))
Does anyone report p = 0.00 or p < .000 or p > .000?
p_zero_regex <- "p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.00[^0-9]|p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.000[^0-9]|p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.0000[^0-9]" text_found <- search_text(xml, p_zero_regex, section = "results")$text result_df <- data.frame(problem = rep("A p-value of exactly 0 was found", length(text_found)), text = text_found, solution = rep("P-values are never exactly zero. If p is smaller than .001, use p < .001", length(text_found)))