I'm attempting to subset all rows by names that don't contain the + symbol, but can not figure it out. Consider:
df <- data.frame(Models = c("m1+m2", "m3+m4", "m5"), Values = rep(1:3))
df[,3] <- grepl("+", df[,1])
df
Models Values V3
1 m1+m2 1 TRUE
2 m3+m4 2 TRUE
3 m5 3 TRUE
Shouldn't row 3 be FALSE?