> Da: [email protected] [mailto:[email protected]]
> Per conto di Luca Braglia
> Inviato: venerdì 11 settembre 2009 10.17
> A: [email protected]
> Oggetto: [R] how to do this?


> in this case the ouput should be
> 
> 2
> 16
> 12
> 


Obviously this ....


id.match = rep(0, nrow(y))
for (indice in 1:nrow(y)) {
        id.match[indice] <- y[indice, x[indice]] } id.match


... works, but it's not that good solution (especially for big data.frame)

Thank you

______________________________________________
[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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to