[R] XML - ampersand escaped

2009-12-03 Thread Ido M. Tamir
Hi, I create some DOM with XML and would like to include ∩ in the text of an element. The library automatically escapses it to ∩. unescaping \\∩ does not help. any ideas? My current plan is to go through the output and replace it with gsub, but maybe there is a better way? thanks, ido > libr

[R] dev2bitmap: extra missing

2008-11-03 Thread Ido M. Tamir
Hi, I don't know if I am the first one to report the problem: in 2.8.0 dev2bitmap gained aa support, but "extra" is null if neither taa nor naa is specified. > dev2bitmap("plot.pdf",type="pdfwrite") Error in paste(shQuote(gsexe), " -dNOPAUSE -dBATCH -q -sDEVICE=", type, : object "extra" not fo

[R] 2.7.0 breaks read.table

2008-06-30 Thread Ido M. Tamir
Hi, yes a bold statement, but I get different behaviour from 2.6.2 and 2.7.0 in read.table, and I don't find any documentation in http://cran.r-project.org/src/base/NEWS. A file like (space delimited): foo + . bar - . 2.7.0: > tab <- read.table("test.txt",as.is=TRUE) > tab

Re: [R] paste data

2008-06-18 Thread Ido M. Tamir
>I want to do very similar things with all the dataframes and their structure >is also the same. >Is there a way to write a loop? (so that I don't have to write the same 18 >times) >I tried things like that: >for (x in 1:length(plot)) >{ > plot(paste("auto.",plot[x],sep="")[,1], > pas

[R] Rscript on OSX

2008-01-09 Thread Ido M. Tamir
Hi, I directed somebody to install R (2.6.1) on his OSX computer, following instructions from http://cran.r-project.org/bin/macosx. She can run R from the console. But plot(1:10) doesn't produce any output or open a window (as I am used to from linux). More importantly: Rscript is not in the path

Re: [R] Efficient way to substract all entries in two vectors from each other

2008-01-07 Thread Ido M. Tamir
Johannes Graumann wrote: > Hi all, > > I'm to inexperienced to come up with the matrix solution elusively > appearing on the horizon for the following problem and would appreciate if > you could give me a nudge ... > I have two vectors a, and b and need to find the closest match for each > value

[R] get rid of format padding

2007-11-30 Thread Ido M. Tamir
Dear readers, I need to prevent the output of very large integers in scientific format. So I use format, but now the integers in the resulting tab delimited output file are padded. I tried justify="none" or "left", width=0 but nothing helps. 1\tA\t1\t1 2\ta\t1\t1 ^^^ thank y

Re: [R] Help with talking to R from Java (on Window)

2007-11-20 Thread Ido M. Tamir
>Does anybody know any alternative ways to be able to call R from Java? JRI http://rosuda.org/JRI/ now contained in rJava http://www.rforge.net/rJava/ and new is this one which I think provides something on top of rJava maybe Rserve: http://www.ebi.ac.uk/microarray-srv/frontendapp/BIOCEP_README

Re: [R] Title and labelos in ggplot2

2007-09-12 Thread Ido M. Tamir
x and y axis labels changing in ggplo2: p <- ggplot(d03, aes(x=cs,y=taille)) + geom_hline(data=temp.df) + geom_boxplot() + facet_grid(.~sexe) I had a similar question not too long ago. Try: p + scale_x_discrete("new label x") + scale_y_continuous("new label y") best wishes ido _