[R] how to insert a double quote with the paste function?

2003-09-11 Thread Philippe Hupé
Hello, I would like to write in a variable the following string : Hello World If I do cat(Hello ,\World\), I have the good result on the screen but it can not be affected to a variable. If I do the same thing with paste paste(Hello ,\World\) it does not work since \ seems to be not

[R] Flipping a heatmap

2003-09-11 Thread David Khabie-Zeitoune
Hi I am using the heatmap function in package mva to look at large correlation matrices visually. Is there any way to flip the output of heatmap plot left-right so that, if presented with a correlation matrix, it plots the unity elements in the correlation matrix along a diagonal from top left to

RE: [R] how to insert a double quote with the paste function?

2003-09-11 Thread David Khabie-Zeitoune
Philippe You seem to have the right answer already, unless I misunderstand... If I define: x = Hello \World\ Then the default print method for this character string will give the rather ugly looking: x [1] Hello \World\ But this is just R telling us that it does recognise the escape

Re: [R] how to insert a double quote with the paste function?

2003-09-11 Thread Prof Brian Ripley
On Thu, 11 Sep 2003, Philippe Hupé wrote: I would like to write in a variable the following string : Hello World If I do cat(Hello ,\World\), I have the good result on the screen but it can not be affected to a variable. If I do the same thing with paste paste(Hello ,\World\) it does

Re: [R] how to insert a double quote with the paste function?

2003-09-11 Thread Patrick Burns
The paste is doing the right thing -- it is how it is displayed that matters: jj - paste(hello, \world\) jj [1] hello \world\ cat(jj) hello world print(jj, quote=FALSE) [1] hello world Patrick Burns Burns Statistics [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S

[R] Job opening: Biostatistician

2003-09-11 Thread Peter Adorjan
I hope this this could be of interest for some of you, Thanks, Peter Adorjan Biostatistics Expert (Berlin, Germany) You will develop and apply statistical techniques for the analysis, visualization and quality control of high-dimensional and complex biomedical data sets (mainly DNA

[R] Re: logistic regression {R-help Digest ..}

2003-09-11 Thread David Duffy
On Tue, 9 Sep 2003 Christoph Lehmann [EMAIL PROTECTED] wrote: I have the following data V1 V2 1 -5.800 0 2 -4.800 0 3 -2.867 0 4 -0.867 0 5 -0.733 0 6 -1.667 0 7 -0.133 1 8 1.200 1 9 1.333 1 and I want to know, whether V1 can

RE: [R] Flipping a heatmap

2003-09-11 Thread Liaw, Andy
My feeling is that heatmap is not the right thing to use on a correlation matrix. The heatmap function expects a data matrix, and does a two-way clustering of cases and variables. It tries to rearrange the rows and columns so that similar colors are closer together. This obviously will not work

[R] Problem in installing quantreg package

2003-09-11 Thread Swagata Nandi
I was trying to install package quantreg in an R session, but I got the follwing error message: ERROR: cannot write to or create directory '/usr/lib/R/library'. Can anyone suggest what I need to do to fix it up? Swagata Nandi __ [EMAIL PROTECTED]

Re: [R] Problem in installing quantreg package

2003-09-11 Thread Prof Brian Ripley
On Thu, 11 Sep 2003, Swagata Nandi wrote: I was trying to install package quantreg in an R session, but I got the follwing error message: ERROR: cannot write to or create directory '/usr/lib/R/library'. Can anyone suggest what I need to do to fix it up? Use the account you used to

[R] Problem in installing quantreg package

2003-09-11 Thread Swagata Nandi
Hi, I was trying to install quantreg package in an R session, but got the following error message: ERROR: cannot write to or create directory '/usr/lib/R/library' Can anyone suggest what I need to do? Swagata Nandi __ [EMAIL PROTECTED] mailing list

Re: [R] Flipping a heatmap

2003-09-11 Thread Duncan Murdoch
On Thu, 11 Sep 2003 07:46:16 -0400, you wrote: My feeling is that heatmap is not the right thing to use on a correlation matrix. The heatmap function expects a data matrix, and does a two-way clustering of cases and variables. It tries to rearrange the rows and columns so that similar colors

RE: [R] Flipping a heatmap

2003-09-11 Thread Martin Maechler
AndyL == Liaw, Andy [EMAIL PROTECTED] on Thu, 11 Sep 2003 07:46:16 -0400 writes: AndyL My feeling is that heatmap is not the right thing to AndyL use on a correlation matrix. definitely. AndyL The heatmap function expects a data matrix, and does AndyL a two-way clustering

Re: [R] Problem in installing quantreg package

2003-09-11 Thread Roger D. Peng
You probably do not have permission to write to that directory (and you need write permission to install a package). I assume you are on Unix? Either ask your system administrator to install it for you or install it into a directory where you have permission. For example, I make a

Re: [R] Problem in installing quantreg package

2003-09-11 Thread Laurent Faisnel
Swagata Nandi wrote: Hi, I was trying to install quantreg package in an R session, but got the following error message: ERROR: cannot write to or create directory '/usr/lib/R/library' Can anyone suggest what I need to do? Swagata Nandi __ [EMAIL

Re: [R] Problem in installing quantreg package

2003-09-11 Thread Swagata Nandi
Thanks, I could install it as superuser. Swagata. On Thu, 11 Sep 2003, Roger D. Peng wrote: You probably do not have permission to write to that directory (and you need write permission to install a package). I assume you are on Unix? Either ask your system administrator to install it for

RE: [R] Flipping a heatmap

2003-09-11 Thread Martin Maechler
After some off-line discussion I want to correct my earlier post: It's clear (even to me ;-) that the idea of reordering columns (and rows simultaneously for symmetric matrices) and then image()ing is very appropriate for correlation matrices. BTW, this has been quite an old idea, going back to

[R] R book

2003-09-11 Thread Arne.Muller
Hi All, I'd be interested in your opinions of the book Introductory Statistics with R by Peter Dalgaard Does it well describe the R object concept, the language itself and statistical aspects (I am not a statistician)? thanks for your opinion, Arne

[R] Loading Distance matrices and PCA

2003-09-11 Thread diriano
Hi All I am really new into R, and I would like to know if it is possible to load a distance file matrix (lower-triangular) into R and then do a PCA or Multidimensional Scaling over that matrix. I would apreciate any help, Thanks Diego Riano -- Diego Mauricio Riano Pachon Biologist Institute

Re: [R] Loading Distance matrices and PCA

2003-09-11 Thread Prof Brian Ripley
On Thu, 11 Sep 2003 [EMAIL PROTECTED] wrote: I am really new into R, and I would like to know if it is possible to load a distance file matrix (lower-triangular) into R and then do a PCA or Multidimensional Scaling over that matrix. No, yes, as PCA is not defined for a distance matrix but MDS

Réf. : [R] Loading Distance matrices and PCA

2003-09-11 Thread f . mercier
Hi Diego, I think that some function from the package ade4 can do this. F [EMAIL PROTECTED]

Re: [R] Cross-platform compatibility with R?

2003-09-11 Thread Joseph Ortiz
Dear All, Thanks to all of the individuals who responded to my question regarding cross-platform compatibility with R. My problem turned out to be incompatible versions of R on two machines. I was able to upgrade to consistent versions of R on my linux and OSX boxes and transfer files and

Re: [R] R book

2003-09-11 Thread Jason Turner
On Fri, 2003-09-12 at 03:09, [EMAIL PROTECTED] wrote: Hi All, I'd be interested in your opinions of the book Introductory Statistics with R by Peter Dalgaard Does it well describe the R object concept, the language itself and statistical aspects (I am not a statistician)? The title

[R] Rgui access violation

2003-09-11 Thread Yang, Richard
Dear All; While using EMclust() in the mclust package, I frequently encountered a program error. A message window popped up with the message Rgui.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is be created. version

Re: [R] Rgui access violation

2003-09-11 Thread Uwe Ligges
Yang, Richard wrote: I apologize for accidentally sent the incompleted message. The crash relating to memory size. By increasing the memory limit to 512 MB seems to solve the problem. Richard Dear All; While using EMclust() in the mclust package, I frequently encountered

Re: [R] Rgui access violation

2003-09-11 Thread Duncan Murdoch
On Thu, 11 Sep 2003 15:11:09 -0400, Yang, Richard [EMAIL PROTECTED] wrote : Dear All; While using EMclust() in the mclust package, I frequently encountered a program error. A message window popped up with the message Rgui.exe has generated errors and will be closed by Windows. You will

[R] Using R for microarrays datas analysis by Mixed model ANOVA. lme function.

2003-09-11 Thread Daphne Autran
Hi, We are using R to analyse microarrays datas by ANOVA. We would like to set up Mixed Model analysis, using the lme function within the nmle package. However, we have problem in understanding and getting the right formula to build a groupedData object which appear to be required for lme to

Re: [R] Sorting

2003-09-11 Thread Seth Falcon
See ?order. On Thu, Sep 11, 2003 at 06:45:49PM -0400, [EMAIL PROTECTED] wrote: What is the best way to sort a dataframe? __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] Sorting

2003-09-11 Thread Ko-Kang Kevin Wang
Hi, On Thu, 11 Sep 2003 [EMAIL PROTECTED] wrote: What is the best way to sort a dataframe? For example, how would I go about sorting a dataframe (with variables V1-V5) by ascending V1, V2 and descending V3 while retaining V4 and V5. ?sort Also, is there a relatively easy way by which to

[R] (structured) programming style

2003-09-11 Thread Ross Boylan
I find that because R functions are call by value, and because there are no pointer or reference types (a la C++), I am making fairly heavy use of lexical scoping to modify variables. E.g. outer - function() { m - matrix(0, 2, 2) inner - function() { m[2,2] - 3 ... } } I am not too

Re: [R] (structured) programming style

2003-09-11 Thread Thomas Lumley
On Thu, 11 Sep 2003, Ross Boylan wrote: I find that because R functions are call by value, and because there are no pointer or reference types (a la C++), I am making fairly heavy use of lexical scoping to modify variables. E.g. outer - function() { m - matrix(0, 2, 2) inner -

Re: [R] (structured) programming style

2003-09-11 Thread Ross Boylan
Thanks for your response. Is good to know that copying is lazy, but I don't think that fully solves my problems. See below. On Thu, 2003-09-11 at 17:40, Thomas Lumley wrote: . you see that unpacking b from a didn't result in a copy, and that b must just be a reference to a$m. When b is

Re: [R] (structured) programming style

2003-09-11 Thread Spencer Graves
You asked, Where and what is Bioconductor... . See: www.bioconductor.org spencer graves Ross Boylan wrote: Thanks for your response. Is good to know that copying is lazy, but I don't think that fully solves my problems. See below. On Thu, 2003-09-11 at 17:40, Thomas Lumley wrote: . you

Re: [R] help - Object is static, operation not allowed Error

2003-09-11 Thread Dirk Eddelbuettel
On Fri, Sep 12, 2003 at 09:19:06AM +0800, [EMAIL PROTECTED] wrote: I am a newbie in R project and trying to call prcomp(x) of R function using (D)COM server communicate with R in ASP, and encountering the error As a general rule, I found it helpful to disentangle matters: i) make sure

[R] about package e1071

2003-09-11 Thread yshen004
Hi, This is Yan from Temple University. I recently read a paper about SVM and tried to apply it with some dataset in R. I downloaded a zip file e1071_1.3-12.zip from CRAN and used R menu to install it. It seemed that the package was installed successfully. But I failed to load the package and

[R] Getting 2 kinds of quotes inside a pasted string

2003-09-11 Thread Wiener, Matthew
Hi, all. I would like to use pipe to run a file through an awk program before scanning (to reduce the amount of data I'll be taking in). I would like to construct the awk program in R, and also to be able to set the awk variable FS, to accommodate different field separators in different files.