I have a csv file with daily price values listed by date. For some of the price values excel has no numerical data but a . instead (I believe this means that no price data were recorded for those dates. This file was imported to R and the price values that had a "." in Excel also have a "." in R.
I would like to replace "." with NA but the methods I have applied are not working.
I've tried to mutate the price vector and to replace the values in the price vector to NA.
Here are some of the steps I've tried:
Step 1:
btc %>% mutate(btc = if_else(BCUD == ".", NA))
Step 2:
replace(btc$BCUD, " ", NA)