In the following vector:
x<-c("*D46*E146*N189", "*M420", "*B491*K380", "*Y841*N189*N179", "*K389*E142X")
I would like to extract the elements that contain "E14"
and "K38"
.
That is, I would like to have returned the elements: "*D46*E146*N189"
, "*B491*K380"
, and "*K389*E142X"
.
Does anyone have any suggestion?