Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-10 Thread SIES 73
> In the case the metadata are stored in a list, that interface enforces the > building of a list. > (I said to ignore implementation for now, but paradoxically this made me > consider possible implementations). Creating the list on the fly if it's not stored internally as a list should be chea

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-09 Thread SIES 73
s, but it is the columns what we would have "for free" when allowing "dimmeta" elements to be lists... Enrique -Original Message- From: Laurent Gautier [mailto:lgaut...@gmail.com] Sent: jueves, 09 de julio de 2009 14:15 Cc: Heinz Tuechler; Bengoechea Bartolomé Enr

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-09 Thread SIES 73
ise. * `dim<-`, but this may raise the same problem of coercing dimmeta of different classes. ...and I agree with the rest of your comments. Best, Enrique -Original Message- From: Laurent Gautier [mailto:lgaut...@gmail.com] Sent: jueves, 09 de julio de 2009 14:15 Cc: Heinz Tuechle

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-09 Thread SIES 73
everal classes (xts, timeSeries, AnnotatedDataFrame, etc.) As you point, this could offer a unified design for a common need. Enrique -Original Message- From: Heinz Tuechler [mailto:tuech...@gmx.at] Sent: jueves, 09 de julio de 2009 10:56 To: Bengoechea Bartolomé Enrique (SIES 73); Tony

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-09 Thread SIES 73
) <- list(object=..., dims=..., cells=...) Would something like this make sense for R-core --either for standard arrays or as a new class-- or would it be better implemented in a package? Enrique -Original Message- From: Tony Plate [mailto:tpl...@acm.org] Sent: miércoles, 08 de julio d

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-08 Thread SIES 73
Hi, I agree with Henrik that his suggestion to have "dimension vector attributes" working like dimnames (see below) would be an extremely useful infrastructure adittion to R. If this is not considered for R-core, I am happy to try to implement this in a package, as a new class. And possibly do

Re: [Rd] Embeding R

2009-01-21 Thread SIES 73
Hi, You may find the biocep-R project very useful, it embeds R into Java using JRI. And it goes much further than that, providing an impressive framework from which you can start with a lot of work already done. It's open source, so you can also just have a look at the code for inspiration: ht

Re: [Rd] Editing the "..." argument

2008-07-07 Thread SIES 73
The 'modifyList' function on package Utils allows to do that in a very compact way: do.call("optim", modifyList(list(), list(...))) Regards, Enrique Mathieu Ribatet wrote: > Dear all, > > I'd like tweaking the ... arguments that one user can pass in my > function for fitting a model. More pr

Re: [Rd] extract function "[" and empty index

2008-03-10 Thread SIES 73
Beware x[TRUE] returns the same as x[] only if x is NOT a zero-length vector (at least until R 2.5.1): > numeric(0)[] numeric(0) > numeric(0)[TRUE] [1] NA Enrique > -Original Message- > -- > > Message: 7 > Date: Mon, 10 Mar 2008 02:29:32 +0800 > From: "Lau