search for: split_labels

Displaying 8 results from an estimated 8 matches for "split_labels".

2012 Sep 26
1
Change in order of names after applying "plyr" package
...)                       mc_VaR(ason_date = x$ason_date, security_id = x$security_id,                       security_rate = x$security_rate))      > result_method_other $AB [1] 0.2657424 $AD [1] 0.212061 $Air [1] 6.789733 attr(,"split_type") [1] "data.frame" attr(,"split_labels")   security_id 1          AB 2          AD 3         Air MY PROBLEM : My original data (i.e. equity_data) has the order of "Air", "AB" and "AD". However, after applying plyr, my order (and corresponding result) has changed to "AB", "AD" &qu...
2012 Aug 28
1
don't print object attributes
...n missing unique Mean .05 .10 .25 .50 .75 50 0 21 6.588 5.745 5.800 6.225 6.500 6.900 .90 .95 7.610 7.700 lowest : 4.9 5.6 5.7 5.8 5.9, highest: 7.3 7.4 7.6 7.7 7.9 attr(,"split_type") [1] "data.frame" attr(,"split_labels") Species 1 setosa 2 versicolor 3 virginica Regards Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-ma...
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,df.b) just to try something different...
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 <- 50 UserFollowers <-userFollowers(...
2011 Apr 11
0
plyr: version 1.5
...closer to `join(y, x, "right")`, modulo column ordering * `named.quoted` failed when quoted expressions were longer than 50 characters. (Thanks to bug report from Eric Goldlust) * `rbind.fill` now correctly maintains POSIXct tzone attributes and preserves missing factor levels * `split_labels` correctly preserves empty factor levels, which means that `drop = FALSE` should work in more places. Use `base::droplevels` to remove levels that don't occur in the data, and `drop = T` to remove combinations of levels that don't occur. * `vaggregate` now passes `...` to the aggrega...
2011 Apr 11
0
plyr: version 1.5
...closer to `join(y, x, "right")`, modulo column ordering * `named.quoted` failed when quoted expressions were longer than 50 characters. (Thanks to bug report from Eric Goldlust) * `rbind.fill` now correctly maintains POSIXct tzone attributes and preserves missing factor levels * `split_labels` correctly preserves empty factor levels, which means that `drop = FALSE` should work in more places. Use `base::droplevels` to remove levels that don't occur in the data, and `drop = T` to remove combinations of levels that don't occur. * `vaggregate` now passes `...` to the aggrega...
2010 Oct 03
1
plyr: a*ply with functions that return matrices-- possible bug in aaply?
...Eye Hair Brown Blue Hazel Black 32 11 10 Brown 53 50 25 Red 10 10 7 $`2` Eye Hair Brown Blue Hazel Black 36 9 5 Brown 66 34 29 Red 16 7 7 attr(,"split_type") [1] "array" attr(,"split_labels") Sex 1 Male 2 Female > However, with aaply(), dim[3] ends up as first dimension, not last > # dim[3] ends up as first dimension, not last > aaply(HairEyeColor, 3, fun2way) , , Eye = Brown Hair Sex Black Brown Red Female 36 66 16 Male 32...
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.