Re: [Rd] How to create data frame column name in a function

2012-05-03 Thread Rui Barradas
Hello, pvshankar wrote Hello all, I have a data frame with column names s1, s2, s3s11 I have a function that gets two parameters, one is used as a subscript for the column names and another is used as an index into the chosen column. For example: my_func - function(subscr,

[Rd] Proposal: model.data

2012-05-03 Thread Paul Johnson
Greetings: I'm still working on functions to make it easier for students to interpret regression predictions. I am working out a scheme to more easily create newdata objects (for use in predict functions). This has been done before in packages like Zelig, Effects, rms, and others. Nothing is

Re: [Rd] Proposal: model.data

2012-05-03 Thread Brian G. Peterson
On Thu, 2012-05-03 at 10:51 -0500, Paul Johnson wrote: If somebody in R Core would like this and think about putting it, or something like it, into the base, then many chores involving predicted values would become much easier. Why does this need to be in base? Implement it in a package.

Re: [Rd] Proposal: model.data

2012-05-03 Thread Paul Johnson
Greetings: On Thu, May 3, 2012 at 11:36 AM, Brian G. Peterson br...@braverock.com wrote: On Thu, 2012-05-03 at 10:51 -0500, Paul Johnson wrote: If somebody in R Core would like this and think about putting it, or something like it, into the base, then many chores involving predicted values

Re: [Rd] Proposal: model.data

2012-05-03 Thread Brian G. Peterson
On Thu, 2012-05-03 at 12:09 -0500, Paul Johnson wrote: Greetings: On Thu, May 3, 2012 at 11:36 AM, Brian G. Peterson br...@braverock.com wrote: On Thu, 2012-05-03 at 10:51 -0500, Paul Johnson wrote: If somebody in R Core would like this and think about putting it, or something like it,

[Rd] loading multiple CSV files into a single data frame

2012-05-03 Thread victor jimenez
Sometimes I have hundreds of CSV files scattered in a directory tree, resulting from experiments' executions. For instance, giving an example from my field, I may want to collect the performance of a processor for several design parameters such as cache size (possible values: 2, 4, 8 and 16) and

Re: [Rd] loading multiple CSV files into a single data frame

2012-05-03 Thread Gabor Grothendieck
On Thu, May 3, 2012 at 2:07 PM, victor jimenez betaband...@gmail.com wrote: Sometimes I have hundreds of CSV files scattered in a directory tree, resulting from experiments' executions. For instance, giving an example from my field, I may want to collect the performance of a processor for

Re: [Rd] The constant part of the log-likelihood in StructTS

2012-05-03 Thread Thomas Lumley
On Thu, May 3, 2012 at 3:36 AM, Mark Leeds marklee...@gmail.com wrote: Hi Ravi: As far as I know ( well , really read ) and Bert et al can say more , the AIC is not dependent on the models being nested as long as the sample sizes used are the same when comparing. In some cases, say comparing

Re: [Rd] loading multiple CSV files into a single data frame

2012-05-03 Thread victor jimenez
First of all, thank you for the answers. I did not know about zoo. However, it seems that none approach can do what I exactly want (please, correct me if I am wrong). Probably, it was not clear in my original question. The CSV files only contain the performance values. The other two columns

Re: [Rd] loading multiple CSV files into a single data frame

2012-05-03 Thread Cook, Malcolm
Victor, I understand you as follows The first two columns of the desired combined dataframe are the last two levels of the pathname to the csv file. The columns in all the data.csv files are the same, namely, there is only one column, and it is named PERF. If so, the following

Re: [Rd] loading multiple CSV files into a single data frame

2012-05-03 Thread Simon Urbanek
On May 3, 2012, at 5:40 PM, victor jimenez wrote: First of all, thank you for the answers. I did not know about zoo. However, it seems that none approach can do what I exactly want (please, correct me if I am wrong). Probably, it was not clear in my original question. The CSV files only

[Rd] Setting up a windows system for rcpp

2012-05-03 Thread Owe Jessen
I am running into a wall getting my system to work with rcpp and inline. Following Dirk's advice on stackoverflow, I hope someone is able to help me. My steps were to install MinGW 32 bit first, then installing Rtools, I disabled MinGW's entry in the PATH. I am trying to get the following

Re: [Rd] Setting up a windows system for rcpp

2012-05-03 Thread Dirk Eddelbuettel
On 4 May 2012 at 00:07, Owe Jessen wrote: | I am running into a wall getting my system to work with rcpp and inline. | Following Dirk's advice on stackoverflow, I hope someone is able to help | me. There is a dedicated mailing list for Rcpp: rcpp-devel. Please let us try to continue the

Re: [Rd] The constant part of the log-likelihood in StructTS

2012-05-03 Thread Ravi Varadhan
Thanks, Tom, for the reply as well as to the reference to Claeskens Hjort. Ravi From: Thomas Lumley [tlum...@uw.edu] Sent: Thursday, May 03, 2012 4:41 PM To: Mark Leeds Cc: Ravi Varadhan; r-devel@r-project.org Subject: Re: [Rd] The constant part of the

Re: [Rd] fast version of split.data.frame or conversion from data.frame to list of its rows

2012-05-03 Thread Jeff Ryan
A bit late and possibly tangential. The mmap package has something called struct() which is really a row-wise array of heterogenous columns. As Simon and others have pointed out, R has no way to handle this natively, but mmap does provide a very measurable performance gain by orienting rows