r menghapus nilai inf
df <- df[!is.infinite(rowSums(df)),]
Arno Deceuninck
df <- df[!is.infinite(rowSums(df)),]