Removing raws based on a vector : Given a matrix (m),
I want to remove from it the subjects given by a changing vector,
I am trying to do a loop but it does only remove the first input: 
            
m= matrix(1:4,10,3);

changing_vector = c(2,1) or c(1,4) # etc..

            for(j in 1:length(changing_vector ))
            {
            a = subData[(subData$subject== changing_vector [j]),]
            }

Someone know why it does not work? Do you propose any other way to do it?

Thanks in advance for your help,

G.


