[Rd] combining large list of data.frames

2012-04-19 Thread Cole Beck
It's normal for me to create a list of data.frames and then use do.call('rbind', list(...)) to create a single data.frame. However, I've noticed as the size of the list grows large, it is perhaps better to do this in chunks. As an example here's a list of 20,000 similar data.frames. # creat

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread Holger Schwender
Hi Ravi, rowMin and rowMax are available in the Biobase package (available from BioConductor). Best, Holger Original-Nachricht > Datum: Thu, 19 Apr 2012 18:12:30 + > Von: Ravi Varadhan > An: "r-devel@r-project.org" > Betreff: [Rd] Column(row)wise minimum and maximum >

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread Steve Lianoglou
Hi, On Thu, Apr 19, 2012 at 4:33 PM, Ravi Varadhan wrote: > Thanks, Henrik, for the helpful response.  Your package was helpful indeed! > > However, I would still like to see this in the base package. For what it's worth, I think they'd be useful to have there, too. -steve > > Ravi > > -Or

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread Ravi Varadhan
Thanks, Henrik, for the helpful response. Your package was helpful indeed! However, I would still like to see this in the base package. Ravi -Original Message- From: henrik.bengts...@gmail.com [mailto:henrik.bengts...@gmail.com] On Behalf Of Henrik Bengtsson Sent: Thursday, April 19,

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread William Dunlap
S+ has such functions with a slightly different naming convention: it puts an 's' after each function. E.g., colMaxs instead of your colMax. "colMaxs" "colMeans" "colMedians" "colMins" "colProds" "colQuantiles" "colRanges""colStdevs""colSums" "colVars" "ro

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread Henrik Bengtsson
This is why the matrixStats package was created, cf. http://cran.r-project.org/web/packages/matrixStats/ 1. Yes, it would be nice to have them in one of the default packages. 2. We decided to focus on/constrain ourselves matrices in matrixStats. We decided not to go into arrays with length(dim(.)

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread Ravi Varadhan
Oliver, It is mainly a speed issue (and also compactness!), at least for me. Using `apply' is so much slower. I agree with you that having column and row operations available for "basic" stats operations in "base" would be great. David - I am aware of capabilities in other packages, but I am

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread oliver
On Thu, Apr 19, 2012 at 08:31:56PM +0200, oliver wrote: > On Thu, Apr 19, 2012 at 06:12:30PM +, Ravi Varadhan wrote: > > Hi, > > > > Currently, the "base" has colSums, colMeans. It seems that it would be > > useful to extend this to also include colMin, colMax (of course, rowMin and > > rowMa

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread oliver
On Thu, Apr 19, 2012 at 06:12:30PM +, Ravi Varadhan wrote: > Hi, > > Currently, the "base" has colSums, colMeans. It seems that it would be > useful to extend this to also include colMin, colMax (of course, rowMin and > rowMax, as well) in order to facilitate faster computations for large vec

[Rd] Column(row)wise minimum and maximum

2012-04-19 Thread Ravi Varadhan
Hi, Currently, the "base" has colSums, colMeans. It seems that it would be useful to extend this to also include colMin, colMax (of course, rowMin and rowMax, as well) in order to facilitate faster computations for large vectors (compared to using apply). Has this been considered before? Ple

Re: [Rd] C - R integration: Memory Issues

2012-04-19 Thread Dirk Eddelbuettel
On 18 April 2012 at 17:40, Nikolaos Bezirgiannidis wrote: | Hi all, | | I am a PhD student and I am working on a C project that involves some | statistical calculations. So, I tried to embed R into C, in order to | call R functions from a C program. My program seems to get the correct | r

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-19 Thread MacQueen, Don
Another potential problem with the xlim=c(5,NA) type of approach is that if I am calculating the limits (as I often do) and have a bug in my calculation, such that I get an NA for one of the limits, then my plot would succeed rather than fail -- and succeed with hard to predict results. This will m

[Rd] C - R integration: Memory Issues

2012-04-19 Thread Nikolaos Bezirgiannidis
Hi all, I am a PhD student and I am working on a C project that involves some statistical calculations. So, I tried to embed R into C, in order to call R functions from a C program. My program seems to get the correct results from R. However, it appears to have a lot of memory allocation issu