Hi,

I have a k-level factor F of length n that I would like to use to
extract from an n-by-k matrix M a vector V such that

  V[i] = M[i,as.numeric(F)[i]]

I don't currently understand how to do that in R -- can anyone explain
to me how to do so?

Thanks,

Roger Levy

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to