remove rows in r with particular value code example Example: r remove inf values df <- df[!is.infinite(rowSums(df)),]