Re: [R] Code driven data.frame naming question.

2019-04-15 Thread Fieck, Joe
Thanks for the reply Jeff. I will play around with your code example and see where it takes me. -Original Message- From: Jeff Newmiller Sent: Monday, April 15, 2019 4:55 PM To: r-help@r-project.org; Fieck, Joe ; R-help@r-project.org Subject: Re: [R] Code driven data.frame naming

Re: [R] Code driven data.frame naming question.

2019-04-15 Thread Jeff Newmiller
While the assign function is in fact the function you are looking for, I would strongly advise that you cease and desist in this endeavour and instead make a list of data frames rather than littering your global environment with many individual data frames. If you have a vector of names of

[R] Code driven data.frame naming question.

2019-04-15 Thread Fieck, Joe
Hello R list. I'm very new. I have what I hope is a simple question that I have not been able to find a good solution for. If this is common and clutters anyone's inbox my most sincere apologies in advance... I am trying to use an argument from a function in the name of a data.frame. But I

[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

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 guillaume.yziq...@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

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 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 code