Dear all,

I have to pick one value per row from an array, but from row to row from
a different column. The column positions of the values for each row are
stored in a vector.

array: 999 rows, 48 columns

vector: 999 values (each between 1 and 48) indicating for each row which
value to pick from that row.

Is there a non-loop way to pick the 999 values from the array, probably
using some form of ?apply?


Thank you very much for help and suggestions!

Wolfgang

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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