how to remove one row in r code example Example 1: r remove inf values df <- df[!is.infinite(rowSums(df)),] Example 2: remove rownumbers r rownames(data) <- c()