remove a row by value R code example Example 1: r remove inf values df <- df[!is.infinite(rowSums(df)),] Example 2: remove rownumbers r rownames(data) <- c()