Covert -inf do 0 r

df[df == -Inf] <- 0
Yan Zhang