search for: list_to_datafram

Displaying 3 results from an estimated 3 matches for "list_to_datafram".

Did you mean: list_to_dataframe
2011 Feb 14
1
Return list of data frames.
Hi, I've got a problem with a function trying to return 2 data frames in a list. The code is as follow: function(x) { # code.... MyList<- list("a"=df.a,"b"=df.b) return(MyList) } and I got the following message: Error in list_to_dataframe(res, attr(.data, "split_labels")) : Results must be all atomic, or all data frames At first instance I thought it may be down that both df have same variable names so I changed var names in df.a - but I am still getting the same error then I changed my lIst to MyList<- list(df.a,d...
2011 Jan 06
0
Problem with package twitteR and converting S4 obj to data frame
Hi, I wrote a simple script to retrieve an n number of followers for a given user in Twitter. I used a sample of n=10 to test my script and worked perfectly but once I started to changes n I started to get the following error: Error in list_to_dataframe(res, attr(.data, "split_labels")) : Results do not have equal lengths I have no clue why works fine with n=10 but for higher values fall over. Any Suggestions? Below is my script. Thanks, Alberto library(plyr) library(twitteR) getuser <- getUser('altons') count <-...
2010 Jan 30
2
parsing files for plot
Hi, I have many files containing one column of data. I like to use the scan function to parse the data. Next I like to bind to a large vector. I try this like: count<-1 files <- list.files() # all files in the working directory for(i in files) { tmp <- scan(i) assign(files[count], tmp) count<-count+1 } This part works! Now I like to plot the data in a boxplot.