Re: [R] Inserting 17M entries into env took 18h, inserting 34M entries taking 5+ days

2013-11-08 Thread Magnus Thor Torfason
of the help, Magnus On 11/4/2013 8:20 PM, Thomas Lumley wrote: On Sat, Nov 2, 2013 at 11:12 AM, Martin Morgan mailto:mtmor...@fhcrc.org>> wrote: On 11/01/2013 08:22 AM, Magnus Thor Torfason wrote: Sure, I was attempting to be concise and boiling it down to what

Re: [R] Inserting 17M entries into env took 18h, inserting 34M entries taking 5+ days

2013-11-04 Thread Magnus Thor Torfason
lto:r-help-boun...@r-project.org] On Behalf Of Magnus Thor Torfason Sent: Friday, November 01, 2013 8:23 AM To: r-help@r-project.org Subject: Re: [R] Inserting 17M entries into env took 18h, inserting 34M entries taking 5+ days Sure, I was attempting to be concise and boiling it down to what I saw as

Re: [R] Inserting 17M entries into env took 18h, inserting 34M entries taking 5+ days

2013-11-04 Thread Magnus Thor Torfason
: Tell me what you want to do, not how you want to do it. There may be other solutions to your problem. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Fri, Nov 1, 2013 at 9:32 AM, Magnus Thor

Re: [R] Inserting 17M entries into env took 18h, inserting 34M entries taking 5+ days

2013-11-04 Thread Magnus Thor Torfason
There are around 16M unique values. After accounting for equivalence, the number is much smaller (I don't know how much smaller, since my program has not completed yet :-) Yes, I meant that "B and C are also equivalent". The original version was a typo. Best, Magnus On 11/1/2013 3:45 PM, ji

Re: [R] Inserting 17M entries into env took 18h, inserting 34M entries taking 5+ days

2013-11-01 Thread Magnus Thor Torfason
problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Fri, Nov 1, 2013 at 9:32 AM, Magnus Thor Torfason wrote: Pretty much what the subject says: I used an env as the basis for a Hashtable in R, based on information that this is in fact the way envir

[R] Inserting 17M entries into env took 18h, inserting 34M entries taking 5+ days

2013-11-01 Thread Magnus Thor Torfason
Pretty much what the subject says: I used an env as the basis for a Hashtable in R, based on information that this is in fact the way environments are implemented under the hood. I've been experimenting with doubling the number of entries, and so far it has seemed to be scaling more or less l

Re: [R] min(NA,"bla") != min("bla", NA)

2013-09-27 Thread Magnus Thor Torfason
Thanks for putting together such a quick fix! Unfortunately the policy for the system that I'm working on doesn't allow unreleased versions, so I'll have to work around this for a little bit longer. But I'll ask my sysadmins to install 3.0.3 as soon as it gets released. Best, Magnus On 9/27/2

[R] min(NA,"bla") != min("bla", NA)

2013-09-26 Thread Magnus Thor Torfason
Just ran these two statements: > min(NA,"bla") [1] NA > min("bla", NA) [1] "bla" And then reran with explicit na.rm=FALSE > min(NA,"bla", na.rm=FALSE) [1] NA > min("bla", NA, na.rm=FALSE) [1] "bla" That seems wrong. Would this be considered a bug or is there a way to explain these results

[R] Inconvenient behavior of as.data.frame() for lists without names

2010-09-15 Thread Magnus Thor Torfason
Hi all, I ran into a small issue when converting a list of vectors to a data frame. The Issue I'm having is described by the snippet below: # # Convert a list of vectors into a data.frame strlen = 256 s.long.a = paste( letters[1+(0:strle