[R] code for [[.data.frame

Guillaume Yziquel guillaume.yziquel at citycable.ch
Sun Dec 13 00:12:47 CET 2009


Hello.

I'm currently trying to wrap up data frames into OCaml via OCaml-R, and 
I'm having trouble with data frame subsetting:

> # x#column 1;;
> Erreur dans (function(x, i, exact) if (is.matrix(i)) as.matrix(x)[[i]] else .subset2(x,  : 
>   l'élément 1 est vide ;
>   la partie de la liste d'arguments de 'is.matrix' en cours d'évaluation était :
>   (i)

So I'd like to know what is the code of [[.data.frame. I know how to 
show the code of functions in R (just typing the name of the function), 
but I'm having trouble with [[.data.frame, as it has a special 
syntacting handling.

Could someone kindly show me how to display the code of [[.data.frame in 
the R toploop?

All the best,

-- 
      Guillaume Yziquel
http://yziquel.homelinux.org/




More information about the R-help mailing list