RE: [R] fast mkChar

2004-06-09 Thread Paulo Nuin
Hello everyone This is my first message to the list and I believe the question I am including is a simple one. I have a matrix where I need to calculate ANOVA for the rows as the columns represent a different treatment. I would like to know if there is a command or a series of commans that I can

Reshaping matrix (was: [R] fast mkChar)

2004-06-09 Thread Duncan Murdoch
On 09 Jun 2004 09:52:27 -0400, Paulo Nuin [EMAIL PROTECTED] wrote : Hello everyone This is my first message to the list and I believe the question I am including is a simple one. I have a matrix where I need to calculate ANOVA for the rows as the columns represent a different treatment. I would

Wrong question [Wasn't: Re: [R] fast mkChar]

2004-06-09 Thread Matej Cepl
On Wednesday 09 of June 2004 09:52, you wrote: This is my first message to the list and I believe the question I am including is a simple one. http://www.r-project.org/posting-guide.html -- Matej Cepl, http://www.ceplovi.cz/matej GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC

RE: [R] fast mkChar

2004-06-09 Thread Vadim Ogranovich
:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 3:35 PM To: Vadim Ogranovich Cc: R-Help Subject: Re: [R] fast mkChar Vadim Ogranovich [EMAIL PROTECTED] writes: I am no expert in memory management in R so it's hard for me to tell what is and what is not doable. From reading the code

[R] fast mkChar

2004-06-08 Thread Vadim Ogranovich
Hi, To speed up reading of large (few million lines) CSV files I am writing custom read functions (in C). By timing various approaches I figured out that one of the bottlenecks in reading character fields is the mkChar() function which on each call incurs a lot of garbage-collection-related

Re: [R] fast mkChar

2004-06-08 Thread Peter Dalgaard
Vadim Ogranovich [EMAIL PROTECTED] writes: Hi, To speed up reading of large (few million lines) CSV files I am writing custom read functions (in C). By timing various approaches I figured out that one of the bottlenecks in reading character fields is the mkChar() function which on each

Re: [R] fast mkChar

2004-06-08 Thread Duncan Murdoch
On Tue, 8 Jun 2004 12:23:58 -0700, Vadim Ogranovich [EMAIL PROTECTED] wrote : Hi, To speed up reading of large (few million lines) CSV files I am writing custom read functions (in C). By timing various approaches I figured out that one of the bottlenecks in reading character fields is the

RE: [R] fast mkChar

2004-06-08 Thread Vadim Ogranovich
Subject: Re: [R] fast mkChar Vadim Ogranovich [EMAIL PROTECTED] writes: Hi, To speed up reading of large (few million lines) CSV files I am writing custom read functions (in C). By timing various approaches I figured out that one of the bottlenecks in reading character fields

Re: [R] fast mkChar

2004-06-08 Thread Peter Dalgaard
Vadim Ogranovich [EMAIL PROTECTED] writes: I am no expert in memory management in R so it's hard for me to tell what is and what is not doable. From reading the code of allocVector() in memory.c I think that the critical part is to vectorize CLASS_GET_FREE_NODE and use the vectorized version