Re: [Rcpp-devel] howto access elements of a DataFrame ?

2017-05-29 Thread Qiang Kou
Hi, Wasilios, I modified your code a little and paste below. I hope this helps. Best, KK df <- data.frame(first=c("a","A", "aA"), second=c("b","B","bB"), third=rep(c("c","C","cC"),4)) PLAYGROUND = new.env() PLAYGROUND$testData <- split(df, df$first) src_4=' Rcpp::Environment e(env); Rcpp::Lis

Re: [Rcpp-devel] howto access elements of a DataFrame ?

2017-05-29 Thread Wasilios Goutas
Hi KK, thank you. This helped a lot. Also the stream operators is something I was also looking for :) bye Wasili > Am 29.05.2017 um 20:21 schrieb Qiang Kou : > > Hi, Wasilios, > > I modified your code a little and paste below. I hope this helps. > > Best, > > KK > > > df <- data.frame(f

[Rcpp-devel] RInside: interrupting an analysis

2017-05-29 Thread Jonathon Love
hi dirk, is there a way to gracefully 'interrupt' an analysis run from RInside? i'll need to send an interrupt from a different thread? (whatever R does when you hit Ctrl+C) and can RInside deal from the fallout from that? with thanks jonathon jamovi - stats. open. now. www.jamovi.org

Re: [Rcpp-devel] RInside: interrupting an analysis

2017-05-29 Thread Dirk Eddelbuettel
On 30 May 2017 at 09:22, Jonathon Love wrote: | is there a way to gracefully 'interrupt' an analysis run from RInside? | | i'll need to send an interrupt from a different thread? (whatever R does | when you hit Ctrl+C) | | and can RInside deal from the fallout from that? Should be no different