Re: [R] ROracle connection problem

2004-11-18 Thread Prof Brian Ripley
I guess the issue is the use of R-1.9.0 (2.0.1 is current). Please ask the person who provided you with a Windows binary for ROracle which version it worked with. On Thu, 18 Nov 2004, Andi Felber wrote: Hi, I found the same question in the mailing list already a few months ago - but there was

Re: [R] Redirect standard input and output of R

2004-11-18 Thread Uwe Ligges
Victor Robles wrote: Dear R-people! Im trying to write a C program that write to the standard input of R and read the standard output. I can perfectly read the R output, but Im not able of writing anything to R. This program really works with the cat UNIX command, but it does not work with R. What

Re: [R] Power sampling

2004-11-18 Thread Uwe Ligges
Thomas Schönhoff wrote: Hello, after a unsuccessful search in lists maliarchive I wonder how I could estimate the power of a sample size related to an unknown population. Given the following (fake))situation: I do have a database containing about 5 millions observations over 70 variables. I

Re: [R] OOP pkg compilation failure

2004-11-18 Thread Uwe Ligges
Gorden Jemwa wrote: Hi all, I'm trying to install the OOP package (http://www.omegahat.org/OOP) but having difficulty in resolving the errors generated during compilation. Googling doesn't seem to be giving much help. Can anyone please help. Below is the transcript of what I get from my

Re[2]: [R] Where has the Debian respository gone?

2004-11-18 Thread stats
Hello Dirk, Monday, November 15, 2004, 1:35:27 AM, you wrote: DE On Sun, Nov 14, 2004 at 10:53:42PM +0100, Christoph Bier wrote: Hi all! Did I miss something or is it just a temporary problem? Where has the Debian respository http://cran.r-project.org woody/main Packages resp.

[R] Chinese character

2004-11-18 Thread john zhao
Hello R-help team, I am a R user in China. I just downloaded the latest R which is R2001 for Windows. This new version can not store Chinese character which the previous version R 1.9.1 does. Specifically when I enter x-²âÊÔ then type x, I got x [1] \262\342\312\324 . Please kindly give me a

Re: [R] R/S-related projects on Sourceforge? Trove Categorization

2004-11-18 Thread Witold Eryk Wolski
Hi, This are the project which I have extracted from all your mails. 1. http://sourceforge.net/projects/rpgsql/ R PostgreSQL Interface 2. http://sourceforge.net/projects/r-spatial/ R package for spatial data classes 3. http://sourceforge.net/projects/rpy/ RPy (R from Python) 4.

Fwd: Re: [R] 3d scatter plot with drop line

2004-11-18 Thread Robin Hankin
Hi try this: p3dpairs - function(x,x1, xlim=NULL,ylim=NULL,zlim=NULL,col=par(col), pch=par(pch), cex=par(cex), ...){ if(is.matrix(x)){ z - x[,3] y - x[,2] x - x[,1] } if(is.matrix(x1)){ z1 - x1[,3] y1 - x1[,2] x1 - x1[,1] }

RE: [R] summary.lme() vs. anova.lme()

2004-11-18 Thread Dan Bebber
For anyone following this thread in the future: Following Prof. Ripley's advice, I compared models fitted with ML, with and without treatment as a predictor: anova(mconc.lme1,mconc.lme2) Model df AIC BIC logLik Test L.Ratio p-value mconc.lme1 1 10 -1366.184

Re: [R] Redirect standard input and output of R

2004-11-18 Thread Paul Roebuck
On Wed, 17 Nov 2004, Victor Robles wrote: I'm trying to write a C program that write to the standard input of R and read the standard output. I can perfectly read the R output, but I'm not able of writing anything to R. [SNIP C code] Several years ago, I wrote some software that used S-plus

RE: [R-gui] RE: [R] The hidden costs of GPL software?

2004-11-18 Thread Philippe Grosjean
John W. Eaton wrote: On 17-Nov-2004, Philippe Grosjean [EMAIL PROTECTED] wrote: | - There is no possibility to make a commercial GUI for R (thanks to | the GPL), This is false. Please don't confuse commercial (Red Hat and SuSE GNU/Linux distributions are commercial software) with

Re: [R] Power sampling

2004-11-18 Thread Thomas Schnhoff
Hello Uwe, Uwe Ligges schrieb: Thomas Schönhoff wrote: You have to tell us for which test you are going to calculate the power ... (and there might be nothing, since calculating the power precisely is not always that easy). Given my example from the first message I asked for a function which

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Tim Cutts
On 17 Nov 2004, at 2:27 pm, Patrick Burns wrote: I think Ted Harding was on the mark when he said that it is the help system that needs enhancement. I can imagine a system that gets the user to the right function and then helps fill in the arguments; all of the time pointing them towards the

Re: [R] changing (core) function argument defaults?

2004-11-18 Thread Peter Dalgaard
Berton Gunter [EMAIL PROTECTED] writes: Yes, I think for all practical purposes it (usually?) is. Here's an example. Suppose I wish to change the default constant argument of mad from 1.48 to 2. Then z-formals(mad) z$constant-2 mad-as.function(c(z,body(mad))) Actually,

[R] Lexical Scoping: eval(expr,envir=)

2004-11-18 Thread Eric Lecoutre
Hi R-listers, I am trying to better undertand what we would call functional paradigm use of S/R to better map my programming activities in other languages. This little function is aimed to create an object (at the end end, it would have it's own class): -- myObject =function(){ list(

RE: [R] AYUDA

2004-11-18 Thread Trujillo L.
Hi Brian You could check the R-Documentation: functions KalmanLike, KalmanRun, KalmanSmooth, KalmanForecast and makeARIMA. Leonardo Trujillo -- Leonardo Trujillo Southampton Statistical Sciences Research - S3RI

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Tim Cutts
On 18 Nov 2004, at 10:27 am, Tim Cutts wrote: The R Intro PDF is good, but it would be nice if it were integrated better, with hyperlinks to the reference documentation, or to other parts of the introduction, for those platforms that support such things I should correct myself here, and note

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Michael Grant
H, interesting thread and minds will not be changed but regarding GUIs...I thought S (aka R) was a PROGRAMMING LANGUAGE with a statistical and numerical slant, and not a statistics application. ;O) Certainly there is an important place for GUIs but I believe that it is very much

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Thomas Schnhoff
Tim Cutts schrieb: Any GUI to R could (and should) be able to store the command line equivalent to what it has just done, to satisfy the reproducible criterion above, but I suspect it could still lead to some pretty shoddy work being done by careless and lazy scientists, and we get enough of

Re: [R] Lexical Scoping: eval(expr,envir=)

2004-11-18 Thread francoisromain
Hello, I'm quite new to the objet-oriented vision of life in R, but I think you are looking for ?setClass or other functions in the methods package. Selon Eric Lecoutre [EMAIL PROTECTED]: Hi R-listers, I am trying to better undertand what we would call functional paradigm use of S/R to

Re: [R] Lexical Scoping: eval(expr,envir=)

2004-11-18 Thread Dimitris Rizopoulos
Hi Eric, this my novice point of view (since I'm still learning R) about what is happening: First, `tmp' is not an evironment. Check: is.environment(tmp) [1] FALSE If you'd like to create an environment based on tmp then a simple way could be: e1 - new.env() for(i in seq(along=tmp))

[R] Errors checking a library

2004-11-18 Thread michael watson (IAH-C)
Hi I am writing an R library. The documentation for one of my functions includes an example that I *know* works - simply cut and paste into R on either Windows and Linux and it works perfectly, no errors or warnings, nothing, nyet. However, when I run R CMD check on the library, I get an error.

Re: [R] Lexical Scoping: eval(expr,envir=)

2004-11-18 Thread Eric Lecoutre
Hi again, In a sense, I have answered myself my question. The functional paradigm is very well described in the article lexical scope and Statistical computing by Ross Ihaka and Robert Gentleman. And I did have read it several times... Solution is function closure. And following code will work as

Re: [R] Errors checking a library

2004-11-18 Thread Uwe Ligges
michael watson (IAH-C) wrote: Hi I am writing an R library. The documentation for one of my functions includes an example that I *know* works - simply cut and paste into R on either Windows and Linux and it works perfectly, no errors or warnings, nothing, nyet. However, when I run R CMD check on

Re: [R] Lexical Scoping: eval(expr,envir=)

2004-11-18 Thread Duncan Murdoch
On Thu, 18 Nov 2004 12:05:34 +0100, Eric Lecoutre [EMAIL PROTECTED] wrote : Hi R-listers, I am trying to better undertand what we would call functional paradigm use of S/R to better map my programming activities in other languages. This little function is aimed to create an object (at the end

[R] JGR Tablet PC

2004-11-18 Thread White, Charles E WRAIR-Wash DC
(1) A minor point; the JGR console recognizes when the input panel (think tool bar) is docked at the top of the screen and acts appropriately. However, the editor opens under the input panel. I can close the input panel, move the editor, and open the input panel to continue work. On the other

Re: [R] Errors checking a library

2004-11-18 Thread Roger Bivand
On Thu, 18 Nov 2004, michael watson (IAH-C) wrote: Hi I am writing an R library. The documentation for one of my functions includes an example that I *know* works - simply cut and paste into R on either Windows and Linux and it works perfectly, no errors or warnings, nothing, nyet.

[R] Informix database

2004-11-18 Thread Yasser El-Zein
We use Informix database. I was able to connect to the database with S-PLUS by using its CONNECT/Java through the JDBC driver. How can I connect to Informix with R, wither using JDBC or any other method? we run Linux so I prefer a method other than ODBC. Thankx for the help

Re: [R] Errors checking a library

2004-11-18 Thread Peter Dalgaard
michael watson (IAH-C) [EMAIL PROTECTED] writes: I am writing an R library. A whole library? Shouldn't you try a package first? The documentation for one of my functions includes an example that I *know* works - simply cut and paste into R on either Windows and Linux and it works

[R] how to rewrite this without a loop ?

2004-11-18 Thread Stijn Lievens
Dear Rexperts, First of all let me say that R is a wonderful and useful piece of software. The only thing is that sometimes it takes me a long time to find out how something can be done, especially when aiming to write compact (and efficient) code. For instance, I have the following function

[R] Re: Informix database

2004-11-18 Thread Vito Ricci
Hi, see DBI: R/S-Plus Database Interface, maybe it could help you: http://stat.bell-labs.com/RS-DBI http://www.ci.tuwien.ac.at/Conferences/DSC-2001/Proceedings/HothornJamesRipley.pdf I found: Other Database Connections from S-Plus Depending on the platform it's running, S-Plus provides

Re: [R] Lexical Scoping: eval(expr,envir=)

2004-11-18 Thread Gabor Grothendieck
Eric Lecoutre lecoutre at stat.ucl.ac.be writes: : : Hi R-listers, : : I am trying to better undertand what we would call functional paradigm : use of S/R to better map my programming activities in other languages. : : This little function is aimed to create an object (at the end end, it

[R] Re: Informix database

2004-11-18 Thread Yasser El-Zein
There is no DBI implementation for Informix. I would appreciate some pointers to R's Java extension, if exists. I already have a solution for S-PLUS. I am interested in finding one for R to compare the two, otherwise my company will go with S-PLUS. On Thu, 18 Nov 2004 15:45:25 +0100 (CET), Vito

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Mike Prager
At 11/18/2004 07:01 AM Thursday, Thomas Schönhoff wrote: To sum up, what I am in need to is an extensive example based help-system, focused on how to do things in R. In parts this is already there, i.e. SimpleR from Verzani (contributed docs area) etc. Hopefully I can contribute to this in

Re: [R] Chinese character

2004-11-18 Thread Prof Brian Ripley
On Thu, 18 Nov 2004, john zhao wrote: Hello R-help team, I am a R user in China. I just downloaded the latest R which is R2001 for Windows. This new version can not store Chinese character which the previous version R 1.9.1 does. Specifically when I enter The previous version was 2.0.0. x-²âÊÔ

Re: [R] Where has the Debian respository gone?

2004-11-18 Thread Dirk Eddelbuettel
On Thu, Nov 18, 2004 at 08:52:38AM +, stats wrote: Hello Dirk, Monday, November 15, 2004, 1:35:27 AM, you wrote: DE On Sun, Nov 14, 2004 at 10:53:42PM +0100, Christoph Bier wrote: Hi all! Did I miss something or is it just a temporary problem? Where has the Debian respository

Re: [R] Informix database

2004-11-18 Thread Prof Brian Ripley
On Thu, 18 Nov 2004, Yasser El-Zein wrote: We use Informix database. I was able to connect to the database with S-PLUS by using its CONNECT/Java through the JDBC driver. How can I connect to Informix with R, wither using JDBC or any other method? we run Linux so I prefer a method other than ODBC.

RE: [R-gui] Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Philippe Grosjean
Hello, I appreciate many comments and the various points of view, especially because there are a couple of clear explanations why several people do not need (or even do not want) a GUI for R! Another part of the discussion seems to switch to the never-ending question of what kind of GUI... which

Re: [R] Informix database

2004-11-18 Thread Yasser El-Zein
The Informix linux ODBC driver is not free, isn't it? Shoudl I be worried of ODBC performance on linux? On Thu, 18 Nov 2004 15:22:56 + (GMT), Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 18 Nov 2004, Yasser El-Zein wrote: We use Informix database. I was able to connect to the

Re: [R] how to rewrite this without a loop ?

2004-11-18 Thread Stijn Lievens
Stijn Lievens wrote: Dear Rexperts, First of all let me say that R is a wonderful and useful piece of software. The only thing is that sometimes it takes me a long time to find out how something can be done, especially when aiming to write compact (and efficient) code. For instance, I have the

RE: [R-gui] RE: [R] The hidden costs of GPL software?

2004-11-18 Thread Thomas Lumley
On Thu, 18 Nov 2004, Philippe Grosjean wrote: John W. Eaton wrote: On 17-Nov-2004, Philippe Grosjean [EMAIL PROTECTED] wrote: | - There is no possibility to make a commercial GUI for R (thanks to | the GPL), This is false. Please don't confuse commercial (Red Hat and SuSE GNU/Linux distributions

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Marc Schwartz
On Thu, 2004-11-18 at 03:24 -0800, Michael Grant wrote: H, interesting thread and minds will not be changed but regarding GUIs...I thought S (aka R) was a PROGRAMMING LANGUAGE with a statistical and numerical slant, and not a statistics application. ;O) From the R web site: R is a

Re: [R] Re: Informix database

2004-11-18 Thread David Whiting
Yasser El-Zein [EMAIL PROTECTED] writes: There is no DBI implementation for Informix. I would appreciate some pointers to R's Java extension, if exists. I already have a solution for S-PLUS. I am interested in finding one for R to compare the two, otherwise my company will go with S-PLUS.

Re: [R] how to rewrite this without a loop ?

2004-11-18 Thread Thomas Lumley
On Thu, 18 Nov 2004, Stijn Lievens wrote: code add.fun - function(perf.data) { ss - 0 for (i in 0:29) { ss - ss + cor(subset(perf.data, dataset == i)[3], subset(perf.data, dataset == i)[7], method = kendall) } ss } /code As one can see this function uses a for-loop. Now chapter 9 of

[R] hashing using named lists

2004-11-18 Thread ulas karaoz
hi all, I am trying to use named list to hash a bunch of vector by name, for instance: test = list() test$name = c(1,2,3) the problem is that when i try to get the values back by using the name, the matching isn't done in an exact way, so test$na is not NULL. is there a way around this? Why by

[R] Re: The hidden costs of GPL software?

2004-11-18 Thread Tiago R Magalhaes
My background: I am a biologist coming to R via Bioconductor. I have no computer background in computer sciences and only basic undergraduate training level in statistics. I have used R with great pleasure and great pains. The most difficult thing is to know what functions to use - sometimes I

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread David Forrest
On Wed, 17 Nov 2004, Mike Prager wrote: ... Using CLI software, an infrequent user has trouble remembering the known functions needed and trouble finding new ones (especially as that user gets older). What might help is an added help facility more oriented towards tasks, rather than

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Ted Harding
On 17-Nov-04 Patrick Burns wrote: [...] Perhaps an overly harsh summary of some of Ted Harding's statements is: You can make a truck easier to get into by taking off the wheels, but that doesn't make it more useful. Yes, perhaps overly harsh ... but if you had said instead by deflating the

Re: [R] hashing using named lists

2004-11-18 Thread Roger D. Peng
You could try using environments: e - new.env(hash = TRUE) e$new - 1:4 ls(e) [1] new e$new [1] 1 2 3 4 e$ne NULL -roger ulas karaoz wrote: hi all, I am trying to use named list to hash a bunch of vector by name, for instance: test = list() test$name = c(1,2,3) the problem is that when i try

Re: [R] hashing using named lists

2004-11-18 Thread Prof Brian Ripley
On Thu, 18 Nov 2004, ulas karaoz wrote: hi all, I am trying to use named list to hash a bunch of vector by name, for instance: test = list() test$name = c(1,2,3) the problem is that when i try to get the values back by using the name, the matching isn't done in an exact way, so test$na is not

RE: [R] Re: The hidden costs of GPL software?

2004-11-18 Thread Arne.Muller
[...] I am a biologist coming to R via Bioconductor. I have no computer background in computer sciences and only basic undergraduate training level in statistics. I have used R with great pleasure and great pains. The most difficult thing is to know what functions to use - sometimes I

Re: [R] hashing using named lists

2004-11-18 Thread Barry Rowlingson
ulas karaoz wrote: is there a way around this? yes... Why by default all.equal.list doesnt require an exact match? because we're lazy? :) How can I do hashing in R? you can explicitly test the names for equality, eg with this 2-element list: x $name [1] 1 2 3 $n [1] 3 2 1 You can do:

Re: [R] R/S-related projects on Sourceforge? Trove Categorization - GDAL

2004-11-18 Thread Martin Maechler
Dirk == Dirk Eddelbuettel [EMAIL PROTECTED] on Wed, 17 Nov 2004 12:25:16 -0600 writes: Dirk On Wed, Nov 17, 2004 at 11:52:57AM -0500, Dirk [EMAIL PROTECTED] wrote: Gretl, RPad and RMetrics, plus Ernesto's FLR and fsap make five. Dirk Isn't RMetrics at rmetrics.org at

Re: [R] hashing using named lists

2004-11-18 Thread Tony Plate
Use match() for exact matching, i.e., test[[match(name, names(test))]] Yes, it is more cumbersome. This partial matching is considered by some to be a design fault, but changing it would break too many programs that depend upon it. I don't understand your question about all.equal.list() -- it

RE: [R] hashing using named lists

2004-11-18 Thread Huntsinger, Reid
It seems that that behavior is hard-coded in the subscript code, but I bet you could fix it easily by changing the call to get1index offset = get1index(CAR(subs), getAttrib(x, R_NamesSymbol), length(x), /*partial ok*/TRUE, i); in src/main/subset.c (line 762 I think,

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread Frank E Harrell Jr
Mike Prager wrote: At 11/18/2004 07:01 AM Thursday, Thomas Schönhoff wrote: To sum up, what I am in need to is an extensive example based help-system, focused on how to do things in R. In parts this is already there, i.e. SimpleR from Verzani (contributed docs area) etc. Hopefully I can

[R] Re: The hidden costs of R?

2004-11-18 Thread Michael A. Miller
Thomas == Thomas Schönhoff [EMAIL PROTECTED] writes: To sum up, what I am in need to is an extensive example based help-system, focused on how to do things in R. In parts this is already there, i.e. SimpleR from Verzani (contributed docs area) etc. I have a nice set of

[R] gibbs sampling for mixture of normals

2004-11-18 Thread matteo ruggiero
hi i'm looking for a gibbs sampling algorithm for R for the case of mixture of K normals, and in particular for the case of bivariate normals. i'd be grateful if anyone could send its own R-routine, at least for the univariate case. thank you in advance matteo

[R] SJava

2004-11-18 Thread Yasser El-Zein
I failed to build SJava dure to teh error below. Any ideas? # R CMD INSTALL -c SJava_0.68-0.tar.gz * Installing *source* package 'SJava' ... checking for java... /opt/j2sdk1.4.2_06//bin/java Java VM /opt/j2sdk1.4.2_06//bin/java checking for javah... /opt/j2sdk1.4.2_06//bin/javah Looking in

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread David Forrest
On Thu, 18 Nov 2004, Frank E Harrell Jr wrote: ... ... I second all of that. What you are describing Mike could be done with a community-maintained wiki, with easy to add hyperlinks to other sites. There is a wiki at http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl but it doesn't seem to get

RE: [R] hashing using named lists

2004-11-18 Thread Prof Brian Ripley
On Thu, 18 Nov 2004, Huntsinger, Reid wrote: It seems that that behavior is hard-coded in the subscript code, the behaviour being partial matching? but I bet you could fix it easily by changing the call to get1index offset = get1index(CAR(subs), getAttrib(x, R_NamesSymbol),

Re: [R] SJava

2004-11-18 Thread Prof Brian Ripley
Seem pretty straightforward to me: either gpp is not a C++ compiler or it does not work (possibly because LD_LIBRARY_PATH does not contain its run-time libraries). On Thu, 18 Nov 2004, Yasser El-Zein wrote: I failed to build SJava dure to teh error below. Any ideas? # R CMD INSTALL -c

Re: [R] SJava

2004-11-18 Thread Yasser El-Zein
Thank you Prof Ripley for your guidance. I re-installed gpp and SJava installed correctly. I am now running into this problem: When I load the SJava library I get: library(SJava) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library

RE: [R] The hidden costs of GPL software?

2004-11-18 Thread Liaw, Andy
From: David Forrest On Wed, 17 Nov 2004, Mike Prager wrote: ... Using CLI software, an infrequent user has trouble remembering the known functions needed and trouble finding new ones (especially as that user gets older). What might help is an added help facility more oriented

[R] Advanced R programming course in North Carolina (RTP area) ?

2004-11-18 Thread paul king
Anyone knows of an upcomming Advanced R programming course in NC? Would like to take this class before my project ends in December. Thanks, Paul __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] SJava

2004-11-18 Thread Prof Brian Ripley
You need to ensure that libRSNativeJava.so is in your LD_LIBRARY_PATH: last time I looked SJava came with scripts to achieve this, and I suspect you need to read the documentation about them. As a further note, these are programming questions about a non-R product, and R-help is _really not_

[R] Off Topic: GSL installation for Windows

2004-11-18 Thread Laura Holt
Hi R People! Has anyone installed the Gnu Scientific Library on a Windows system, please? I'm having a dreadful time with that. Any advance would be much appreciated. Sincerely, Laura Holt mailto: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list

[R] Enormous Datasets

2004-11-18 Thread Thomas W Volscho
Dear List, I have some projects where I use enormous datasets. For instance, the 5% PUMS microdata from the Census Bureau. After deleting cases I may have a dataset with 7 million+ rows and 50+ columns. Will R handle a datafile of this size? If so, how? Thank you in advance, Tom Volscho

Re[2]: [R] Where has the Debian respository gone?

2004-11-18 Thread Chris Evans
Hello Dirk, Thursday, November 18, 2004, 3:18:40 PM, you wrote: DE On Thu, Nov 18, 2004 at 08:52:38AM +, stats wrote: I'm a bit puzzled. I had deb http://cran.r-project.org/bin/linux/debian woody main in /etc/apt/sources.list and had hoped, perhaps rather unwisely, that this

[R] How to calculate the stratified means in a data frame?

2004-11-18 Thread Frank Duan
Dear R people, I have a simple question to ask. Suppose I have a data.frame with two variables: one factor (x) and one numeric (y), I want to calculate the mean of y for each value of x. Although it's easy to do it within a for a loop, I believe there may be a concise way by using some kinds of

[R] Time series plot orientation

2004-11-18 Thread Costas Vorlow
Hello, I am trying to rotate by 90 degrees a time series plot. So I need the time axis to be the vertical one. Is there an easy way? I couldn't guess anything from the help pages. Apologies for a silly question. Regards, Costas -- =

Re: [R] Off Topic: GSL installation for Windows

2004-11-18 Thread Prof Brian Ripley
See the ReadMe (which should be the first place to look) at http://cran.r-project.org/bin/windows/contrib/2.0/@ReadMe It's easy once you have gsl-1.5 built (the gnuwin32 project's version is too old), but getting gsl-1.5 built is not straightforward. On Thu, 18 Nov 2004, Laura Holt wrote: Has

Re: [R] How to calculate the stratified means in a data frame?

2004-11-18 Thread Prof Brian Ripley
On Thu, 18 Nov 2004, Frank Duan wrote: I have a simple question to ask. Suppose I have a data.frame with two variables: one factor (x) and one numeric (y), I want to calculate the mean of y for each value of x. Although it's easy to do it within a for a loop, I believe there may be a concise way

Re: [R] Enormous Datasets

2004-11-18 Thread Peter Dalgaard
Thomas W Volscho [EMAIL PROTECTED] writes: Dear List, I have some projects where I use enormous datasets. For instance, the 5% PUMS microdata from the Census Bureau. After deleting cases I may have a dataset with 7 million+ rows and 50+ columns. Will R handle a datafile of this size? If so,

RE: [R] Enormous Datasets

2004-11-18 Thread Vadim Ogranovich
Very unlikely R will be able to handle this. The problems are: * the data set may simply not fit into the memory * it will take forever to read from the ASCII file * any meaningful analysis of a dataset in R typically require 5 - 10 times more memory than the size of the dataset (unless you are a

Re: [R] How to calculate the stratified means in a data frame?

2004-11-18 Thread Peter Dalgaard
Frank Duan [EMAIL PROTECTED] writes: Dear R people, I have a simple question to ask. Suppose I have a data.frame with two variables: one factor (x) and one numeric (y), I want to calculate the mean of y for each value of x. Although it's easy to do it within a for a loop, I believe there

Re: [R] How to calculate the stratified means in a data frame?

2004-11-18 Thread Frank Duan
Got it. Many thanks. On Thu, 18 Nov 2004 13:10:53 -0800, Jeff Laake [EMAIL PROTECTED] wrote: look at by Frank Duan wrote: Dear R people, I have a simple question to ask. Suppose I have a data.frame with two variables: one factor (x) and one numeric (y), I want to calculate the

Re: [R] How to calculate the stratified means in a data frame?

2004-11-18 Thread Marc Schwartz
On Thu, 2004-11-18 at 15:34 -0500, Frank Duan wrote: Dear R people, I have a simple question to ask. Suppose I have a data.frame with two variables: one factor (x) and one numeric (y), I want to calculate the mean of y for each value of x. Although it's easy to do it within a for a loop, I

RE: [R] How to calculate the stratified means in a data frame?

2004-11-18 Thread Liaw, Andy
See ?tapply or ?by. Andy From: Frank Duan Dear R people, I have a simple question to ask. Suppose I have a data.frame with two variables: one factor (x) and one numeric (y), I want to calculate the mean of y for each value of x. Although it's easy to do it within a for a loop, I

[R] adjusting the map of France to 1830

2004-11-18 Thread Michael Friendly
I'm doing some analyses of historical data from France in 1830 on 'moral statistics' that I'd like to show on a map. I've done most of my analyses in SAS, but a few things would work better in R. To do this, I have to adjust the modern map, library(maps) map('france') to adjust for changes in

RE: [R] Enormous Datasets

2004-11-18 Thread Liaw, Andy
It depends on what you want to do with that data in R. If you want to play with the whole data, just storing it in R will require more than 2.6GB of memory (assuming all data are numeric and are stored as doubles): 7e6 * 50 * 8 / 1024^2 [1] 2670.288 That's not impossible, but you'll need to be

[R] Re: R package installation

2004-11-18 Thread Marco Chiarandini
Dear Prof. Johnson, sorry for posting the reply so late. I am already using FINK. But you were right, R was looking for g77 and the gcc libraries under the MacOs distributions. Rather than creating symbolic links I updated FLIBS in /Library/Frameworks/R.framework/Resources/etc/Makeconf so that

[R] The hidden costs of GPL software?

2004-11-18 Thread John Maindonald
The author of the article says nothing about the large number of hours and weeks that he surely spent learning S-plus! There should be attention to the costs that arise from a wrong or inappropriate analysis, perhaps because the software that is in use makes it difficult to do anything better,

RE: Re: [R] 3d scatter plot with drop line

2004-11-18 Thread davidr
Very nice! I noticed that you wrote the function to drop points to any surface. Is it possible to add the surface to the plot as a translucent surface, so the points and drop lines still show? David L. Reiner -Original Message- From: Robin Hankin [mailto:[EMAIL PROTECTED] Sent:

[R] Memory problems...leaky?

2004-11-18 Thread Sam Yeaman
Hi list folks, I have been trying to figure out how I can run the script that I have included below. I have 1.2 gigs of memory on the computer, but this is not enough, given the size of the input datasets. The input matrix ('input') is a little under 2400 x 2900 cells, and is about 60 megs when

Re: [R] Where has the Debian respository gone?

2004-11-18 Thread Dirk Eddelbuettel
Chris, On Thu, Nov 18, 2004 at 08:21:04PM +, Chris Evans wrote: DE More than advice, we need a volunteer to backport the current R package(s) DE for Debian to the Debian stable distribution. As I said, testing and DE unstable are taken care of (and yes, testing is still lagging because

[R] implementing a loop using by(x,x$factor,FUN)

2004-11-18 Thread Mohamed Abdolell
Hi, I'm writing some R code that requires a massive amount of looping and would ideally like to write it so that it avoid the use of for loop ... however I'm having some trouble. Very briefly, the basic idea is to implement a binary partitioning algorithm to determine the optimal cutpoint based

Re: [R] adjusting the map of France to 1830

2004-11-18 Thread Stephane DRAY
Hello. I do not know if you can merge polygons, but you can select easily: departements=map('france',namesonly=T) # returns a vector of names of regions map('france',regions=departements[1:20],namesonly=T) # use what you need with regions argument Hope this helps, At 16:29 18/11/2004, Michael

Re: [R] adjusting the map of France to 1830

2004-11-18 Thread Ray Brownrigg
At 16:29 18/11/2004, Michael Friendly wrote: I'm doing some analyses of historical data from France in 1830 on 'moral statistics' that I'd like to show on a map. I've done most of my analyses in SAS, but a few things would work better in R. To do this, I have to adjust the modern map,

[R] Date time Differences

2004-11-18 Thread Mark R Laflamme, MD
Greetings from an R newbie Table imported with 4 columns containing Dates and Times, I desire to determine the differences between said columns Have loaded the base and chron packages for R commander. Have tried to use format but without success. Have tried the Postix commands but error

[R] Date Time differences

2004-11-18 Thread Mark R Laflamme, MD
Greetings from an R newbie Table imported with 4 columns containing Dates and Times, I desire to determine the differences between said columns Have loaded the base and chron packages for R commander. Have tried to use format but without success. Have tried the Postix commands but error

Re: [R] adjusting the map of France to 1830

2004-11-18 Thread Stephane DRAY
At 19:07 18/11/2004, Ray Brownrigg wrote: At 16:29 18/11/2004, Michael Friendly wrote: I'm doing some analyses of historical data from France in 1830 on 'moral statistics' that I'd like to show on a map. I've done most of my analyses in SAS, but a few things would work better in R. To do

[R] Creating logical value from the difference of two absolute values

2004-11-18 Thread Nathan Leon Pace, MD, MStat
Hi, Using R 2.0.1 on Mac g5 running Mac OS X 10.3.6. I would expect that abs(.7 - .5) = abs(.3 - .5) should be returned TRUE. Instead www - abs(.7 - .5) = abs(.3 - .5) www [1] FALSE Is this a result of floating point or the implementation of abs or something else? In a function I need to

RE: [R] Creating logical value from the difference of two absolut e values

2004-11-18 Thread Liaw, Andy
It's imprecision of floating point representation of real numbers: print(abs(.7 - .5) - abs(.3 - .5), digit=20) [1] -5.551115123125783e-17 one of the first things to learn about programming: be extremely careful testing for equality of floating point numbers. Andy From: Nathan Leon Pace,

[R] how to get to interesting part of pattern match

2004-11-18 Thread Vadim Ogranovich
Hi, I am looking for a way to extract an interesting part of the match to a regular expression. For example the pattern [./](*.) matches a substring that begins with either . or / followed by anything. I am interested in this anything w/o the . or / prefix. If say I match the pattern against

[R] NLME plottting and Confidence Intervals

2004-11-18 Thread Greg Tarpinian
All, I have been learning about mixed models and have been able to successfully use lme( ) and nlme( ) to fit some simple linear and 4PL logistic models. As a relative newbie I am at a loss as to how I can do the following: (1) Import a SAS dataset with DATE9. formatted time values and get

Re: [R] how to get to interesting part of pattern match

2004-11-18 Thread Jean Eid
sub(.*/, , abc/foo) [1] foo Jean On Thu, 18 Nov 2004, Vadim Ogranovich wrote: Hi, I am looking for a way to extract an interesting part of the match to a regular expression. For example the pattern [./](*.) matches a substring that begins with either . or / followed by anything. I am

RE: [R] The hidden costs of GPL software?

2004-11-18 Thread John Fox
Dear list members, This has been a stimulating discussion, now spread over three lists. Although I'd like to address issues that have been raised on all three lists, I expect that more or less everyone reads r-help, so I'm just posting these comments there. (1) As everyone else, I've had

Re: [R] how to get to interesting part of pattern match

2004-11-18 Thread Gabor Grothendieck
Vadim Ogranovich vograno at evafunds.com writes: : I am looking for a way to extract an interesting part of the match to : a regular expression. For example the pattern [./](*.) matches a : substring that begins with either . or / followed by anything. I am : interested in this anything w/o the

Re: [R] Date time Differences

2004-11-18 Thread Gabor Grothendieck
Mark R Laflamme, MD mlaflamme at regenstrief.org writes: : : Greetings from an R newbie : : Table imported with 4 columns containing Dates and Times, I desire to : determine the differences between said columns : Have loaded the base and chron packages for R commander. Have tried to : use

  1   2   >