Re: [R] Package rmutil

2004-08-20 Thread Christian Schulz
http://www.luc.ac.be/~jlindsey/rcode.html christian Am Donnerstag, 19. August 2004 22:30 schrieb Savano: Users, Where I can to download rmutil package? thanks __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] legends on the outside of the box

2004-08-20 Thread Uwe Ligges
Laura Holt wrote: Hi R People: Here is a simple set of commands: x1 - 1:10 x2 - sqrt(x1) plot(x1) points(x2,col=red,pch=3) legend(2,8,legend=c(First,Second),col=c(black,red),pch=c(1,3)) Fine. Now, I would like to put the legend box on the outside of the plot itself, perhaps in the lower left hand

RE: [R] Do you know if you can map a large minimum spanning tree in R?

2004-08-20 Thread Wade, Fiona M
Thanks Roger and Mike. I spent most of today fiddling as Mike's suggestion got me the nodes on the map, but I had trouble with the coordinates, however I eventually got it to work with the following : ... code to input site data, calculate distances, calculate minimum spanning

Re: [R] Is there an alternative to subplot() of splus

2004-08-20 Thread Uwe Ligges
Carla Chen wrote: Dear R-gurus, Is there any function in R does the same thing as function subplot()in Splus? I am trying to post a pie chart onto the top right hand corner of existing bar chart. Also, Does anyone know if I can use paste() to paste the graph to another graph? Cheers, Carla Chen

Re: [R] Instrumental variables

2004-08-20 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: May someone help me to find out how to use intruments in R? Thanks Ana __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] List dimention labels to plots of components

2004-08-20 Thread Uwe Ligges
White, Charles E WRAIR-Wash DC wrote: It is frustrating to see the labels I want in the dimensions of a list but not be able to extract those labels into titles for plots generated from component objects. If someone could set me straight, I would appreciate it. For your amusement, I have provided

Re: [R] Instrumental variables

2004-08-20 Thread Peter Dalgaard
Uwe Ligges [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: May someone help me to find out how to use intruments in R? Thanks Ana __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] Instrumental variables

2004-08-20 Thread Arne Henningsen
The package systemfit offers instrumental variables (IV) estimation (2SLS + 3SLS). Though this package is built to estimate equation systems, people told me that they use it also for single equation IV estimations (using an equation system that contains only one equation). Arne On Friday 20

Re: [R] rgdal under windows?

2004-08-20 Thread Barry Rowlingson
Roger Bivand wrote: Has anyone had any joy getting the rgdal package to compile under windows? Exactly. The closest anyone has got so far is Hisaji Ono, who used MSYS (http://www.mingw.org/) to build PROJ.4 and GDAL (GDAL depends on PROJ.4, PROJ.4 needs a PATH to metadata files for projection

[R] Survey analysis of repeated relationships?

2004-08-20 Thread Jens Oehlschlägel
I just discovered the great piece of software that is available with the survey package. Many thanks and 'Hats off' to Thomas Lumley. While package survey covers analysis of features of objects sampled (in clusters, strata) I could not find analysis of features of repeated relationsships between

Re: [R] IDE or an Editor for R

2004-08-20 Thread Arne Henningsen
Hi SP, I prefer to use kate (KDE advanced text editor), because it is easier to learn than emacs or vim and IMHO it is also very convenient to use. I have the kate window split into 3 parts: a) the file selector, b) the editor window, and c) a command line with R. I can either source() whole

Re: [R] Is R good for not-professional-statistician, un-mathematical clinical researchers?

2004-08-20 Thread Patrick Burns
I definitely agree that focussing on what R does better than other options is the right approach. One thing that Tomas does not mention is graphics. Two possible selling points along this line are: *) R is good for understanding your data with graphics. *) R is good for producing graphics for

[R] Position of corporate logo beneath diagram

2004-08-20 Thread Helga Neidlinger
Hi, I'd like to position our corporate logo (gif) beneath a graph. Is there a function to position images? Thanks, Helga Neidlinger-- Helga Neidlinger Zentrales Knochenmarkspender-Register Assistenz Geschäftsführungfuer die Bundesrepublik Deutschland

Re: [R] Position of corporate logo beneath diagram

2004-08-20 Thread Prof Brian Ripley
Look in package pixmap which has addlogo-methods Methods for Adding a Pixmap Logo to a Plot Not that it will accept gif, but you can surely convert that format by e.g. ImageMagick or PhotoShop. On Fri, 20 Aug 2004, Helga Neidlinger wrote: I'd like to position our corporate logo (gif)

[R] removing last element from a character string

2004-08-20 Thread Luis Rideau Cruz
R-help, Any function to remove last element (or any specific elemnet in the sequence) from a character string? t-c(aaab,qqqc) function(t) ### remove last character (b and c respectively) aaa qqq Thanks `·._ .· `·. _ .· `·._ .· `·. _ .· `·._ .· `·. _ .· `·.. Luis Ridao Cruz

Re: [R] removing last element from a character string

2004-08-20 Thread Uwe Ligges
Luis Rideau Cruz wrote: R-help, Any function to remove last element (or any specific elemnet in the sequence) from a character string? t-c(aaab,qqqc) function(t) ### remove last character (b and c respectively) aaa qqq substr(t, 1, nchar(t)-1) Uwe Ligges Thanks `·._ .· `·. _ .· `·._

RE: [R] Coagulation data by Box/Hunter/Hunter

2004-08-20 Thread Ted Harding
On 19-Aug-04 T. Murlidharan Nair wrote: Hi!! Has anyone used the coagulation data for statistical analysis? I managed to get the data from the web but unsure of the way its supposed to read. I am new to R so trying to gets myself familiarized with the statistical tools using available data. I

Re: [R] legends on the outside of the box

2004-08-20 Thread partha_bagchi
How about: par(omi = c(1, 1, 1, 1), xpd = NA) x1 - 1:10 x2 - sqrt(x1) plot(x1) points(x2,col=red,pch=3) legend(par(usr)[1],par(usr)[3] - 1.5,legend=c(First,Second),col=c(black,red),pch=c(1,3)) ? Note that you will have to play with the -1.5 to get it right in general. Partha Laura Holt

Re: [R] IDE or an Editor for R

2004-08-20 Thread partha_bagchi
A similar approach is available for windows user with the Crimson Editor - (http://www.crimsoneditor.com/) Arne Henningsen [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 08/20/2004 05:04 AM To: [EMAIL PROTECTED] cc: Subject:Re: [R] IDE or an Editor for

[R] Principal surfaces in R

2004-08-20 Thread Kjetil Brinchmann Halvorsen
Hola! Anybody knows about principal surfaces in R? I found pcurve and princurve, but both seem to have only principal curves. Kjetil halvorsen __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] do not reply for a new topic!!!

2004-08-20 Thread Martin Maechler
Dear S, when posting something to R-help or bioconductor, please do *NOT* reply to an existing message and add a new subject!!! {it breaks threads for most e-mail system that use threads, including the threaded archives, see, e.g.

Re: [R] How do you read in a table with numeric and dates fields without it defaulting to reading in the dates as factors?

2004-08-20 Thread Roger D. Peng
Does setting `as.is = TRUE' in read.table() do what you want? -roger Briggs, Meredith M wrote: __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] do not reply for a new topic!!!

2004-08-20 Thread Martin Maechler
Hi Kevin, {and R-help readers: Kevin's (privatae) question is a quite relevant one to this sidetrack topic of mailing list netiquette} Kevin == Kevin Wang [EMAIL PROTECTED] on Fri, 20 Aug 2004 22:37:39 +1000 (EST) writes: Kevin Just out of interest, what about those posts with (no

[R] drop1 with contr.treatment

2004-08-20 Thread Christoph Buser
Dear R Core Team I've a proposal to improve drop1(). The function should change the contrast from the default (treatment) to sum. If you fit a model with an interaction (which ist not signifikant) and you display the main effect with drop1( , scope = .~., test = F) If you remove the

RE: [R] List dimention labels to plots of components

2004-08-20 Thread White, Charles E WRAIR-Wash DC
My goal is more efficient code for something I anticipate doing a lot. My example code from my first message works because I insert a seemingly redundant recording of Dose Treatment in the list generated in the by command. Since Dose Treatment are already recorded in the dimensions of the list,

Re: [R] do not reply for a new topic!!!

2004-08-20 Thread Adaikalavan Ramasamy
How about those e-mail which specify the problem in the subject line only or does not use a subject line at all. Is it practicable and desirable to simply bounce back an e-mail to the sender with a message to read the posting guide if either the subject line is empty or body is empty. Or this

[R] [R-pkgs] Package deal version 1.2-17

2004-08-20 Thread Claus Dethlefsen
A new version of the package deal is now available on CRAN. The package is for learning (parameters and structure) of Bayesian networks and provide an interface to Hugin. In the new version there is an interface to the package dynamicGraph which allows for editing and callbacks of graphs in the

[R] how to read a series of data set

2004-08-20 Thread Yulei He
Hi, there. I want to input and output a bunch of data set. Suppose I want to read data set m1.dat, m2.dat, m3.dat,... m100.dat and output c1.dat, c2.dat, .. and c100.dat. Notice that the index of data set is from 1 to 100, How can I put them into a loop? The code I am thinking is that for (i in

Re: [R] how to read a series of data set

2004-08-20 Thread Matt McCall
try this maybe? for (i in 1:100){ test - read.table(file=paste(m,i,.dat, sep=)) write.table(test, file=paste(c,i, .dat, sep=)) } GO BLUE! Matt On Aug 20, 2004, at 11:44 AM, Yulei He wrote: Hi, there. I want to input and output a bunch of data set. Suppose I want to read data set m1.dat, m2.dat,

Re: [R] Suggestion for posting guide

2004-08-20 Thread Tony Plate
When I originally compiled the posting guide many people felt that it should be kept as concise as possible, so that its length would not discourage people from reading it. (It probably ended up too long anyway.) So I wouldn't really recommend adding a section of this length too it. That

[R] problem with R start up MASS and family?

2004-08-20 Thread Jonathan M. Lees
Dear fellow R-users: Is this a BUG? R : Copyright 2004, The R Foundation for Statistical Computing Version 1.9.1 (2004-06-21), ISBN 3-900051-00-3 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()'

[R] apply on a data frame

2004-08-20 Thread Laura Holt
Hi R People: There are 2 data sets of the iris data: one is iris3, which is a 3-d array, and the other is iris, which is a data frame with 150 rows and 6 variables. Getting means is straightforward from the 3-day iris3 set: apply(iris3,c(2,3),mean) Setosa Versicolor Virginica Sepal L.

[R] apply and data frames

2004-08-20 Thread Laura Holt
Whoops! Just found it: by(iris[,1:4],Species,mean) Sorry for the inconvenience. Laura. Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] Coagulation data by Box/Hunter/Hunter

2004-08-20 Thread Kjetil Brinchmann Halvorsen
The coagulation dataset is from chapter 6 of Box, HunterHunter, and is used to introduce comparison of more than two treatments (ANOVA). It is supposedly coagulation times of blood extracted from animals, after randomizing the animals to four groups and giving four different diets. Some use in

Re: [R] problem with R start up MASS and family?

2004-08-20 Thread Roger D. Peng
What version of the VR package are you using? Do you see the problem after running update.packages()? -roger Jonathan M. Lees wrote: Dear fellow R-users: Is this a BUG? R : Copyright 2004, The R Foundation for Statistical Computing Version 1.9.1 (2004-06-21), ISBN 3-900051-00-3 R is free

Re: [R] probability histogram question

2004-08-20 Thread Thomas Lumley
On Thu, 19 Aug 2004, Joseph LeBouton wrote: Alec, Thanks for your reply. I guess what I'm getting at is that I to plot the histogram such that the HEIGHT of each bar represents the proportion of that class in the sample. From your reply I gather that the AREA of each bar is currently

Re: [R] GEEs for time series data

2004-08-20 Thread Thomas Lumley
On Thu, 19 Aug 2004, Duncan Lee wrote: I want to run a GEE for a time series of counts. The data are daily respiratory mortality counts and so there aren't any 'clusters' in the longitudinal sense. Neither the gee or geese packages work. The gee one wont run at all and the geese one produces

Re: [R] Survey analysis of repeated relationships?

2004-08-20 Thread Thomas Lumley
On Fri, 20 Aug 2004, [ISO-8859-1] Jens Oehlschlägel wrote: I just discovered the great piece of software that is available with the survey package. Many thanks and 'Hats off' to Thomas Lumley. While package survey covers analysis of features of objects sampled (in clusters, strata) I could

Re: [R] Is R good for not-professional-statistician, un-mathematical clinical researchers?

2004-08-20 Thread Tomas Aragon
--- Patrick Burns [EMAIL PROTECTED] wrote: I definitely agree that focussing on what R does better than other options is the right approach. One thing that Tomas does not mention is graphics. Two possible selling points along this line are: *) R is good for understanding your data with

Re: [R] Suggestion for posting guide

2004-08-20 Thread Martin Maechler
Tony == Tony Plate [EMAIL PROTECTED] on Fri, 20 Aug 2004 10:05:28 -0600 writes: Tony When I originally compiled the posting guide many Tony people felt that it should be kept as concise as Tony possible, so that its length would not discourage Tony people from reading it.

[R] Loss of rownames and colnames

2004-08-20 Thread Min-Han Tan
Hi, I am working on some microarray data, and have some problems with writing iterations. In essence, the problem is that objects with three dimensions don't have rownames and colnames. These colnames and rownames would otherwise still be there in 2 dimensional objects. I need to generate

Re: [R] do not reply for a new topic!!!

2004-08-20 Thread Martin Maechler
Adaikalavan == Adaikalavan Ramasamy [EMAIL PROTECTED] on Fri, 20 Aug 2004 15:33:57 +0100 writes: Adaikalavan How about those e-mail which specify the Adaikalavan problem in the subject line only or does not Adaikalavan use a subject line at all. Adaikalavan Is it

Re: [R] R on gentoo amd64 (gcc 3.3.3) is unstable

2004-08-20 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: dear wizards: FYI: gentoo is a linux meta distribution, which compiles all packages. Once running, gentoo is stable on most applications. (it has some problems with system tools, such as grub.) the compiler is gcc 3.3.3. I do not expect anyone to track down

Re: [R] Loss of rownames and colnames

2004-08-20 Thread Sean Davis
Min-Han, Have you considered using lists of matrices? You can make a list of matrices by: mymatlist - list() for (i in 1:10) {a - matrix(rnorm(100),nrow=10) mymatlist[[i]] - a } Now, mymatlist[[1]] is the first matrix (with rownames and colnames if there were any), mymatlist[[2]] the second,

[R] Could anyone tell me how to open .RNW file?

2004-08-20 Thread F Duan
Dear R people, I find some of help files under doc directory in R are RNW extensions. Could anyone explain to me what they mean and which program I should use to open them? I tried to open them by Rgui.exe but failed. Currently I use wordpad (or other txt editors) to open them though the

[R] Error messages and C

2004-08-20 Thread Ross Boylan
I am calling a C (C++ really) function via the .C interface. Sometimes when things go wrong I want to return an error message. 1. R provides C functions error and warning which look about right. But exactly how does this exit, and in particular what happens with cleaning up, calling C++

Re: [R] Loss of rownames and colnames

2004-08-20 Thread Tony Plate
At Friday 11:46 AM 8/20/2004, Min-Han Tan wrote: Hi, I am working on some microarray data, and have some problems with writing iterations. In essence, the problem is that objects with three dimensions don't have rownames and colnames. These colnames and rownames would otherwise still be there in 2

Re: [R] Error messages and C

2004-08-20 Thread Thomas Lumley
On Fri, 20 Aug 2004, Ross Boylan wrote: I am calling a C (C++ really) function via the .C interface. Sometimes when things go wrong I want to return an error message. 1. R provides C functions error and warning which look about right. But exactly how does this exit, and in particular what

[R] R-devel and gcc 3.4

2004-08-20 Thread Robert Kruus
I tried compiling R-devel from the subversion sources using gcc 3.4.1 and it fails in make check at d-p-q-r-tests. It compiles and works using gcc 3.3.4. Can post more details if needed (don't remember the exact error off the top of my head). Linux-i686. -- [EMAIL PROTECTED] linux:

[R] How generate A01, A02, ..., A99?

2004-08-20 Thread Yao, Minghua
Hi, Anyone can tell me how to generate A01, A02, ..., A99? paste(A, 1:99, sep=) generates A1, A2,..., A99. This is not what I want. Thanks for the help. -MY [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list

Re: [R] How generate A01, A02, ..., A99?

2004-08-20 Thread Sundar Dorai-Raj
Yao, Minghua wrote: Hi, Anyone can tell me how to generate A01, A02, ..., A99? paste(A, 1:99, sep=) generates A1, A2,..., A99. This is not what I want. Thanks for the help. -MY [[alternative HTML version deleted]] How about? sapply(1:99, function(i) sprintf(A%02d, i)) --sundar

Re: [R] How generate A01, A02, ..., A99?

2004-08-20 Thread A.J. Rossini
Yao, Minghua [EMAIL PROTECTED] writes: Hi, Anyone can tell me how to generate A01, A02, ..., A99? paste(A, 1:99, sep=) generates A1, A2,..., A99. This is not what I want. c(paste(A0,1:9,sep=),paste(A,10:99,sep=)) ? -- Anthony Rossini Research Associate Professor

RE: [R] Error messages and C

2004-08-20 Thread Vadim Ogranovich
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ross Boylan Sent: Friday, August 20, 2004 11:35 AM To: r-help Subject: [R] Error messages and C I am calling a C (C++ really) function via the .C interface. Sometimes when things go wrong I want to

RE: [R] R-devel and gcc 3.4

2004-08-20 Thread Samuelson, Frank*
I encountered a similar problem with 1. Intel compilers. 2. gcc when I turn off optimizations (no -Ox) -Original Message- From: Robert Kruus [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 3:14 PM To: [EMAIL PROTECTED] Subject: [R] R-devel and gcc 3.4 I tried

Re: [R] How generate A01, A02, ..., A99?

2004-08-20 Thread Peter Dalgaard
Sundar Dorai-Raj [EMAIL PROTECTED] writes: Yao, Minghua wrote: Hi, Anyone can tell me how to generate A01, A02, ..., A99? paste(A, 1:99, sep=) generates A1, A2,..., A99. This is not what I want. Thanks for the help. -MY [[alternative HTML version deleted]] How

Re: [R] R-devel and gcc 3.4

2004-08-20 Thread Peter Dalgaard
Samuelson, Frank* [EMAIL PROTECTED] writes: I encountered a similar problem with 1. Intel compilers. 2. gcc when I turn off optimizations (no -Ox) Ooops. I didn't notice #2 the first time around. If we're failing the checks with no optimization, then we surely have set the tolerances too

Re: [R] R-devel and gcc 3.4

2004-08-20 Thread Robert Kruus
Here: CFLAGS=-Os -march=athlon-xp -pipe -fomit-frame-pointer -ftracer Will try some other flags to see if that is an issue. comparing 'd-p-q-r-tests.Rout' to './d-p-q-r-tests.Rout.save' ...196,227d195 [1] Mean scaled difference: 230.9933 [1] Mean scaled difference: 16.72081 [1] Mean scaled

RE: [R] paired t-test vs pairwise t-test

2004-08-20 Thread Jack Tanner
On Thu, 2004-08-19 at 14:42, Liaw, Andy wrote: Perhaps other stat packages do it differently? Does SPSS manuals detail what its t-test procedure does, including which t-test(s) it does and when it's appropriate? SAS documentation, which Marc pointed out, is much more detailed than SPSS. For

Re: [R] How generate A01, A02, ..., A99?

2004-08-20 Thread Marc Schwartz
On Fri, 2004-08-20 at 15:15, Peter Dalgaard wrote: Sundar Dorai-Raj [EMAIL PROTECTED] writes: Yao, Minghua wrote: Hi, Anyone can tell me how to generate A01, A02, ..., A99? paste(A, 1:99, sep=) generates A1, A2,..., A99. This is not what I want. Thanks for the help.

Re: [R] Could anyone tell me how to open .RNW file?

2004-08-20 Thread Uwe Ligges
F Duan wrote: Dear R people, I find some of help files under doc directory in R are RNW extensions. Could anyone explain to me what they mean and which program I should use to open them? I tried to open them by Rgui.exe but failed. Currently I use wordpad (or other txt editors) to open them

Re: [R] paired t-test vs pairwise t-test

2004-08-20 Thread Jack Tanner
From: Peter Dalgaard [EMAIL PROTECTED] I didn't suggest looking at the example section of the help pages without a reason... It should be pretty clear example(pairwise.t.test) does give output that pretty clearly indicates that all pairwise comparisons are being performed. It's only clear if you

Re: [R] R-devel and gcc 3.4

2004-08-20 Thread Martin Maechler
Robert == Robert Kruus [EMAIL PROTECTED] on Fri, 20 Aug 2004 16:33:33 -0400 writes: Robert Here: CFLAGS=-Os -march=athlon-xp -pipe Robert -fomit-frame-pointer -ftracer is this now gcc (w/o -O) or the intel one? In any case, your numeric results seem completely off target, not just

Re: [R] paired t-test vs pairwise t-test

2004-08-20 Thread Berton Gunter
The fact is that, while certainly desirable, it is very difficult and time-consuming to write the sort of extensively exampled, instructional Help files that you desire. Given the voluntary nature of R authors/developers, the Help files as they exist are remarkable, while still admittedly being

RE: [R] How generate A01, A02, ..., A99?

2004-08-20 Thread Raubertas, Richard
And yet another way: x - as.character(101:199) substr(x,1,1) - A -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Schwartz Sent: Friday, August 20, 2004 4:38 PM To: Peter Dalgaard Cc: R Help; [EMAIL PROTECTED] Subject: Re: [R] How generate

Re: [R] Error messages and C

2004-08-20 Thread Ross Boylan
On Fri, 2004-08-20 at 12:04, Thomas Lumley wrote: On Fri, 20 Aug 2004, Ross Boylan wrote: I am calling a C (C++ really) function via the .C interface. Sometimes when things go wrong I want to return an error message. 1. R provides C functions error and warning which look about right.

[R] slackware packages

2004-08-20 Thread Carlos Henrique Grohmann
Hello all, I'm new in this list and I'd like to know if someone knows about R packages for slackware linux. thanks all. -- +-+ Carlos Henrique Grohmann - Guano Geologist M.Sc - PhD Student at IGc-USP - Brazil Linux User #89721

[R] Partial Least Squares

2004-08-20 Thread Lana Schaffer
Friends, Is there a Partial Least Squares package implemented in R? Thanks, Lana [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] Sorting matrices

2004-08-20 Thread Lana Schaffer
Hi, I have been sorting matrices by sorting each column one at a time. However, Many times I want to sort the whole matrix by sorting one column. Are there Ways to do this in R? Lana [[alternative HTML version deleted]] __ [EMAIL PROTECTED]

Re: [R] Loss of rownames and colnames

2004-08-20 Thread Min-Han Tan
Thank you all very much. I have solved the problem using lists of matrices. But yes, I will certainly look into the issue of the names for higher-dimensional arrays. Regards, Min-han __ [EMAIL PROTECTED] mailing list

Re: [R] Sorting matrices

2004-08-20 Thread Sundar Dorai-Raj
Lana Schaffer wrote: Hi, I have been sorting matrices by sorting each column one at a time. However, Many times I want to sort the whole matrix by sorting one column. Are there Ways to do this in R? Lana Lana, See ?order: x[order(x[, 1]), ] --sundar

Re: [R] R-devel and gcc 3.4

2004-08-20 Thread Robert Kruus
gcc. Sorry for the double post. On Fri, 20 Aug 2004 23:02:32 +0200 it is rumored that Martin Maechler [EMAIL PROTECTED] wrote: Robert == Robert Kruus [EMAIL PROTECTED] on Fri, 20 Aug 2004 16:33:33 -0400 writes: Robert Here: CFLAGS=-Os -march=athlon-xp -pipe Robert

RE: [R] More precision problems in testing with Intel compilers

2004-08-20 Thread Martin Maechler
FrankSa == Samuelson, Frank* Samuelson on Thu, 19 Aug 2004 16:22:11 -0400 writes: FrankSa The Intel compiled version also fails the below test: here you give the desired output. What does your 'Intel compiled R' return instead? ### Very big and very small umach -

Re: [R] precision problems in testing with Intel compilers

2004-08-20 Thread Martin Maechler
Thank you for the report. Your points are quite valid (see below). Note that these precision tests were a bit stringent on purpose because pchisq() eventually needs some accuracy improvements which I had been investigating (when I did some minor improvements). FrankSa == Samuelson, Frank*

RE: [R] More precision problems in testing with Intel compilers

2004-08-20 Thread Vadim Ogranovich
For what it's worth. I had this very problem, i.e. the diff, this morning (I reported it to r-devel). I was using gcc, but because my $CFLAGS env variable was set to some value, the compilation flags were different from the ones presumably used to produce the Rout. Once I unset CFLAGS it worked

Re: [R] Error messages and C

2004-08-20 Thread Thomas Lumley
On Fri, 20 Aug 2004, Ross Boylan wrote: The weak references cleaned up are R objects, and my stuff is mostly non-R objects. I see two possible ways to get this to work: 1) Create some kind of dummy R object with a finalizer that cleans up my C++ objects. That's the approach used in that web

Re: [R] The Green Book?

2004-08-20 Thread Thomas Lumley
On Fri, 20 Aug 2004, Sam Chapman wrote: There is no mention of 'Programming with Data: A Guide to the S Language' by John M. Chambers. Is this newest (Green) book also suitable as a reference for R? Thank you for your time and attention! Yes. The system implemented in the methods package is

[R] R CMD check testing environment

2004-08-20 Thread Ross Boylan
I can't tell from the docs (Writing R Extensions 1.9.1) exactly what environment the tests, examples, and vignettes that R CMD check tries to run are in. In particular: 1) how do I get the package loaded? 2) how do I access data in the data/ directory? 3) where is the material in the other

Re: [R] removing last element from a character string

2004-08-20 Thread Kjetil Brinchmann Halvorsen
test - xyz nchar(test) [1] 3 n - nchar(test) n - n-1 substr(test,1,n) [1] xy Kjetil Halvorsen Luis Rideau Cruz wrote: R-help, Any function to remove last element (or any specific elemnet in the sequence) from a character string? t-c(aaab,qqqc) function(t) ### remove last character (b and

Re: [R] rgdal under windows?

2004-08-20 Thread Kjetil Brinchmann Halvorsen
Barry Rowlingson wrote: Roger Bivand wrote: Has anyone had any joy getting the rgdal package to compile under windows? Exactly. The closest anyone has got so far is Hisaji Ono, who used MSYS (http://www.mingw.org/) to build PROJ.4 and GDAL (GDAL depends on PROJ.4, PROJ.4 needs a PATH to

Re: [R] R-devel and gcc 3.4

2004-08-20 Thread Robert Kruus
Seems to be something with the Os flag. Will investigate further. On Fri, 20 Aug 2004 18:24:18 -0400 Robert Kruus [EMAIL PROTECTED] wrote: gcc. Sorry for the double post. On Fri, 20 Aug 2004 23:02:32 +0200 it is rumored that Martin Maechler [EMAIL PROTECTED] wrote: Robert == Robert

Re: [R] Partial Least Squares

2004-08-20 Thread Spencer Graves
Did you read the posting guide! http://www.R-project.org/posting-guide.html;? In particular, did you try www.r-project.org - search - R site search for partial least squares? I just got 65 hits for partial least squares. Some were not relevant, but many were. I also got 9 hits for

Re: [R] Partial Least Squares

2004-08-20 Thread Edgar Acuna
The package pls.pcr performs multivariate regression by PLS and PCR Good luck! Edgar Acuna UPR-Mayaguez,Puerto Rico On Fri, 20 Aug 2004, Lana Schaffer wrote: Friends, Is there a Partial Least Squares package implemented in R? Thanks, Lana [[alternative HTML version deleted]]

Re: [R] Suggestion for posting guide

2004-08-20 Thread Gabor Grothendieck
Martin Maechler maechler at stat.math.ethz.ch writes: dput(x) Rereading the posting guide (which *really* is rather too long already for beginners), I see that we already have an 'Examples:' section. [Have you seen that, Gabor, and not found useful enough?] And just below that, we

RE: [R] Partial Least Squares

2004-08-20 Thread Liaw, Andy
From: Spencer Graves Did you read the posting guide! http://www.R-project.org/posting-guide.html;? In particular, did you try www.r-project.org - search - R site search for partial least squares? I just got 65 hits for partial least squares. Some were not relevant, but many

Re: [R] Suggestion for posting guide

2004-08-20 Thread Adaikalavan Ramasamy
One suggestion is to begin the posting guide with a few summary lines (table of contents). Here is a good example with an informative summary http://archive.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimerAll.html For R, we can have something like this (modified from the posting guide according to

RE: [R] rgdal under windows?

2004-08-20 Thread Liaw, Andy
From: Kjetil Brinchmann Halvorsen Except it will not cross the complexity of getting linux CD-roms to install. Based in a peripherical country, with no internet connection anywhere close fast enough to actually download linux, have to buy the CD-roms. Trying to get Suse 9.1 (since I have

Re: [R] paired t-test vs pairwise t-test

2004-08-20 Thread John Christie
On Aug 20, 2004, at 6:16 PM, Berton Gunter wrote: The fact is that, while certainly desirable, it is very difficult and time-consuming to write the sort of extensively exampled, instructional Help files that you desire. It would be great if one could easily submit a modified help file for

Re: [R] R-devel and gcc 3.4

2004-08-20 Thread Prof Brian Ripley
On 20 Aug 2004, Peter Dalgaard wrote: Samuelson, Frank* [EMAIL PROTECTED] writes: I encountered a similar problem with 1. Intel compilers. 2. gcc when I turn off optimizations (no -Ox) Ooops. I didn't notice #2 the first time around. If we're failing the checks with no optimization,

[R] more on apply on data frame

2004-08-20 Thread Laura Holt
Hi R People: Several of you pointed out that using tapply on a data frame will work on the iris data frame. I'm still having a problem. The iris data frame has 150 rows, 5 variables. The first 4 are numeric, while the last is a factor, which has the Species names. I can use tapply for 1

Re: [R] The Green Book?

2004-08-20 Thread Prof Brian Ripley
On Fri, 20 Aug 2004, Thomas Lumley wrote: On Fri, 20 Aug 2004, Sam Chapman wrote: [A quote from `An Introduction to R' has been excised here] There is no mention of 'Programming with Data: A Guide to the S Language' by John M. Chambers. Is this newest (Green) book also suitable as a

Re: [R] suggesting documentation (was paired t-test vs pairwise t-test)

2004-08-20 Thread Prof Brian Ripley
On Fri, 20 Aug 2004, John Christie wrote: On Aug 20, 2004, at 6:16 PM, Berton Gunter wrote: The fact is that, while certainly desirable, it is very difficult and time-consuming to write the sort of extensively exampled, instructional Help files that you desire. It would be great