Re: [Rd] row names and identical

2007-07-15 Thread miguel manese
I was bit by this before. row.names are supposed to be characters, and they are until around 2.3 iirc. Then at 2.4, they started storing it as integers presumably to save space (and probably because ints are more low-maintenance data types than strings). So to the user (e.g. through row.names() )

Re: [Rd] Getting param names of primitives

2007-07-11 Thread miguel manese
Thanks! Worked like a charm. Regards, M. Manese On 7/11/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: formals(args(log)) $x $base exp(1) gives what formals(log) used to. On Wed, 11 Jul 2007, miguel manese wrote: Hi, In the latest R this does not work anymore args - formals

[Rd] Getting param names of primitives

2007-07-10 Thread miguel manese
Hi, In the latest R this does not work anymore args - formals(log) because log is primitive. Is there any other way to get the argument list? I just need the name of the parameter to display some error message about it. I have looked at args() but I can't find anything to extract the argument

Re: [Rd] Some R questions

2006-11-01 Thread miguel manese
On 11/2/06, Vladimir Dergachev [EMAIL PROTECTED] wrote: On Tuesday 31 October 2006 9:30 pm, miguel manese wrote: The slowness manifests itself for vectorized code as well. I believe it is due to the code mucking about with row.names attribute which introduces a penalty on any [,] operation

Re: [Rd] Some R questions

2006-10-31 Thread miguel manese
Hi, Had experience with this on doing SQLiteDF... On 11/1/06, Vladimir Dergachev [EMAIL PROTECTED] wrote: Hi all, I am working with some large data sets (1-4 GB) and have some questions that I hope someone can help me with: 1. Is there a way to turn off garbage collector from within

[Rd] bypassing SET_DIM checking

2006-08-12 Thread miguel manese
Hello, I created an S3 type w/c is actually a list that should look like a matrix but whose data is actually in an external file. The SEXP just contains info on how to retrieve the data from the file. When I get to the part of creating the SEXP, I found out that SET_DIM SET_DIMNAME checks the

Re: [Rd] Can't make sort generic in quantile (S3)

2006-08-07 Thread miguel manese
Thanks for the fix. I'm guessing the rules are: a. a non S3 method is bound to the global env, and will see the def'n of an S3-ized method (e.g. I made is.list() generic and lapply, w/c is not generic, gets the S3-ized is.list) b. an S3 method implementation is bound to the namespace it was

[Rd] Can't make sort generic in quantile (S3)

2006-08-06 Thread miguel manese
Hello all, In my package I made sort() generic as follows: sort.default - sort; sort - function(x, ...) UseMethod(sort); formals(sort.default) - c(formals(sort.default), alist(...=)) then added a sort for my S3 class sort.sqlite.vector - function(x, decreasing=FALSE, ...) {

Re: [Rd] Package Unit Testing

2006-07-03 Thread miguel manese
On 7/3/06, Martin Maechler [EMAIL PROTECTED] wrote: miguel == miguel manese [EMAIL PROTECTED] on Mon, 3 Jul 2006 09:43:12 +0800 writes: miguel Hello, Do we have like an official unit testing miguel framework for packages? Like we do R CMD check, and miguel say the scripts

[Rd] Package Unit Testing

2006-07-02 Thread miguel manese
Hello, Do we have like an official unit testing framework for packages? Like we do R CMD check, and say the scripts in pkg/test are executed? Or do we roll out our own outside the package? Thanks, M. Manese __ R-devel@r-project.org mailing list