[R] code for [[.data.frame
baptiste auguie
baptiste.auguie at googlemail.com
Sun Dec 13 11:03:32 CET 2009
`[[.data.frame`
and more generally see Rnews Volume 6/4, October 2006 "Accessing the Sources".
HTH,
baptiste
2009/12/13 Guillaume Yziquel <guillaume.yziquel at citycable.ch>:
> 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/
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list