[R] subsetting from C code, do_subset
    Gabor Csardi 
    csardi at rmki.kfki.hu
       
    Sat Apr 22 19:13:32 CEST 2006
    
    
  
Dear List,
do you know a way for subsetting an R object from C code? I would need the
equivalent of x[s]. I've found that the do_subset internal function does
this, but don't really know how to call it properly. I've two SEXP's, one
for the object and one for the index. 
I'm thinking of creating an enviroment, place the two SEXP's in it and then
just parse and run the corresponding R code, but there might be simpler
way... 
Any hints are appreciated. Thanks,
Gabor
-- 
Csardi Gabor <csardi at rmki.kfki.hu>    MTA RMKI, ELTE TTK
    
    
More information about the R-help
mailing list