similar to: subsetting by name is very slow when subscript contains a lot of "invalid" names

Displaying 20 results from an estimated 3000 matches similar to: "subsetting by name is very slow when subscript contains a lot of "invalid" names"

2013 Jul 02
2
cache most-recent dispatch
Hi, S4 method dispatch can be very slow. Would it be reasonable to cache the most recent dispatch, anticipating the next invocation will be on the same type? This would be very helpful in loops. fun0 <- function(x) sapply(x, paste, collapse="+") fun1 <- function(x) { paste <- selectMethod(paste, class(x[[1]])) sapply(x, paste,
2013 Jun 26
2
Error on executing functions from installed package
Hi, I am currently building an R package and I am facing a peculiar problem where some of the functions does not work within the package. However, if I source the script the function works. For example, in a method for parallelization of analysis on each chromosome simultaneously I am receiving error at the following position of the code: # this profile the information chromosome wise and
2013 Feb 06
0
slotName defined in object, present in instance, but inaccessible [SCL:4]
from a package I'm writing.... ##setClass('Occupancy',contains="DataFrame", ## representation(states="StatesORNULL")) ## R> foo <- occupancy(pooledMethSegs) R> plotOccupancy(foo) Error in slot(object, "states") : no slot of name "states" for this object of class "Occupancy" R> slotNames(foo) [1]
2013 Feb 06
0
slotName defined in object, present in instance, but inaccessible [SCL:4]
from a package I'm writing.... ##setClass('Occupancy',contains="DataFrame", ## representation(states="StatesORNULL")) ## R> foo <- occupancy(pooledMethSegs) R> plotOccupancy(foo) Error in slot(object, "states") : no slot of name "states" for this object of class "Occupancy" R> slotNames(foo) [1]
2007 Jan 18
2
subsetting matrix by subscript=0,x silently skips.
(e-mailing to R-bugs is intentional - the web itnerface seems to be down) > a<- cbind(c(1,2), c(3,4)) > a [,1] [,2] [1,] 1 3 [2,] 2 4 > a[cbind(c(2,2), c(2,1))] [1] 4 2 > a[cbind(c(2,3), c(2,1))] Error: subscript out of bounds > a[cbind(c(2,-1), c(2,1))] Error: negative values are not allowed in a matrix subscript > a[cbind(c(2,0), c(2,1))] [1] 4 Am
2013 Apr 08
2
savePlot() under Windows
Hi, A Windows user asked me a question and I believe this is a bug of R 3.0.0 under Windows: > plot(1:10) > savePlot('test.wmf') Error in .External(C_savePlot, device, filename, type, restoreConsole) : Incorrect number of arguments (4), expecting 3 for 'savePlot' > sessionInfo() R version 3.0.0 (2013-04-03) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1]
2013 May 20
1
Objects created by more than one data call?
Hello, All: If I use LazyData with the Ecdat package on R-Forge, "R CMD check" reports "no visible binding for global variable 'nonEnglishNames'", where 'nonEnglishNames' is a dataset in Ecdat used as the default argument for a function. With LazyData, that NOTE disappears. However, then I get, "Warning: objects 'Hstarts',
2013 Mar 21
1
missing space in R version specifier makes PACKAGES file unreadable by install.packages()
Hi, After updating to R-3.0 beta r62328, I get the following: > install.packages("Biobase", type="source", repos="http://george2/BBS/2.12/bioc") Error in do.call(op, list(v_c, v_t[[op]])) : could not find function "R (>=2.15.1)" The problem can be fixed by adding a space after >= in the offending package's DESCRIPTION file and re-generating
2013 Apr 23
1
httpd error with and help_type = 'html', package = NULL
Having loaded a package that masks an object from another package, calling help(conflictedname, help_type = 'html') instead of producing a page giving the choices of help page available The page produced is Error in httpd("/library/NULL/help/nobs", NULL, NULL, c(48, 6f, 73, 74, : replacement has length zero This example is reproduced using library(gdata) help(nobs,
2013 May 01
1
Windows, format.POSIXct and character encodings
Hi all, In what encoding does format.POSIXct return its output? It doesn't seem to be utf-8: Sys.setlocale("LC_ALL", "Japanese_Japan.932") times <- c("1970-01-01 01:00:00 UTC", "1970-02-02 22:00:00 UTC") ampm <- format(as.POSIXct(times), format = "%p") x <- gsub(">", "*", paste(ampm, collapse =
2013 Apr 04
1
X11 font -adobe-helvetica size 15 could not be loaded
HI All, I got this Error message, when I tried to plot ?X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 5 at size 15 could not be loaded sessionInfo() R version 3.0.0 (2013-04-03) Platform: x86_64-unknown-linux-gnu (64-bit) locale: ?[1] LC_CTYPE=en_CA.UTF-8?????? LC_NUMERIC=C????????????? ?[3] LC_TIME=en_CA.UTF-8??????? LC_COLLATE=en_CA.UTF-8??? ?[5] LC_MONETARY=en_CA.UTF-8???
2017 Oct 01
0
Revert to R 3.2.x code of logicalSubscript in subscript.c?
Currently, in function 'logicalSubscript' in subscript.c, the case of no recycling is handled like the implentation of R function 'which'. It passes through the data only once, but uses more memory. It is since R 3.3.0. For the case of recycling, two passes are done, first to get number of elements in the result. Also since R 3.3.0, function 'makeSubscript' in subscript.c
2013 Apr 26
1
Lubuntu 13.04 raring ringtail: Problems installing pnmath_0.0-4
Hola! This is 64bit Lubuntu 13.04, with R-3.0.0 installed from deb http://ppa.launchpad.net/marutter/rrutter/ubuntu raring main via synaptic. gcc --version gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 > sessionInfo() R version 3.0.0 (2013-04-03) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
2013 May 07
0
error when calling seek() twice on a gzfile connection
Hi, I get an "internal error" when calling seek() twice on a gzfile connection. Create a gzip file: bigraw <- sample(charToRaw("abcdef"), 30000000, replace=TRUE) save(bigraw, file="bigraw.rda") Open it: con <- gzfile("bigraw.rda", "rb") Then: > seek(con, where=1) [1] 0 > seek(con, where=24980000) [1] 1
2013 Apr 23
1
is.vector(as.vector(x, m), m) not always TRUE
In the man page for as.vector() (same as man page for vector()): Writers of methods for ?as.vector? need to take care to follow the conventions of the default method. In particular ? Argument ?mode? can be ?"any"?, any of the atomic modes, ?"list"?, ?"expression"?, ?"symbol"?, ?"pairlist"? or one of the
2013 May 01
1
Trouble with methods() after loading gdata package.
Greetings to r-help land. I've run into some program crashes and I've traced them back to methods() behavior after the package gdata is loaded. I provide now a minimal re-producible example. This seems bugish to me. How about you? dat <- data.frame(x = rnorm(100), y = rnorm(100)) lm1 <- lm(y ~ x, data = dat) methods(class = "lm") ## OK so far library(gdata)
2013 Jan 07
0
aspell(..., dictionaries) incorrectly passes double-quoted arguments via shell() [and a patch]
Hi, I think I found a bug in aspell() on Windows. Specifying argument 'dictionaries' for aspell() does not work on Windows, which I believe is because it tries to pass a quoted command line option via shell(). THIS WORKS: # Create a text file to be spell checked > writeLines(c("Hello", "world", "ANOVA"), con="text.txt") # Check it (word
2013 Apr 24
1
multiple issues with is.unsorted()
Hi, In the man page for is.unsorted(): Value: A length-one logical value. All objects of length 0 or 1 are sorted: the result will be ?NA? for objects of length 2 or more except for atomic vectors and objects with a class (where the ?>=? or ?>? method is used to compare ?x[i]? with ?x[i-1]? for ?i? in ?2:length(x)?). This contains many incorrect
2013 Apr 01
1
missing exported methods when compiling vignettes in R 3.0.0 RC
A new problem has cropped up with compiling vignettes for my package BayesFactor. I'm not sure when it started, but I can tell you it didn't occur on R 2.15.3, and it does on 3.0.0 RC (2013-03-31 r62463) (session info is at the bottom of this message). I have defined methods for which.min and which.max for a class (I've defined both S3 and S4 methods for the class
2007 Sep 21
1
Error: (subscript) logical subscript too long
As part of a larger program I have a rather long and involved sub-procedure which fails to work, It manipulates some large matrices, stored to the disc. The procedure halts with the message: Error: (subscript) logical subscript too long Can anyone give advice about what may cause this error and how it can be remedied - I feel confident that it is not a syntactically or logical error. Thanks,