I am trying to sort through a data frame and add rows that fit a criteria to vector. I want to take lines that start with '>MPMxx' where x is any integer, and put that line into one vector and the line below it into another vector. How can I represent the xx such that the program will just look for any integers in the place of x. Want to use a for loop with if statements. I have this thus far before I got stuck with the question.
for( i in 1:df$V1){
if (df$V1 == MPMxx){
Name_vector <- df$V1[i] && Sequence <- df$V1[i+1]
}
}