[R] comparing two unequal matrices without for loop?

2011-08-28 Thread Paul Hammer
Dear folks, I would like to compare two unequal matrices. At the moment I realize this with two for loop and an if function but that's definitely too slow :(... Here is my code: for (i in 1:length(all_expressed_genes[,1])) { for (j in 1:length(kegg_gene_pVal[,1])) { if (all_expressed_g

[R] problem with X11 when talking via PHP web interface

2008-05-16 Thread Paul Hammer
hi members, At the moment i try to create a web-based GUI for R. I am at the beginning of this project but i have already now a strange problem. I would like to create an image which should also be saved. i realize this with following code line in my PHP file: $output= intval(shell_exec("R --n

[R] sorting matrix for rownames

2008-04-07 Thread Paul Hammer
hi members, i tried to sort my whole matrix X for its rownames. the rownames are unsorted id numbers: i tried it with sort(rownames(X)) or order(rownames(X)) but then i get only a vector of the rownames:(... any suggestions? thanks paul __ R-help@

[R] request if a variable is defined

2008-03-04 Thread Paul Hammer
hi members, give it a function for requesting if a object, matrix, vector, variable or whatever already exists? e.g. if (*exists*(a) {print("yes") } else { print("no") } thanks paul [[alternative HTML version deleted]] __ R-help@r-project.or

Re: [R] setwd on other computer?

2008-02-29 Thread Paul Hammer
Romain Francois schrieb: > Hi, > > This seems to work for me by either mapping a network drive on windows > or by using sshfs to mount a remote filesystem on my linux machine. I > suppose you would have some sort of side effect in terms of time. > > Cheers, > > R

[R] setwd on other computer?

2008-02-29 Thread Paul Hammer
hi members, is it possible to set the work directory ( e.g. via setwd() ) on a other computer than R has been started? thanks paul __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

Re: [R] RSQLite error

2008-02-29 Thread Paul Hammer
> > If that proceeds correctly - you may need external libraries of headers > for RSQLite to compile against, try to load the genefilter package again > and see if this has rectified the problem. > > HTH > > G > > On Fri, 2008-02-29 at 16:04 +0100, Paul Hammer wrote:

[R] RSQLite error

2008-02-29 Thread Paul Hammer
hi members, i try to load the package genefilter but i get always this error message: _R code:_ >library(genefilter) Error in dyn.load(file, ...) : unable to load shared library '/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so': /usr/local/lib64/R/library/RSQLite/libs/RSQLite.so: undefin

[R] error with RSQLite

2008-02-29 Thread Paul Hammer
hi members, i try to load the package genefilter but i get always this error message: _R code:_ >library(genefilter) Error in dyn.load(file, ...) : unable to load shared library '/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so': /usr/local/lib64/R/library/RSQLite/libs/RSQLite.so: undefin

Re: [R] plot two columns of a matrix with standard deviation

2008-02-21 Thread Paul Hammer
Henrique Dallazuanna schrieb: Perhaps: plot(x[c(1,3)], pch=16) segments(x[,1],x[,3]-x[,2], x[,1], x[,3]+x[,4], col="red") On 21/02/2008, Paul Hammer <[EMAIL PROTECTED]> wrote: hi members, i try to plot two columns of a matrix as points with standard deviation. a legen

[R] plot two columns of a matrix with standard deviation

2008-02-21 Thread Paul Hammer
hi members, i try to plot two columns of a matrix as points with standard deviation. a legend should also be there. the one points should be green and the others red... column 1 and 3 are the values to plot and column 2 and 4 are the attendant standard deviation (sd)... as xlab should show the

Re: [R] variable syntax problem

2008-02-21 Thread Paul Hammer
Paul Hammer schrieb: > jim holtman schrieb: >> Exactly what do you mean by additional text? Have you tried "paste"? >> >> On 2/21/08, Paul Hammer <[EMAIL PROTECTED]> wrote: >> >>> dear members, >>> >>> i would like to wri

Re: [R] variable syntax problem

2008-02-21 Thread Paul Hammer
jim holtman schrieb: > Exactly what do you mean by additional text? Have you tried "paste"? > > On 2/21/08, Paul Hammer <[EMAIL PROTECTED]> wrote: > >> dear members, >> >> i would like to write a variable in a plot title (main="") b

[R] variable syntax problem

2008-02-21 Thread Paul Hammer
dear members, i would like to write a variable in a plot title (main="") but i don't know the right syntax:(...i tried a lot of different ways without success. here my example: y=30 z=33 for (i in 10:length(tissue)) { png(filename = tissues[i], width = 1024, height = 768, pointsize = 12, bg =