DELEte row based on value R code example Example: r remove inf values df <- df[!is.infinite(rowSums(df)),]