Re: [R] find the data frames in list of objects and make a list of them

2014-09-04 Thread Matthew
Thank you very much, Bill ! It has taken my a while to figure out, but yes, what I need is a list (the R object, list) of data frames and not a character vector containing the names of the data frames. Thank you very much. This works well and is getting me in the direction I want to go

Re: [R] find the data frames in list of objects and make a list of them

2014-08-13 Thread William Dunlap
Previously you asked > A second question: is this the best way to make a list >of data frames without having to manually type c(dataframe1, dataframe2, > ...) ? If you use 'c' there you will not get a list of data.frames - you will get a list of all the columns in the data.frame you supp

Re: [R] find the data frames in list of objects and make a list of them

2014-08-13 Thread Matthew
Hi Richard, Thank you very much for your reply and your code. Your code is doing just what I asked for, but does not seem to be what I need. I will need to review some basic R before I can continue. I am trying to list data frames in order to bind them into 1 single data frame with somet

Re: [R] find the data frames in list of objects and make a list of them

2014-08-13 Thread Matthew
Jim, Wow that was cl ! This function is *really* useful. Thank you very much ! (It is also way beyond my capability). I need to make a list of data frames because then I am going to bind them with plyr using 'dplyr::rbind_all(listOfDataFrames)'. This will make a single data frame, and f

Re: [R] find the data frames in list of objects and make a list of them

2014-08-13 Thread Richard M. Heiberger
I would do something like this lsDataFrame <- function(xx=ls()) xx[sapply(xx, function(x) is.data.frame(get(x)))] ls("package:datasets") lsDataFrame(ls("package:datasets")) On Wed, Aug 13, 2014 at 2:56 PM, Matthew wrote: > Hi everyone, > >I would like the find which objects are data frames i

Re: [R] find the data frames in list of objects and make a list of them

2014-08-13 Thread jim holtman
Here is a function that I use that might give you the results you want: = > my.ls() Size Class Length Dim .Random.seed 2,544integer 626 .remapHeaderFile 40,440 data.frame 2 373 x 2 colID 216 char