Re: [R] Fast function for each row of a data.table

2014-07-24 Thread PIKAL Petr
too. Regards Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Aurélien Philippot > Sent: Thursday, July 24, 2014 1:39 AM > To: R-help@r-project.org > Subject: [R] Fast function for each row of a data.tab

[R] Fast function for each row of a data.table

2014-07-23 Thread Aurélien Philippot
Dear R experts, I have the following data.table: dt<- data.table(A=rep(1:5), B=c(20:24), C=rep(30:34), target.name=c("A","B", "C","B","A"), target.column=c(1,2,3,2,1), target.value=rep(NA,5)) Columns A, B and C are the variables of interest. For each row, I want to get the value of the variable