Hi Folks,
I need to extract the list of all my data frame objects. With objects() I can
list all objects and was hoping to use something like the following:
objects()[is.data.frame(objects())] to extracts all my objects that are data
frame...
What am I doing wrong?
Thanks - Tim
try something like the following (untested):
objs - ls()
sapply(objs, function(obj) inherits(get(obj), data.frame))
I hope it helps.
Best,
Dimitris
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35,
Dear R helpers
I am trying to convert a list into a data frame but when I try, I get a
stack overflow error (Error: protect(): stack overflow). My list contains
about 17000 rows and looks like shown at the bottom. The reason that I
want to convert it in to a data frame is that I want to export it
Jesper Runge Madsen [EMAIL PROTECTED] writes:
Dear R helpers
I am trying to convert a list into a data frame but when I try, I get a
stack overflow error (Error: protect(): stack overflow). My list contains
about 17000 rows and looks like shown at the bottom. The reason that I
want to
Jesper Runge Madsen wrote:
Dear R helpers
I am trying to convert a list into a data frame but when I try, I get a
stack overflow error (Error: protect(): stack overflow). My list contains
about 17000 rows and looks like shown at the bottom. The reason that I
want to convert it in to a data frame