I have received a csv table of compound concentrations. Scattered throughout there are character values with various meanings, such as > 888
, <0.2
, /
, and many more.
Is there a way, preferably using base R or readr
, to convert these to NA
while reading in and thus start from numeric data only?
At the moment I can only find a solution that relies on hard-coding every character string which would be too difficult and time-consuming.