Re: [R] (no subject)

2012-03-26 Thread James Muller
AJ: This is something to learn a lesson from. A question, starved of preparation, can't help anybody to help you. James On Mar 25, 2012 9:00 PM, "Rolf Turner" wrote: > On 26/03/12 00:18, Anjana Thampi wrote: > >> How do you decompose inequality in R, say by gender? >> >> > This has to be one of

[R] Initializing a large data structure to be accessed strictly within a shared C library

2011-12-27 Thread James Muller
Dear R-help members, *(My apologies for cross-posting to both R-help and R-devel -- this question straddles both domains...)* The question: Is it possible to initialize and later free a large data structure strictly within a shared C library, to be used by a function in the C library that I'll c

Re: [R] [Rd] Initializing a large data structure to be accessed strictly within a shared C library

2011-12-27 Thread James Muller
Thanks Duncan, you've unclogged my thinking. For anybody interested, see below a sketch of the solution. Cheers, James --START SKETCH OF SOLUTION-- #include #include static typedef struct { int nrow, ncol; double *data; } _myparticle_data_struct; static _myparticle_data_struct mypar

[R] Initializing a large data structure to be accessed strictly within a shared C library

2011-12-27 Thread James Muller
Dear R-help members, *(My apologies for cross-posting to both R-help and R-devel -- this question straddles both domains...)* The question: Is it possible to initialize and later free a large data structure strictly within a shared C library, to be used by a function in the C library that I'll c

[R] Initializing a large data structure to be accessed strictly within a shared C library

2011-12-27 Thread James Muller
Dear R-help members, *(My apologies for cross-posting to both R-help and R-devel -- this question straddles both domains...)* The question: Is it possible to initialize and later free a large data structure strictly within a shared C library, to be used by a function in the C library that I'll c

Re: [R] Download daily weather data

2009-02-27 Thread James Muller
Can I just say, it's great to see the R community really come out in support of such a noble and worthy cause as this :). Downfall of civilization, all that. Not here, no! James On Thu, Feb 26, 2009 at 3:47 PM, Thomas Levine wrote: > I'm writing a program that will tell me whether I should we

Re: [R] Download daily weather data

2009-02-26 Thread James Muller
Yes, as a general thing go to regular expressions if you don't have an existing library available to do the same thing (or you're lazy like me:). Jame On Thu, Feb 26, 2009 at 5:16 PM, Wacek Kusnierczyk wrote: > Scillieri, John wrote: >> Looks like you can sign up to get XML feed data from Weathe

Re: [R] Download daily weather data

2009-02-26 Thread James Muller
Thomas, Have a look at the source code for the webpage (ctrl-u in firefox, don't know in internet explorer, etc.). That is what you'd have to parse in order to get the forecast from this page. Typically when I parse webpages such as this I use regular expressions to do so (and I would never downpl

Re: [R] Collecting output from terminal nodes in a recursion tree

2008-09-26 Thread James Muller
Why not have the return values of each instance of the function be: a) list containing only the current value if terminal node b) concatenated list of returned values from functions if not terminal node (and hence call other functions) My thought is the way you've set this up won't be efficie

Re: [R] Converting Geo-Coordinates Unities

2008-09-16 Thread James Muller
I'd recommend just using a simple function for this particular thing, and then use proj4 for complicated geographical transforms. This is such an elementary operation it's not worth getting involved proj4, which, as far as I'm aware, doesn't bother doing what you're wanting anyway. Now, proj4. Wha

[R] c4 for the un-biasing of sample stddev of normal distribution

2008-08-27 Thread James Muller
Hi list, I'm trying to track down a function returning (the expected value of) c4, for correcting for bias in sample standard deviation, given sample standard deviation, population size, and normality of the distribution. Any help appreciated :) And, apologies if I'm looking past it... Cheer

[R] c4 for the un-biasing of sample stddev of normal distribution

2008-08-27 Thread James Muller
Hi list, I'm trying to track down a function returning (the expected value of) c4, for correcting for bias in sample standard deviation, given sample standard deviation, population size, and normality of the distribution. Any help appreciated :) And, apologies if I'm looking past it... Cheer