search for: rlabs

Displaying 18 results from an estimated 18 matches for "rlabs".

Did you mean: labs
2006 Dec 02
0
fixup for debug package and R2.4.0
A number of users have spotted a terminal problem with the 'debug' package under R2.4.0, along the lines of > mtrace(x) > x() Error in attr(value, "row.names") <- rlabs : row names must be 'character' or 'integer', not 'double' This arose from a bug in 'rbind.data.frame' in R2.4.0 itself. The bug is fixed in R2.4.0 patched, so the best solution is to install the patched version. This is painless, at least for Windows, since a bin...
2003 Jun 18
1
suggestion for make.names
...me(x=2)),data.frame(x=3)) I'm providing a new implementation (and documentation) of make.names which fixes these problems. The uniqueness part is handled by make.unique, a useful function in its own right. For example, the following code in rbind.data.frame: while(any(xj <- duplicated(rlabs))) rlabs[xj] <- paste(rlabs[xj], 1:sum(xj), sep = "") could be replaced by: rlabs = make.unique(rlabs) Another way to fix the first problem, by the way, would be to allow quoting in formulas, e.g. lm("if" ~ then, ...). Currently, when you do this it gives an error....
2003 Jun 18
1
suggestion for make.names
...me(x=2)),data.frame(x=3)) I'm providing a new implementation (and documentation) of make.names which fixes these problems. The uniqueness part is handled by make.unique, a useful function in its own right. For example, the following code in rbind.data.frame: while(any(xj <- duplicated(rlabs))) rlabs[xj] <- paste(rlabs[xj], 1:sum(xj), sep = "") could be replaced by: rlabs = make.unique(rlabs) Another way to fix the first problem, by the way, would be to allow quoting in formulas, e.g. lm("if" ~ then, ...). Currently, when you do this it gives an error....
2007 Jan 12
0
Minor logical bug in rbind.data.frame ?
...allargs, length) > 0] n <- length(allargs) if (n == 0) return(structure(list(), class = "data.frame", row.names = integer())) nms <- names(allargs) if (is.null(nms)) nms <- character(length(allargs)) cl <- NULL perm <- rows <- rlabs <- vector("list", n) nrow <- 0 value <- clabs <- NULL all.levs <- list() for (i in 1:n) { xi <- allargs[[i]] nmi <- nms[i] if (is.matrix(xi)) allargs[[i]] <- xi <- as.data.frame(xi) if (inherits(xi, &q...
2006 Oct 18
1
strange error in mtrace
...the sample session > library(debug) Loading required package: mvbutils MVBUTILS: no "tasks" vector found in ROOT Loading required package: tcltk Loading Tcl/Tk interface ... done > x<-function() return(1) > mtrace(x) > x() Error in attr(value, "row.names") <- rlabs : row names must be 'character' or 'integer', not 'double' > mtrace(x,FALSE) > x() [1] 1 > mtrace(x) > x() Error in attr(value, "row.names") <- rlabs : row names must be 'character' or 'integer', not 'double'...
2005 Jun 01
2
mplot :how to deal with missing data
Hello all, I have data: Genes time rep vart dye y trt 130911 sa1-d07 030min 1 col g 9.636244 o 145771 sa1-d07 030min 1 col r 8.107577 c 93335 sa1-d07 030min 1 ler g 7.409566 o 94821 sa1-d07 030min 1 ler r 5.107160 c 10119101 sa1-d07 030min 2 col g 8.336862 o 11605101 sa1-d07 030min 2 col r 7.824530 c 725313 sa1-d07
2006 Oct 12
1
debug package in R 2.4.0
Hi. I recently upgraded to R version 2.4.0, and I have found that the "debug" package no longer works. In particular, when I try to debug a function, I get the following error message: Error in attr(value, "row.names") <- rlabs : row names must be 'character' or 'integer', not 'double' I have, of course, taken all the necessary preceding steps, such as issuing the commands library(debug) source("test.r") mtrace(test) test() Does anyone know how to get around this problem? Thank...
2005 Aug 22
1
An lgrind definition for the S language
I seem to recall discussion of an language definition file for S for use with the lgrind utility but I can't find any trace of it in an R Site Search. The lgrind utility takes a file of code in a particular programming language and prepares it for "pretty printing" in LaTeX. In my version the available language definitions are $ lgrind -s When specifying a language case is
2002 Jun 12
3
How does R compares for speed?
Hi, For those who are interested, I have update my R benchmark (to version 1.5.0) and also to Splus 6. They are available at: http://www.sciviews.org/other/benchmark.htm. A comparison is made between Matlab (5.3 & 6), R 1.5.0, Splus 6 rel 2, O-Matrix 5.1, Octave 2.1.31, Scilab 2.6, Rlab 2.1 and OX 3.00 under Windows 2000 pro. Overall, R is not the fastest package, but it is one of the
2012 Feb 27
1
row names of a heatmap on left hand side
Hello R Gurus, I have a matrix for which I am doing a heatmap using heatmap.2. I want to put the rownames on the lefthand side instead of the right side of the heatmap. how can i put the rownames on left hand side: I have already tried axis but could not make it work ccc<-structure(c(1, 0.283300333755851, 0.237863231117007, 0.0148696794159253, -0.0780756406815149, -0.106161465097659,
2008 Jan 04
2
R2WinBUGS sending variables as factors
Hello R and BUGS users, I am writing a heirarchical model in R to send to BUGS via R2WinBUGS and I am finding it difficult to get the model to run. I seem to be having two problems. 1) I can't seem to send variables classed as factors (Month), is there a way do this? 2) Checking the Log in WinBUGS I can see that the model is Syntactically correct, but Bugs is not able to recognise the the
2006 Nov 07
0
rbind with auto-row-named data.frame + list (PR#9346)
There's a problem new to R2.4.0 when rbinding an auto-row-named data.frame to a list: > rbind( data.frame( x=1), list( x=2)) Error in attr(value, "row.names") <- rlabs : row names must be 'character' or 'integer', not 'double' Works OK with 2 data.frames or 2 lists. Mark Bravington CSIRO Mathematical & Information Sciences Marine Laboratory Castray Esplanade Hobart 7001 TAS ph (+61) 3 6232 5118 fax (+61) 3 6232 5012 mob (+6...
2001 Apr 27
2
Benchmarking R, why sort() is so slow?
Hello everybody, I am making a modified version of "Stephan Steinhaus' benchmark test for number crunching, v. 2, (see http://www.scinetificweb.com/ncrunch/ncrunch.pdf for the original version), comparing several functions of some math/stat software. R is not performing bad at all... except for the sorting of a 1,100,000 random vector (test #3) which is the worst of all (see cell F3 in
2001 Apr 27
2
Benchmarking R, why sort() is so slow?
Hello everybody, I am making a modified version of "Stephan Steinhaus' benchmark test for number crunching, v. 2, (see http://www.scinetificweb.com/ncrunch/ncrunch.pdf for the original version), comparing several functions of some math/stat software. R is not performing bad at all... except for the sorting of a 1,100,000 random vector (test #3) which is the worst of all (see cell F3 in
2000 Mar 28
3
Finally. A deadline, and a call to arms...
Hi folks, I've been dickering around again, wasting the time away.... and today Brian Zisk (chief Vorbis Evangelist among other things) said, "Hey! We need to demo to the world on the 4th of April!" Hooo boy. Time to suck it up and bang it out. The Vorbis libs are not a problem. I'm in process of checking in my new psychoacoustics (they're real pretty!) based on
2007 Apr 09
1
How to solve differential and integral equation using R?
Hello, I want to know if there are some functions or packages to solve differential and integral equation using R. Thanks. Shao chunxuan. [[alternative HTML version deleted]]
2007 Mar 26
1
Problem in loading all packages all at once
Hi All Please see the Rprofile file which i have modified as follows and after that when I start R then I see that R says to me "TRUE" for all the packages implying that all loaded at once. But when i try to use commands as simple as help("lm"), it doesnt work nor any of the menu "Packages" is not working. Although the regression using lm ( Y ~ X ) is working
2001 Feb 16
1
Sub_scribe and a question
Dear all, I am trying to get an estimate of the intercept for a linear model. In this case, I know the slope of the model, can anyone tell me how to constrain the formula in lm() so that it only estimates the intercept not the slope? Many thanks in advance, Sincerely, Liqing Zhang Dept. of Eco. Evol. Biol. Univ. of CA, Irvine email: lzhang at uci.edu >From VM Mon Apr 30 08:18:45 2001