> Da: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > Per conto di Luca Braglia > Inviato: venerdì 11 settembre 2009 10.17 > A: r-help@r-project.org > 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 ______________________________________________ R-help@r-project.org 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.