Re: [R] code for [[.data.frame

2009-12-13 Thread Romain Francois
On 12/13/2009 02:42 PM, Guillaume Yziquel wrote: baptiste auguie a écrit : `[[.data.frame` Note that this will only be the source code if you have options "keep.source" and "keep.source.pkgs" set to TRUE, and the environment variable "R_KEEP_PKG_SOURCE" equal to yes. Otherwise you see the

Re: [R] code for [[.data.frame

2009-12-13 Thread Guillaume Yziquel
baptiste auguie a écrit : `[[.data.frame` and more generally see Rnews Volume 6/4, October 2006 "Accessing the Sources". HTH, baptiste Thank you so much. Indeed, I've been able to look at the source code of the function from the source code of R. But I was quite keen on knowing how to do

Re: [R] code for [[.data.frame

2009-12-13 Thread baptiste auguie
`[[.data.frame` and more generally see Rnews Volume 6/4, October 2006 "Accessing the Sources". HTH, baptiste 2009/12/13 Guillaume Yziquel : > 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;;

[R] code for [[.data.frame

2009-12-13 Thread Guillaume Yziquel
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'argument