My dataframe looks like this -
dataset = data.frame(ID=c(1:3),Count=c(22,NaN,13))
I'm trying to use the pipe operator to replace NaN with 0
dataset = dataset %>% replace('NaN',0)
However this doesn't work. I've looked at the solutions on this websites, but none seem to work.
Any inputs would be highly appreciated.