Re: [R] sqldf with date (class date) variables ?

2009-01-06 Thread Gabor Grothendieck
sqldf has some facilities for Date class but has no knowledge of date class. See example 7b on home page: http://sqldf.googlecode.com and here is a second example: DF - data.frame(D = as.Date(c(21DEC2006,15DEC2006), %d%b%Y)) DF D 1 2006-12-21 2 2006-12-15 sqldf(select * from DF)

Re: [R] directory of files in a zip file?

2009-01-06 Thread Prof Brian Ripley
On Tue, 6 Jan 2009, Spencer Graves wrote: Hi, All: How can I get the list of files contained in a zip file? zip.file.extract will extract a specific 'file' from 'zipname', but how can I get the names of the files in 'zipname'? Package Rcompression will I believe allow you to do this.

Re: [R] Understanding dsyrk_ in C code

2009-01-06 Thread Charles C. Berry
On Wed, 7 Jan 2009, Nathan S. Watson-Haigh wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to understand some C code in an R package I'm using. I'm address this question here as it's matrix algebra...and I'm no pro at that! the C command reads: double alpha = 1.0, beta =

Re: [R] Understanding dsyrk_ in C code

2009-01-06 Thread Nathan S. Watson-Haigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charles C. Berry wrote: On Wed, 7 Jan 2009, Nathan S. Watson-Haigh wrote: I'm trying to understand some C code in an R package I'm using. I'm address this question here as it's matrix algebra...and I'm no pro at that! the C command reads:

[R] Manipulating plots

2009-01-06 Thread Benjamin Modra
Hi all, Is it possible to manipulate the properties of an active graph? I'm trying to manipulate the plots generated by extRemes into something suitable for a report, but the only change I can make successfully is add lines ( abline(v=2) ). For example, I'd like to be able to use standard

[R] Residual deviance (cross-post from sci.stat.consult)

2009-01-06 Thread Serebrenik, A.
Dear all, I'm trying to fit a statistical model to series of measurements. Unfortunately, my knowledge of statistics is rather limited, so I'm a bit at loss of what is going on with the model. First of all, I've prepared a histogram. Then, I've tried to fit a Poisson model to express the

[R] Function to Check Object's Memory Size

2009-01-06 Thread Gundala Viswanath
Dear all, Does R has any function that measures how much memory hold by any particular object? - Gundala Viswanath Jakarta - Indonesia __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Function to Check Object's Memory Size

2009-01-06 Thread Gerrit Eichner
On Wed, 7 Jan 2009, Gundala Viswanath wrote: Dear all, Does R has any function that measures how much memory hold by any particular object? - Gundala Viswanath Jakarta - Indonesia __ R-help@r-project.org mailing list

Re: [R] Drawing from an empirical distribution

2009-01-06 Thread Matthias Kohl
one could also use package distr; e.g., library(distr) x - 1:10 D - DiscreteDistribution(x) ## = r, d, p and q functions (also with log-argument) r(D)(5) p(D)(4) d(D)(1) q(D)(0.3) Best, Matthias roger koenker wrote: Sure, but it would be more 'fun' to modify ecdf() slightly to produce an

<    1   2