3
I want to select only the lines that have the text "Try", similar to grep in Linux. Follow the example:
my.data <- data.frame(
A = c("prot trypsina catalic", "7", "123", NA, "1419", "ab", "ab", "ab"),
B = c("1416", "7", "123trypsina", "1011", "1416", "ab", "TRYPSIN", "ab"),
c = c("b", "a", "trypsina123", "trypsin", "no", "ab", "ab", "ab"),
d = seq(1:8),
e = rep("please", 8))
The desired result would be as follows:
my.data[c(1,3,4,7),]
A B c d e
1 prot trypsina catalic 1416 b 1 please
3 123 123trypsina trypsina123 3 please
4 <NA> 1011 trypsin 4 please
7 ab TRYPSIN ab 7 please
Fantastic! Thank you very, very much! Strong hug Carlos Eduardo Lobster
– Pedro Alexander Velasquez Vasc