Re: [R] running R from PHP

2004-02-02 Thread Philippe Glaziou
with a file and parameters passed from a php script. -- Philippe Glaziou, MD Epidemiologist Institut Pasteur du Cambodge __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

Re: [R] print comment lines on `sink'ed files?

2004-02-01 Thread Philippe Glaziou
40 50 60 70 80 90 100 # the end All commands including comments appear in the saved output. HTH, -- Philippe Glaziou Epidemiologist __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] OC curve in Quality Control

2003-12-26 Thread Philippe Glaziou
(if such tables are available on the internet, please let me know). Does dhyper() do what you are looking for? -- Philippe Glaziou Epidemiologist __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] Re: OC curve in Quality Control

2003-12-26 Thread Philippe Glaziou
suggest that you check out the following: help.search(hypergeometric) ?Hypergeometric -- Philippe Glaziou Epidemiologist __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] question

2003-11-19 Thread Philippe Glaziou
Fuensanta Saura Igual [EMAIL PROTECTED] Saura Igual [EMAIL PROTECTED] wrote: Does anyone know how I can read from a .txt file the lines that are between two strings whose location is unknown? My problem is that I have a .txt file with data separated by a sentence, for example: 2.22 3.45

Re: [R] question

2003-11-19 Thread Philippe Glaziou
Peter Dalgaard [EMAIL PROTECTED] wrote: My problem is that I have a .txt file with data separated by a sentence, for example: 2.22 3.45 1.56 2.31 pattern 1 4.67 7.91 3.34 2.15 5.32 3.88 pattern 2 ... I do not know the number of lines where these separating

Re: [R] question

2003-11-19 Thread Philippe Glaziou
Philippe Glaziou [EMAIL PROTECTED] wrote: Peter, I cannot see your point. sed can get rid of any pattern in a text file. Fuensanta's example seemed to show that the sentences (pattern 1, 2,...) were on separate lines from lines containing data, thus my approach. Another one closer to your awk

Re: [R] question

2003-11-19 Thread Philippe Glaziou
Peter Dalgaard [EMAIL PROTECTED] wrote: blueberry:~/ sed -e 's/pattern 1\|pattern 2\|pattern xyz//g' tst.txt 2.22 3.45 1.56 2.31 4.67 7.91 3.34 2.15 5.32 3.88 blueberry:~/ awk '/pattern 1/{copy=1;next};/pattern 2/{copy=0};copy==1' tst.txt 4.67 7.91 3.34 2.15 5.32 3.88 blueberry:~/

Re: [R] question

2003-11-19 Thread Philippe Glaziou
Philippe Glaziou [EMAIL PROTECTED] wrote: I see and here is my (corrected) sed solution: cunegonde:~/tmp cat test 2.22 3.45 1.56 2.31 pattern 1 4.67 7.91 3.34 2.15 5.32 3.88 pattern 2 cunegonde:~/tmp sed -e '/pattern 1\|pattern 2/D' test 2.22 3.45 1.56 2.31 4.67 7.91 3.34 2.15

Re: [R] problem with x11 and PS devices on different machines

2003-11-12 Thread Philippe Glaziou
Timur Elzhov [EMAIL PROTECTED] wrote: I run R at home and the work, I have Debian Linux on both machines and the same 'r-base-core' deb packages installed. So I tried to run the same R script, which plots graph in x11 device and then dump it to eps file (x11 and eps you'll find attached). On

Re: [R] problem with x11 and PS devices on different machines

2003-11-12 Thread Philippe Glaziou
Timur Elzhov [EMAIL PROTECTED] wrote: It could be that your X11 Modes differ between both machines, with a different number of dots per inch. I use the same resolution, 1024x768 on both machines. Anyway, I do not think that xserver resolution is important for screenshot size (in pixels) :)

Re: [R] Chron, as.POSIXct problem

2003-11-12 Thread Philippe Glaziou
Prof Brian Ripley [EMAIL PROTECTED] wrote: Does not happen on Solaris or Linux, so looks like a MacOS X problem. It does not happen on my Mac G4 box (R 1.8.0 on MacOSX 10.2.6). --Philippe Here is some crosschecks: unclass(datesTest) [1] -6301 -6300 -6299 attr(,format) [1] m/d/y

[R] map does not display maps, MacOSX

2003-11-05 Thread Philippe Glaziou
went ok. I have the same libraries installed on a linux server where they work perfectly well. A similar error message occurs whether R is started in an xterm, within emacs/ESS on X11, or using the RAqua interface. Any hint appreciated, -- Philippe Glaziou

Re: [R] Match data.frames with different number of rows

2003-11-05 Thread Philippe Glaziou
2 66 -- Philippe Glaziou __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] map does not display maps, MacOSX

2003-11-05 Thread Philippe Glaziou
Prof Brian D Ripley [EMAIL PROTECTED] wrote: Notice the // in the path /Users/glaziou/Library/R/maps/mapdata//world.N Some Windows filesystems do not like that, and my guess is that some MacOS X ones may not either. I noticed that. However, this does not to seem to bother MacOSX too

Re: [R] R 1.8 for debian

2003-10-20 Thread Philippe Glaziou
Dirk Eddelbuettel [EMAIL PROTECTED] wrote: Sure, got uploaded the day of the 1.8 release. You may want to learn how to point apt at different archives. Debian has 1.8 in unstable; CRAN has it in testing (thanks to Doug Bates) and even in stable (thanks to Korbinian Strimmer) Please, note

Re: [R] summary with names

2003-10-16 Thread Philippe Glaziou
Christoph Bier [EMAIL PROTECTED] wrote: how can I tell 'summary' to print the name of the summarised variable? This is probably an awkward newbie question but I didn't find an answer in the Docus, the FAQ and maillist archive. I want a summary for about 250 variables and realise it the

Re: [R] Problems with arrow keys

2003-10-14 Thread Philippe Glaziou
Andrew Criswell [EMAIL PROTECTED] wrote: I just built R-1.8.0 on my Linux-Mandrake 9.0 using the commands, ./configure --enable-R-shlib make make install It all seems to have gone fine. But when I open R and use the arrow keys to try to go back to previous lines, it doesn't work. What

Re: [R] Integration between R latex

2003-10-12 Thread Philippe Glaziou
Christoph Bier [EMAIL PROTECTED] wrote: i just tried to install Hmisc with install.packages(Hmisc,installWithVers = true) but get the following error: Error in unique(pkgs) : Object Hmisc not found It searches in http://cran.r-project.org/src/contrib/PACKAGES where Hmisc *is*

Re: [R] Previous Commands

2003-10-09 Thread Philippe Glaziou
Philippe Glaziou [EMAIL PROTECTED] wrote: Rau, Roland [EMAIL PROTECTED] wrote: yesterday I took the R-1.8.0-source file and compiled it on my own. As I am using Linux just for a couple of weeks, it was my first compiling session with ./configure, make, Everything went fine, except

Re: [R] If I produce lots of figures at one time, how can I make R graphics keep all the figures already made?

2003-10-07 Thread Philippe Glaziou
xinyue ye [EMAIL PROTECTED] wrote: If I produce lots of figures at one time, how can I make R graphics keep all the figures already made? thanks, Open as many graphics devices as needed. See the examples in: ?dev.list -- Philippe __ [EMAIL

Re: [R] var on a vector

2003-10-02 Thread Philippe Glaziou
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am an R newbie. I have a problem with computing a variance on a vector. data(cars) variance - function (x) mean(x^2)-mean(x)^2; variance(cars[,1]) [1] 27.4 var(cars[,1]) [1] 27.95918 What did I assume/understand wrong ? You wrongly

Re: [R] Remove comma (,) in data set

2003-09-30 Thread Philippe Glaziou
it. Thanks you for your help. Assuming your dataset is stored in a flat ascii file, you need not use R for this trivial translation of the character , into a space . From your shell (i.e., if standard shell tools are available on your machine), type the following: cat file1 | tr ,file2 -- Philippe

Re: [R] Using POSIX?t rather than chron or date

2003-09-17 Thread Philippe Glaziou
complicated names to type, which make them prone to typos. Typos slow down the thinking. -- Philippe Glaziou Pasteur Institute of Cambodia __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] selecting by variable

2003-08-27 Thread Philippe Glaziou
]) See: ?Subscript ? -- Philippe Glaziou __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] problems with lda , data included,can somebody test with the new version

2003-08-14 Thread Philippe Glaziou
Nicolaas Busscher [EMAIL PROTECTED] wrote: enclosed a simple R script (and a data file, and the output) , with calls lda similar to the example with the iris data in the documentation. it is not working and i dont understand the error message. I tested your data and commands without any

Re: [R] Re: www.acd.ucar.edu mailing list memberships reminder

2003-08-14 Thread Philippe Glaziou
Daniel Bayard [EMAIL PROTECTED] wrote: how do you add x and y error bars on a plot. Have queried the search engine? help.search(error bar) -- Philippe Glaziou Pasteur Institute of Cambodia __ [EMAIL PROTECTED] mailing list https

Re: [R] installing add-on packages on OS X

2003-08-10 Thread Philippe Glaziou
. It may be a good idea to consider upgrading your R. It compiles very well on MacOSX, provided that you install all the missing soft that Apple could not be bothered to include in the OS. -- Philippe Glaziou Pasteur Institute of Cambodia __ [EMAIL

Re: [R] Re: www.acd.ucar.edu mailing list memberships reminder

2003-08-07 Thread Philippe Glaziou
I [EMAIL PROTECTED] wrote: Daniel Bayard [EMAIL PROTECTED] wrote: how do you add x and y error bars on a plot. Have queried the search engine? help.search(error bar) Well, I would have been more helpful if I had indicated that error bars are dealt with in the Hmisc and gregmisc

Re: [R] R on Solaris 9

2003-08-04 Thread Philippe Glaziou
Donnie Payne [EMAIL PROTECTED] wrote: I am attempting an install of R-1.7.1 on a Sun Solaris 9 box. It is a V880. It has 8 processors at 950MHz each and 32 Gb of physical memory. configure: WARNING: you cannot build DVI versions of the R manuals configure could not find latex

Re: [R] configuration error when installing gtkDevice

2003-07-04 Thread Philippe Glaziou
Dimitri Giunchi [EMAIL PROTECTED] wrote: when I try to install gtkDevice on Mandrake Linux 9.1 (R v. 1.7.1), I get the following comfiguration error (see below). Has anyone else had this problem? Any hints are greatly appreciated. [...] trying URL

Re: [R] X-emacs and R for Windows

2003-07-01 Thread Philippe Glaziou
Chriss, Neil [EMAIL PROTECTED] wrote: Is there any way to make XEmacs (or any other editor) the default editor for R so that when I type sample - function(x,y) { + z-x+y + } + edit(sample) the XEmacs (or other editor) is the editor for this function (the default seems to be MS

[R] Re: your mail

2003-06-17 Thread Philippe Glaziou
Frank E Harrell Jr [EMAIL PROTECTED] wrote: Dear Patrick - That was very helpful, especially the output comparing the old and new latex( ) function results - thanks. I'm sorry Philippe that I did not see the problem before. If you edit the source code for latex.default by adding the line

Re: [long:] Re: [R] problem with latex of object summary reverse

2003-06-16 Thread Philippe Glaziou
A.J. Rossini [EMAIL PROTECTED] wrote: Philippe Glaziou [EMAIL PROTECTED] writes: No file file66334873.aux. Underfull \hbox (badness 1) in paragraph at lines 20--21 Not an error. I know, I never said this was an error. [1] (./file66334873.aux) LaTeX Warning: Label(s) may have

[long:] Re: [R] problem with latex of object summary reverse

2003-06-15 Thread Philippe Glaziou
, -- Philippe Glaziou Epidemiologist Pasteur Institute of Cambodia __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] problem with latex of object summary reverse

2003-06-13 Thread Philippe Glaziou
Frank E Harrell Jr [EMAIL PROTECTED] wrote: I tried this on the latest version of Hmisc (1.6-0): library(Hmisc) set.seed(1) y - factor(sample(c('a','b','c'),100,T)) x - runif(100) a - summary(y ~ x, method='reverse') options(digits=3) latex(a) and everything was fine. The following

Re: [R] car package dependencies

2003-06-12 Thread Philippe Glaziou
Martin Wegmann [EMAIL PROTECTED] wrote: I tried to install the car package but I can't solve the dependencies. car needs grid, lattice and dr but when I try to install grid I get this error prompt: wz3x64:/home/oggi/R/software/contrib # rpm -i R-car-1.0.R3-1.i386.rpm error: failed

Re: [R] Re: [BioC] installing XML in linux

2003-06-09 Thread Philippe Glaziou
Mahbub Latif [EMAIL PROTECTED] wrote: To install libhdf5 what I am getting $ apt-get install libhdf5-serial-dev libhdf5-serial-dev: Depends: libhdf5-serial (= 1.4.5-2) but it is not going to be installed then I try... $ apt-get install libhdf5-serial libhdf5-serial: Depends: libc6