> -----Original Message----- > From: Yan Zhou [mailto:zhou...@me.com] > Sent: Tuesday, February 19, 2013 5:10 PM > To: Dirk Eddelbuettel > Cc: Ken Williams; rcpp-devel@lists.r-forge.r-project.org > Subject: Re: [Rcpp-devel] Efficient DataFrame access by row & column > > The most inefficient part I see is the creation of a new NumericVector inside > the inner most loop. You copied each column n times, of which n-1 times are > unnecessary.
That's what I suspected. So is there no way to access elements of a DataFrame without copying columns to a new vector first? -Ken ________________________________ CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you. _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel