Terselubung -inf ke 0 r

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