I\'m trying to select rows in a dataframe where the string contained in a column matches either a regular expression or a substring:
dataframe:
Corrected according Andrie advice. I hope this should work. :)
df[grepl("ADN", df$bName),] df[grepl("ADN", df$bName) & df$pName == "2011-02-10_R2",]