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