I have recently received hundreds of CSV files with many columns. I am facing problems with one of the columns, p.value. This column has values like 1.88737914186277e-14 ., where the actual number is followed by exactly 6 spaces and then a dot. I want to replace all these within my dplyr pipe. How can I do this?
I have tried, for example,
df %>% dplyr::mutate(p.value=str_replace(p.value, "[ .]", "")) but obviously is not working. Any help will be appreciated. Thanks.