Re: [R] Searchable mailing list archives -- not reachable

2005-09-15 Thread Martin Maechler
AFAIK, the correct URL --- as also used from CRAN's search page --- is http://tolstoy.newcastle.edu.au/~rking/R/ However you are both correct that it is not reachable anymore; It seems because it's been firewalled off the world : PING tolstoy.newcastle.edu.au (134.148.237.146) 56(84) bytes o

[R] significance of spectal peak with spectrum()

2005-09-15 Thread Sebastian Leuzinger
Hello, has anybody got a simple recepie to test the significance level of the peaks after using spectrum() ? (R-version 2.0.1, linux SuSE9.3) -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041

Re: [R] Copying from graphics window in OS X

2005-09-15 Thread vincent
you may try : bmp("myimage.bmp"); plot(...); dev.off(); # png(), jpeg() also available hih __ R-help@stat.math.ethz.ch 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] Searchable archives

2005-09-15 Thread Murray Pung
Yes, I've had the same trouble. Robert may be able to sort this out. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 16 September 2005 3:34 PM To: r-help@stat.math.ethz.ch Subject: [R] Searchable archives I cannot access the searchable archives at ww

[R] Searchable archives

2005-09-15 Thread Fiona.Evans
I cannot access the searchable archives at www.tolstoy.newcastle.au/~rking/R. Does anyone else have this problem? -- Fiona H. Evans http://www.cmis.csiro.au/Fiona.Evans [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing

Re: [R] what's the best way to save global variables?

2005-09-15 Thread Stephen D. Weigand
Johan, On Sep 15, 2005, at 11:39 AM, johan Faux wrote: > I am writing a kind of long program in R and I have some variables > which I want to be globals. Where should I save them? I was thinking > to create a function wich initialize all the global variables and then > whenever I need them, I

Re: [R] about cutree

2005-09-15 Thread Stephen D. Weigand
On Sep 15, 2005, at 10:26 AM, Baoqiang Cao wrote: > Hi Everyone, > > I'm trying to use cutree to get the clusters after hclust. What I used > is: mycluster<-cutree(cnclust,h=0.5) > Now, my problem is, how can I get the actual clusters? Thanks! > > Best, > Baoqiang Cao Doesn't print(mycluster) g

[R] Nolinear mixed-effects models (nlme)

2005-09-15 Thread Mario Fernando Cerón Muñoz
Do you send information about lactation curve analyse with no linear mixed model, with fixed effects (herd, year season, parity) and random effects (cow)?. Than you very much Mario Fernando [[alternative HTML version deleted]] __ R-help@stat.

Re: [R] Coefficients from LM

2005-09-15 Thread Charles Annis, P.E.
Tsk, tsk. You don't seem to be looking very hard. Here's an example with a glm; lm() works the same way but has fewer internal objects. mod3 <- glm(tree ~ altitude, family = binomial) You can use names() to find out what's inside: > names(mod3) [1] "coefficients" "residuals" "fit

Re: [R] Converting coordinates to actual distances

2005-09-15 Thread Jim Lemon
Paul Brewin wrote: > Hello, > > I've been searching for a method of converting Lat/Lon decimal > coordinates into actual distances between points, and taking into > account the curvature of the earth. Is there such a package in R? I've > looked at the GeoR package, but this does not seem to cont

Re: [R] Copying from graphics window in OS X

2005-09-15 Thread Chris Wiita
I'm connecting over SSH to a linux server to do calculations, so I need to be able to run the remote linux console on the Mac. Jamieson Cobleigh wrote: >You can try FreeSnap, a screen capture program for OS X: >http://www.efritz.net/software.html > >Also, why are you running R from an XTerm?

Re: [R] Copying from graphics window in OS X

2005-09-15 Thread Jamieson Cobleigh
I just tried using Ctrl-C to do a copy a plot from a graphic window using the Cocoa version of OS X that you can download from the link below and I was able to paste the plot into a document. Jamie On 9/15/05, Jamieson Cobleigh <[EMAIL PROTECTED]> wrote: > Also, why are you running R from an XTe

Re: [R] Error in vector("double", length) : vector size specified is too large....VLDs

2005-09-15 Thread Tom Colson
Yes, using geoR. I can interpolate the DEM quite easily in Grass (v.surf.rst, kriging) and block kriging in ArcInfo. What we need, though, is to be able to "estimate" or even nail down the variogram for these data sets. Where am I going with this? I'm guessing that variables such as slope, rugged

Re: [R] Copying from graphics window in OS X

2005-09-15 Thread Jamieson Cobleigh
You can try FreeSnap, a screen capture program for OS X: http://www.efritz.net/software.html Also, why are you running R from an XTerm? There is an OS X native version of R that might be better integrated with OS X for doing screen captures: http://cran.stat.ucla.edu/bin/macosx/ Jamie On

Re: [R] Copying from graphics window in OS X

2005-09-15 Thread Felipe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using R for Mac OS X Aqua GUI. It allows me to copy graphs directly, simply with command-c. It's pretty nice, you can give it a try. Greetings. Felipe Chris Wiita wrote: | I'm running R from an Xterm window is OSX-Tiger. Graphical windows | appea

[R] Coefficients from LM

2005-09-15 Thread Pablo Gonzalez
Hi everyone, Can anyone tell me if its possibility to extract the coefficients from the lm() command? For instance, imagine that we have the following data set (the number of observations for each company is actually larger than the one showed...): Company Y X1 X2 1 y_1

Re: [R] Copying from graphics window in OS X

2005-09-15 Thread Chris Wiita
I hope there is a way...at the moment an os X screen grab is the only way to get a quick copy. When I ran Cygwin on a PC, copying from graphic windows was as easy as ctrl+c--so it doesn't sound like an X11 limitation. I'd like to know what Cygwin was doing in the background... Sean Davis wrote

Re: [R] Error in vector("double", length) : vector size specified is too large....VLDs

2005-09-15 Thread Roger Bivand
On 15 Sep 2005, Peter Dalgaard wrote: > "Tom Colson" <[EMAIL PROTECTED]> writes: > > > > > > rm(data1) > > > variog.1.b <- variog(raw.data) > > variog: computing omnidirectional variogram > > Error in vector("double", length) : vector size specified is too large > > > > Turns out I was wrong r

Re: [R] Copying from graphics window in OS X

2005-09-15 Thread Sean Davis
On 9/15/05 3:14 PM, "Chris Wiita" <[EMAIL PROTECTED]> wrote: > I'm running R from an Xterm window is OSX-Tiger. Graphical windows > appear as they should, but I'm having trouble copying from them--using > cmd+c or the Copy option in the Edit menu won't place the graph in the > clipboard (when I

[R] Copying from graphics window in OS X

2005-09-15 Thread Chris Wiita
I'm running R from an Xterm window is OSX-Tiger. Graphical windows appear as they should, but I'm having trouble copying from them--using cmd+c or the Copy option in the Edit menu won't place the graph in the clipboard (when I paste into a running OS X app, I get whatever was the last copied t

Re: [R] Error in vector("double", length) : vector size specified is too large....VLDs

2005-09-15 Thread Peter Dalgaard
"Tom Colson" <[EMAIL PROTECTED]> writes: > > > rm(data1) > > variog.1.b <- variog(raw.data) > variog: computing omnidirectional variogram > Error in vector("double", length) : vector size specified is too large > > Turns out I was wrong re: # of rows...it's 304,000 > > > Same problem. Version

Re: [R] Error in vector("double", length) : vector size specified is too large....VLDs

2005-09-15 Thread Tom Colson
> rm(data1) > variog.1.b <- variog(raw.data) variog: computing omnidirectional variogram Error in vector("double", length) : vector size specified is too large Turns out I was wrong re: # of rows...it's 304,000 Same problem. Version is 2.1.1, hardware is Dual Xeon 3.6 4 GB RAM, XP Pro 64 Bit.

Re: [R] Error in vector("double", length) : vector size specified is too large....VLDs

2005-09-15 Thread Tom Colson
At 4 GB, I'm at the 32bit windows limit. Thomas Colson North Carolina State University Department of Forestry and Environmental Resources (919) 673 8023 [EMAIL PROTECTED] Calendar: www4.ncsu.edu/~tpcolson -Original Message- From: Berton Gunter [mailto:[EMAIL PROTECTED] Sent: Thu

[R] Error in vector("double", length) : vector size specified is too large....VLDs

2005-09-15 Thread Tom Colson
I have what R seems to consider a very large dataset, a 12MB text file of lat,long,and height values, 130,000 rows to be exact. Here's what I get: > data1 <- data.frame(read.table("BE3720078500WC20020828.txt",sep=",", header=T)) > raw.data <- as.geodata(data1) > variog.1.b <- variog(raw.data) var

[R] Error in vector("double", length) : vector size specified is too large....VLDs

2005-09-15 Thread Tom Colson
I have what R seems to consider a very large dataset, a 12MB text file of lat,long,and height values, 130,000 rows to be exact. Here's what I get: Thomas Colson North Carolina State University Department of Forestry and Environmental Resources (919) 673 8023 [EMAIL PROTECTED] Calendar: www4.nc

[R] How to label a plot of a tree dendrogram with text

2005-09-15 Thread Alvarez Pedro
Dear R list, I have generated a object of class rpart in R 2.1.1 (using the wrapper function "mvpart" of the mvpart-package version 1.0-1). In order to label the plot of the tree dendrogram with text I used "text.rpart". In this function it is possible to set the argument "label" to determine whic

Re: [R] Rcommander and simple chisquare

2005-09-15 Thread John Fox
Dear Christian, The Rcmdr assumes that you have a data frame with the original data, in which the variable in question is a factor. The frequency distribution is constructed for the factor. Thus, in your example, you'd have 100 observations classified on a two-category factor. What you enter direc

Re: [R] means comparison in R (post-hoc test)

2005-09-15 Thread Liaw, Andy
Do RSiteSearch("lsmeans") and go from there. Andy > From: Felipe > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Thank you, I think multcomp is very near to what I was looking for. > However, I am still looking for a mean to obtain least-squares > (adjusted) means and std. errors of the

Re: [R] Rcommander and simple chisquare

2005-09-15 Thread Christian Jost
Dear John and Philippe, thanks for your replys, I finally found this menu, but I am somewhat at a loss how I should enter the observed frequencies. To take my example below, If I enter a one-column data.frame with the numbers 61 and 39, John's indicated menu is not highlighted. If I add a se

[R] what's the best way to save global variables?

2005-09-15 Thread johan Faux
I am writing a kind of long program in R and I have some variables which I want to be globals. Where should I save them? I was thinking to create a function wich initialize all the global variables and then whenever I need them, I call this function. What if I create a file glob.R with var1<-

Re: [R] means comparison in R (post-hoc test)

2005-09-15 Thread Felipe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you, I think multcomp is very near to what I was looking for. However, I am still looking for a mean to obtain least-squares (adjusted) means and std. errors of these means, and performing comparisons among these means, as the LSMEANS do in SAS.

Re: [R] Graphics 'snapshots' in Linux?

2005-09-15 Thread Marc Schwartz (via MN)
On Thu, 2005-09-15 at 10:43 -0400, Tyler Smith wrote: > Hi, > > I'm working on a MEPIS (Debian-based Linux) computer, using the > emacs/ESS package to do my R work. I've got some plots that I label > interactively using the locate function. With the Windows GUI there is > an option to take a sn

Re: [R] Log scale in histograms

2005-09-15 Thread Jonathan Dushoff
> Can't find any information about this, but others must want to do it. > In the example below, the second plot has the desired log scale, > but the first does not. > Any help appreciated. Well, I had to solve this problem myself. I hope that doesn't prove I should have posted it. I did spen

Re: [R] Rcommander and simple chisquare

2005-09-15 Thread John Fox
Dear Christian, >From the Rcmdr menus, select "Statistics -> Summaries -> Frequency distributions", and check the "Chisquare goodness of fit test" box in the resulting dialog. This will bring up a dialog box where you can enter hypothesized probabilities from which expected frequencies will be cal

Re: [R] Rcommander and simple chisquare

2005-09-15 Thread John Fox
Dear Christian, >From the Rcmdr menus, select "Statistics -> Summaries -> Frequency distributions", and check the "Chisquare goodness of fit test" box in the resulting dialog. This will bring up a dialog box where you can enter hypothesized probabilities from which expected frequencies will be cal

[R] about cutree

2005-09-15 Thread Baoqiang Cao
Hi Everyone, I'm trying to use cutree to get the clusters after hclust. What I used is: mycluster<-cutree(cnclust,h=0.5) Now, my problem is, how can I get the actual clusters? Thanks! Best, Baoqiang Cao __ R-help@stat.math.ethz.ch mailing list https:

Re: [R] Combine vector of different length

2005-09-15 Thread Sundar Dorai-Raj
Kel Lam wrote: > Hi group, > > Is there a quick way to cbind vector of different > length? I should have checked out the previous > postings but somehow I can't access the list from CRAN > website. Thanks for your help. > > Regards, > Kelvin > Hi, Kelvin, The following thread gives a few

Re: [R] Splitting the string at the last sub-string

2005-09-15 Thread Tuszynski, Jaroslaw W.
Thanks for suggestions. I suspect the "regexpr" version will be better than my version, since I use it to find an string towards the end of a large (up to ~30Mb) test/XML file. Thanks again. Jarek \ Jarek Tuszynski, PhD.

Re: [R] Graphics 'snapshots' in Linux?

2005-09-15 Thread jfontain
Quoting Tyler Smith <[EMAIL PROTECTED]>: > Hi, > > I'm working on a MEPIS (Debian-based Linux) computer, using the > emacs/ESS package to do my R work. I've got some plots that I label > interactively using the locate function. With the Windows GUI there is > an option to take a snapshot of the gr

Re: [R] sequences; was: newbie question

2005-09-15 Thread Uwe Ligges
tom wright wrote: > Can someone tell me how I create a vector of numbers where the step > isn't 1? > i.e. x<-(0.0,0.5,1.0,1.5) Folks, please read the posting guide and basic documentation! Please use a sensible subject. Don't know how many of therelike questions I have read today... See

Re: [R] newbie question

2005-09-15 Thread vincent
tom wright a écrit : > Can someone tell me how I create a vector of numbers > where the step isn't 1? > i.e. x<-(0.0,0.5,1.0,1.5) seq(a, b, 0.5) ?seq hih __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Combine vector of different length

2005-09-15 Thread Kel Lam
Hi group, Is there a quick way to cbind vector of different length? I should have checked out the previous postings but somehow I can't access the list from CRAN website. Thanks for your help. Regards, Kelvin __ R-help@stat.math.ethz.ch mailing lis

Re: [R] make check FAILS -> Error code 1...comparing d-p-q-r-tests.Rout

2005-09-15 Thread Prof Brian Ripley
The problem is a known one and solved in R 2.1.1-patched. On your OS the result is not as accurate as most, but the tolerance set was too tight so the test failure is not something to worry about. Please install R-patched instead, as it has many bug fixes in place. On Thu, 15 Sep 2005, Courtne

Re: [R] newbie question

2005-09-15 Thread Sean Davis
On 9/15/05 6:42 AM, "tom wright" <[EMAIL PROTECTED]> wrote: > Can someone tell me how I create a vector of numbers where the step > isn't 1? > i.e. x<-(0.0,0.5,1.0,1.5) See ?seq Sean __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/m

[R] Graphics 'snapshots' in Linux?

2005-09-15 Thread Tyler Smith
Hi, I'm working on a MEPIS (Debian-based Linux) computer, using the emacs/ESS package to do my R work. I've got some plots that I label interactively using the locate function. With the Windows GUI there is an option to take a snapshot of the graphics output, saving it as an image file. Is the

Re: [R] Splitting the string at the last sub-string

2005-09-15 Thread Prof Brian Ripley
On Thu, 15 Sep 2005, Barry Rowlingson wrote: > Prof Brian Ripley wrote: > >>> substring(str, c(1, 26), c(25,length(str))) > > nchar(str) surely? Yes, or anything larger: I actually tested 1. > regexps can be rather slow though. Here's two functions: But that's not the way to do this repe

[R] newbie question

2005-09-15 Thread tom wright
Can someone tell me how I create a vector of numbers where the step isn't 1? i.e. x<-(0.0,0.5,1.0,1.5) Thanks tom __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-p

Re: [R] Remove vector elements from another vector

2005-09-15 Thread Petr Pikal
Hi On 13 Sep 2005 at 14:35, Karsten Luder wrote: > Hello, > > I have two vectors of different lengths. Fx a <- 1:9; b <- c(4, 5). > What is the best way to remove the elements in vector b from vector a > so that the result would be a vector with elements c(1,2,3,6,7,8,9)? > which(!a%in%b) [1] 1

Re: [R] Remove vector elements from another vector

2005-09-15 Thread Peter Dalgaard
"Karsten Luder" <[EMAIL PROTECTED]> writes: > Hello, > > I have two vectors of different lengths. Fx a <- 1:9; b <- c(4, 5). > What is the best way to remove the elements in vector b from vector a so > that the result would be a vector with elements c(1,2,3,6,7,8,9)? I think we had this on the

Re: [R] Remove vector elements from another vector

2005-09-15 Thread Dimitris Rizopoulos
look at function ?setdiff(), e.g., setdiff(a, b) I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www

Re: [R] Remove vector elements from another vector

2005-09-15 Thread Uwe Ligges
Karsten Luder wrote: > Hello, > > I have two vectors of different lengths. Fx a <- 1:9; b <- c(4, 5). > What is the best way to remove the elements in vector b from vector a so > that the result would be a vector with elements c(1,2,3,6,7,8,9)? setdiff(a, b) Uwe Ligges > Best regards, > Kal

[R] Remove vector elements from another vector

2005-09-15 Thread Karsten Luder
Hello, I have two vectors of different lengths. Fx a <- 1:9; b <- c(4, 5). What is the best way to remove the elements in vector b from vector a so that the result would be a vector with elements c(1,2,3,6,7,8,9)? Best regards, Kalle _

Re: [R] Splitting the string at the last sub-string

2005-09-15 Thread Barry Rowlingson
Prof Brian Ripley wrote: >>substring(str, c(1, 26), c(25,length(str))) nchar(str) surely? regexps can be rather slow though. Here's two functions: byRipley = function(str,sub){ lp=attr(regexpr(paste(".*",sub,sep=""),str),'match.length') return(substring(str, c(1, lp+1), c(lp,nchar(str

[R] make check FAILS -> Error code 1...comparing d-p-q-r-tests.Rout

2005-09-15 Thread Courtney Thomas
Under FreeBSD 5.3, attempting to properly install R-2.1.1, I get the following response when I. % make ;all finishes without error, then... % make check . . -- comparing d-p-q-r-tests.Rout to d-p-q-r-tests.Rout.save 1004

Re: [R] Splitting the string at the last sub-string

2005-09-15 Thread Prof Brian Ripley
> regexpr(".*e", str) [1] 1 attr(,"match.length") [1] 25 tells you you need > substring(str, c(1, 26), c(25,length(str))) [1] "Chance favors the prepare" "d mind" to reproduce your answer (I don't know what you want to do with the substring, but you included it in the first string, which is not

Re: [R] Graphical presentation of logistic regression

2005-09-15 Thread Frank E Harrell Jr
Jari Oksanen wrote: > On Wed, 2005-09-14 at 06:29 -0500, Frank E Harrell Jr wrote: > >>Beale, Colin wrote: >> >>>Hi, >>> >>>I wonder if anyone has written any code to implement the suggestions of >>>Smart et al (2004) in the Bulletin of the Ecological Society of America >>>for a new way of graphic

[R] Splitting the string at the last sub-string

2005-09-15 Thread Tuszynski, Jaroslaw W.
Hi, I need to split a string into 2 strings, with the split point defined by the last occurrence of some substring. I come up with some convoluted code to do so: str = "Chance favors the prepared mind" sub = "e" y = unlist(strsplit(str,sub)) z = cbind(paste(y[-length(y)], sub, sep="", collapse

Re: [R] means comparison in R (post-hoc test)

2005-09-15 Thread Dieter Menne
Felipe unileon.es> writes: > With the SAS/STAT, I generally used the MEANS (for comparison of > arithmetic means) and the LSMEANS (for adjusted means) statements of the > GLM procedure (I think it is equivalent to lm in R). They provided a lot > of tests: LSD, Duncan, Tukey-Kramer, Bonferroni, Sc

Re: [R] how to do sthg like "mat[!=(ind),]"

2005-09-15 Thread Uwe Ligges
Florence Combes wrote: > Hi > > I want to do something which seems straightforward, but I couldn't find the > way to do this. > I have a matrix called m for example, and a vector of values (let's call ind > this vector) which are indices of lines I don't want to keep. > > for example I have

Re: [R] stripped postings when not following the posting guide

2005-09-15 Thread Petr Pikal
Hi Martin It sometimes happens when I respond to somebodys question. When I post my own I try to follow the posting guide closely and do not use HTML crap at all. I just do not know how to recognize that my response has this unwanted residues and how to get rid of them before I actually find

[R] how to do sthg like "mat[!=(ind),]"

2005-09-15 Thread Florence Combes
Hi I want to do something which seems straightforward, but I couldn't find the way to do this. I have a matrix called m for example, and a vector of values (let's call ind this vector) which are indices of lines I don't want to keep. for example I have: > m v1 v2 v3 [1,] 1 4 7 [2,] 2 5 8 [3

Re: [R] Graphical presentation of logistic regression

2005-09-15 Thread Charles Annis, P.E.
If a graphical presentation provides improved insight then that is sufficient justification. The existence of "better" more precise methods, does not change that. I, too, sometimes use jitter() to avoid overplotting of observations, but I think the dot-plots in de la Cruz's code are even better.

Re: [R] Rcommander and simple chisquare

2005-09-15 Thread Philippe Grosjean
Hello, Just look at Statistics -> Contingency tables. There is an option for making the chi square test there. Best, Philippe Grosjean, ..<°}))>< ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aq

Re: [R] stripped postings when not following the posting guide

2005-09-15 Thread Martin Maechler
> "Petr" == Petr Pikal <[EMAIL PROTECTED]> > on Thu, 15 Sep 2005 13:27:43 +0200 writes: Petr> Hi Petr> Sorry, I am not sure why sometimes is a text from my answeres Petr> stripped off. Hi Petr, it's when you don't follow the posting guide _and_ simultaneously happen to f

Re: [R] if() command

2005-09-15 Thread Petr Pikal
Hi Sorry, I am not sure why sometimes is a text from my answeres stripped off. On 14 Sep 2005 at 14:09, Carlos Mauricio Cardeal Mende wrote: > Ok Petr, I run your suggestion and I got this message: > > > age<-sample(seq(10,50,10), 20, replace=T) > > > > if (age <=10) {group <- 1} els

[R] means comparison in R (post-hoc test)

2005-09-15 Thread Felipe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I have been using SAS for some time, and now I have discovered R. I am very happy with it, but I have not found out how to perform some of the multiple comparisons I was used to do in SAS. With the SAS/STAT, I generally used the MEANS (for compar

[R] Rcommander and simple chisquare

2005-09-15 Thread Christian Jost
In this years biostat teaching I will include Rcommander (it indeed simplifies syntax problems that makes students frequently miss the core statistical problems). But I could not find how to make a simple chisquare comparison between observed frequencies and expected frequencies (eg in genetics

Re: [R] How to sort data sets?

2005-09-15 Thread Uwe Ligges
Martin Lam wrote: > Hi, > > I was wondering if someone know how to sort a data set > by column. > I've tried sort() but without luck. I would think > there should be a function for it somewhere. An > example with the iris data set would be appreciated. See ?order. Uwe Ligges > Thanks, > > Ma

Re: [R] How to sort data sets?

2005-09-15 Thread vincent
see : order, sort.list, sort and rank hih __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] How to sort data sets?

2005-09-15 Thread Martin Lam
Hi, I was wondering if someone know how to sort a data set by column. I've tried sort() but without luck. I would think there should be a function for it somewhere. An example with the iris data set would be appreciated. Thanks, Martin __ R-help@stat.

Re: [R] Long lines with Sweave

2005-09-15 Thread Martin Maechler
> "Fritz" == Friedrich Leisch <[EMAIL PROTECTED]> > on Thu, 15 Sep 2005 10:36:43 +0200 writes: > On Thu, 15 Sep 2005 09:35:25 +0200, > Martin Maechler (MM) wrote: > "Jan" == Jan T Kim <[EMAIL PROTECTED]> > on Wed, 14 Sep 2005 14:46:20 +0100 writes: Jan> On Wed

Re: [R] Long lines with Sweave

2005-09-15 Thread Friedrich . Leisch
> On Thu, 15 Sep 2005 09:35:25 +0200, > Martin Maechler (MM) wrote: > "Jan" == Jan T Kim <[EMAIL PROTECTED]> > on Wed, 14 Sep 2005 14:46:20 +0100 writes: Jan> On Wed, Sep 14, 2005 at 02:49:56PM +0200, Henrik Andersson wrote: >>> Jan T. Kim wrote: >>> > On Wed, Sep 14, 20

Re: [R] R: deleting rows

2005-09-15 Thread Uwe Ligges
Clark Allan wrote: > hi all > > hopefully some one can help. > > > assume that i imported the following data into R (say the data frame is > called a) > > x1x2 x3 > 1 NA 3 > 1 2 NA > 1 2 3 > 3 NA 6 > 4 5 9 > 7 5 6 > 7 8

Re: [R] R: deleting rows

2005-09-15 Thread Dimitris Rizopoulos
look at function ?complete.cases(), e.g., a[complete.cases(a), ] will do the work in your case. I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel:

[R] R: deleting rows

2005-09-15 Thread Clark Allan
hi all hopefully some one can help. assume that i imported the following data into R (say the data frame is called a) x1 x2 x3 1 NA 3 1 2 NA 1 2 3 3 NA 6 4 5 9 7 5 6 7 8 9 NA 7 9 How can i c

Re: [R] if() command

2005-09-15 Thread Petr Pikal
__ R-help@stat.math.ethz.ch 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] Scan and Lists

2005-09-15 Thread Martin Maechler
> "Michael" == Michael Lefsky <[EMAIL PROTECTED]> > on Wed, 14 Sep 2005 15:06:17 -0600 writes: Michael> This may be a newbie question - although I did Michael> search for this error message in the archives and Michael> via google and didn't see this error: I know how usefu

Re: [R] Long lines with Sweave

2005-09-15 Thread Martin Maechler
> "Jan" == Jan T Kim <[EMAIL PROTECTED]> > on Wed, 14 Sep 2005 14:46:20 +0100 writes: Jan> On Wed, Sep 14, 2005 at 02:49:56PM +0200, Henrik Andersson wrote: >> Jan T. Kim wrote: >> > On Wed, Sep 14, 2005 at 10:14:59AM +0200, Henrik Andersson wrote: >> > >> >>I have

Re: [R] Graphical presentation of logistic regression

2005-09-15 Thread Jari Oksanen
On Wed, 2005-09-14 at 06:29 -0500, Frank E Harrell Jr wrote: > Beale, Colin wrote: > > Hi, > > > > I wonder if anyone has written any code to implement the suggestions of > > Smart et al (2004) in the Bulletin of the Ecological Society of America > > for a new way of graphically presenting the res