search for: tmpa

Displaying 11 results from an estimated 11 matches for "tmpa".

Did you mean: tmp
2008 May 30
1
NAMESPACE & methods guidance, please
...s model is from the following: In 2.7.0: > library(KEGG.db) # Imports, Depends AnnotationDbi; KEGG.db is data-only > head(ls(KEGGPATHID2EXTID)) [1] "hsa00232" "hsa00230" "hsa04514" "hsa04010" "hsa04012" "hsa04150" vs. in a package tmpA with a NAMESPACE with Depend: and Imports: KEGG.db and in a new session of R > library(tmpA) > dokegg function () { require("KEGG.db") head(ls(KEGGPATHID2EXTID)) } <environment: namespace:tmpA> > dokegg() [1] "hsa00232" "hsa00230" "hsa0451...
2001 Sep 27
1
Problem with merge() (PR#1102)
I have encountered a problem with merge() that appears to be a bug. Here's an example to illustrate it. > tmp1 <- data.frame(a=letters[1:3],b=LETTERS[2:4],x=1:3) > tmpa <- expand.grid(a=letters[1:4],b=LETTERS[1:4]) > tmpm.1 <- merge(tmpa,tmp1) > tmpm.2 <- merge(tmp1,tmpa) Error in "names<-.default"(*tmp*, value = vnames) : names attribute must be the same length as the vector I'm using R 1.3.0, and it occurs on both the...
2011 Aug 01
2
Errors, driving me nuts
.... Anyway I don't believe that this is related to my errors but I mention it none the less. > files_to_test <- list.files (pattern = "kegg.combine") > for (i in 1:length (files_to_test)) { + raw_data <- read.table (files_to_test[i], header=TRUE, sep=" ") + tmpA <- raw_data[,compareA] + tmpB <- raw_data[,compareB] + tt <- t.test (tmpA, tmpB, var.equal=TRUE) + tt_pvalue[i] <- tt$p.value + } Error in tt_pvalue[i] <- tt$p.value : object 'tt_pvalue' not found # I tried setting up a vector... # as.vector(tt_pvalue, mode="any...
2008 Sep 10
1
Computation of contour values - Speeding up computation
Dear R useRs, i have the following code to compute values needed for a contour plot ############################################################ "myContour" <- function(a, b, plist, veca, vecb, dim) { tmpb <- seq(0.5 * b, 1.5 * b, length=dim) tmpa <- seq(0.5 * a, 1.5 * a, length=dim) z <- matrix(0, nrow=dim, ncol=dim) for(i in 1:dim) { for(j in 1:dim) { z[i, j] <- posteriorPdf(a=tmpa[j], b=tmpb[i], plist=plist, veca=veca, vecb=vecb) } } } "posteriorPdf" <- fun...
2008 Feb 17
1
NAMESPACEs and S4 classes
I'd like to have two packages with S4 classes with the same name but different implementation. To that end I create a package tmpA with setClass("A", representation=representation( x="numeric"), sealed=TRUE) setClass("B", representation=representation( x="numeric")) B <- function(...) new("B", ...) and a NAMESPACE having onl...
2002 Mar 13
1
several bugs (PR#918) lists and matrices
...ly equivalent statements. ### array() is able to take a list and create a matrix. ### matrix() is unable to create that matrix. > vector("list", 2) [[1]] NULL [[2]] NULL > array(vector("list", 2), dim=c(2,1)) [,1] [1,] "NULL" [2,] "NULL" > tmpa <- array(vector("list", 2), dim=c(2,1)) > class(tmpa) NULL > is.array(tmpa) [1] TRUE > is.matrix(tmpa) [1] TRUE > tmpm <- matrix(vector("list", 2), nrow=2) Error in matrix(vector("list", 2), nrow = 2) : Unimplemented feature in copyVector >...
2008 Oct 08
1
follow up on "[Rd] NAMESPACE & methods guidance, please" ( http://tolstoy.newcastle.edu.au/R/e4/devel/08/06/1901.html )
...vel list ( http://tolstoy.newcastle.edu.au/R/e4/devel/08/06/1901.html ), as I have encountered the exact same issue mentioned in Martin's email. Here is a simplified version of my problem: ##================================================================= ## I created a package, say, "tmpA", with a NAMESPACE with Depend: and Imports: org.Hs.eg.db and in a new session of R > library(tmpA) > foo function () { require("org.Hs.eg.db") get("A GO TERM", org.Hs.egGO2ALLEGS) } > foo() Error in as.environment(pos) : invalid object for 'as.en...
2007 May 09
1
How to read several text files at once!
Dear R users, I am a beginner in R. I have 506 text files (data frame) in one folder namely DATA. The files are called A1 to A253 (253 files) and B1 to B253 (another 253 files). Each file has two columns; V1 (row number) and V2 (the value for each row name). Now I would like to add the values of V2 in each A-file with its relative value in B-file and save it as a new data frame named as C (e.g. C1
2013 Mar 17
6
Sweave y RStudio
Boanerge: Lo reenvio a la lista con un nuevo asunto. --JIV ---------- Forwarded message ---------- From: boanerge salas muñoz <> Date: 2013/3/17 Subject: Re: [R-es] Histograma con muchos ceros. To: Jorge I Velez <> hola tengo un problema con rstudio. Deseo utilizar la sweave, pero tengo window. rstudio me dice que no encuentra el camino para compilar. Lo que he averiguado es
2014 Sep 10
4
[RFC PATCH v1 0/3] Introducing ARM SIMD Support
libvorbis does not currently have any simd/vectorization. Following patches add generic framework for simd/vectorization and on top, add ARM-NEON simd vectorization using intrinsics. I was able to get over 34% performance improvement on my Beaglebone Black which is single Cortex-A8 based CPU. You can find more information on metrics and procedure I used to measure at
2009 Feb 26
11
OpenSSL::Cipher decrypt returns 'wrong final block length'
I just want to encrypt a string submitted through a form before saving it to the DB. And then decrypt it again when I need to retrieve and use it. Im trying to use the OpenSSL::Cipher library. I have the following module for encryption/decryption [code] require ''openssl'' module AESCrypt # Decrypts a block of data (encrypted_data) given an encryption key # and an