removing row with specific string in r code example
Example 1: r remove inf values
df <- df[!is.infinite(rowSums(df)),]
Example 2: delete all rows that contain a string in R
library(dplyr)
df %>%
filter(!grepl('REVERSE', Name))
df <- df[!is.infinite(rowSums(df)),]
library(dplyr)
df %>%
filter(!grepl('REVERSE', Name))