Re: [R] Re:How to create a R -application

2004-10-08 Thread Petr Pikal
On 7 Oct 2004 at 17:49, Adaikalavan Ramasamy wrote: This is not answering your question directly. I usually use the BATCH command for running R non-interactively. You can also use commandArgs() to get any arguments from the command line. For more information, see help(BATCH) or

[R] reading partial file content

2004-10-08 Thread Marc Mamin
hi, I'd like to extract data from very large files (ca 1-2 Mio lines), and I already know which lines of these files I need. Is there a way to do it without filling the memory with the whole file content? The lines I need are randomly distributed within the files. Thanks, Marc

Re: [R] reading partial file content

2004-10-08 Thread Prof Brian Ripley
Please do not tack your question on to a different one (as the posting guide does ask you not to). On Fri, 8 Oct 2004, Marc Mamin wrote: hi, I'd like to extract data from very large files (ca 1-2 Mio lines), and I already know which lines of these files I need. Is there a way to do it

Re: [R] Read.Table Reading a Text file

2004-10-08 Thread Petr Pikal
On 7 Oct 2004 at 20:18, Kunal Shetty wrote: Dear R users and Helpers I am beginner with using R and interested in carrying out certain task for my statistical research. I am reading data for a text file, which could contain data in following pattern x y 8 10 1114 16

RE: [R] Read.Table Reading a Text file

2004-10-08 Thread Petr Pikal
Hi you really should spend some time to go through introductory documentation and do some examples provided. snip On 8 Oct 2004 at 3:15, Kunal Shetty wrote: you probably read it by read.table without saying/specifying header=TRUE so your X and y is included to your data not as names but as

RE: [R] library in R2.0.0 - summary

2004-10-08 Thread Petr Pikal
Thanks to Andy Liaw and prof.Ripley for their comments. I finally managed my function set work without need for proper installation. However I must try it sometimes. I got tools from http://www.murdoch-sutherland.com/Rtools/tools.zip but I did not install Pearl yet. I tried make pkg-fun

[R] Bug in nlme under version 2.0.0

2004-10-08 Thread Søren Højsgaard
Dear all, Under version 2.0.0, I get the error below when calling summary() on a lme-object, whereas it works under version 1.9.1 (well, it did last week, before I upgraded). Any help on this? Thx in advance Søren library(nlme) mf - formula(Weight~Cu*(Time+I(Time^2)+I(Time^3))) lme1 -

[R] Evaluating Assignment-Operator R 2.0.0

2004-10-08 Thread friedemann
Dear Helpers, in which way I have to use the assignment-operator evaluating left to right with R 2.0.0? With R 2.0.0 (w2k-installation) the superassignment operator '-' seems to have a different behaviour compared with R 1.9.1 : x-4 x [1] 4 attr(x,'y')-5 Error: Object x not found

Re: [R] confidence interval for nls

2004-10-08 Thread Peter Dalgaard
Henrik Andersson [EMAIL PROTECTED] writes: I tried the example and it works fine, but why o why, do I not get any gradient from another prediction? Apparently this depends on whether you supply an RHS which returns the gradient. The built-in SS all do that. ##plot(yran~x) mich -

Re: [R] Evaluating Assignment-Operator R 2.0.0

2004-10-08 Thread Prof Brian Ripley
On Fri, 8 Oct 2004, friedemann wrote: Dear Helpers, in which way I have to use the assignment-operator evaluating left to right with R 2.0.0? - is the operator you should normally use. With R 2.0.0 (w2k-installation) the superassignment operator '-' seems to have a different behaviour

Re: [R] Evaluating Assignment-Operator R 2.0.0

2004-10-08 Thread Peter Dalgaard
friedemann [EMAIL PROTECTED] writes: With R 2.0.0 (w2k-installation) the superassignment operator '-' seems to have a different behaviour compared with R 1.9.1 : x-4 x [1] 4 attr(x,'y')-5 Error: Object x not found Using earlier versions of R I never got this error.

Re: [R] R-(wiki)-pedia?

2004-10-08 Thread Barry Rowlingson
Here's a function for searching the Rwiki from R: rwiki.search - function(string){ RwikiURL=http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl; RwikiSearchURL=paste(RwikiURL(),?search=,string,sep='') browseURL(RwikiSearchURL) return(invisible(0)) } Then you can do rwiki.search(gabor) and the

[R] submitting to R

2004-10-08 Thread Ziedonis Grislis
Dear Colleagues, would you like to explain in which way we can get possibility to use some version of R for Window. Sincerely yours Ziedonis Greislis *** Dr. Ziedonis Grislis Head of Laboratory of Quantitative Genetics

[R] Correlation Matrix

2004-10-08 Thread Vito Ricci
Hi, I'm dealing with a datamining analysis: I've a lot of categories of product sold per week (n. week =26, n. categories about 50. my dataframe is like this: Settimana ALIMENTI..ALTRI. ALIMENTI.APROTEICI 1 13 19 2 22

Re: [R] submitting to R

2004-10-08 Thread Christian Hennig
Read the (Windows-)FAQ. Next time, please read the FAQ and the posting guide before posting to r-help... Christian On Fri, 8 Oct 2004, Ziedonis Grislis wrote: Dear Colleagues, would you like to explain in which way we can get possibility to use some version of R for Window. Sincerely

Re: [R] submitting to R

2004-10-08 Thread Dimitris Rizopoulos
try these urls: http://www.cran.mirrors.pair.com/bin/windows/ http://www.cran.mirrors.pair.com/bin/windows/base/ Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel:

Re: [R] Correlation Matrix

2004-10-08 Thread Sundar Dorai-Raj
Vito Ricci wrote: Hi, I'm dealing with a datamining analysis: I've a lot of categories of product sold per week (n. week =26, n. categories about 50. my dataframe is like this: Settimana ALIMENTI..ALTRI. ALIMENTI.APROTEICI 1 13 19 2 2

Re: [R] Correlation Matrix

2004-10-08 Thread Vito Ricci
Hi Sundar, many thanks for your suggestion: it's just I wished! Best Vito --- Sundar Dorai-Raj [EMAIL PROTECTED] ha scritto: Vito Ricci wrote: Hi, I'm dealing with a datamining analysis: I've a lot of categories of product sold per week (n. week =26, n. categories about

[R] RWinEdt

2004-10-08 Thread henna001
Hi, I have troubles getting RWinEdt with the R2.0.0 Version startet. Do I have to install a different version of RWinEdt or WinEdt? I have RWinEdt 1.6.1 and WinEdt 5.3. Thanks Anna Hennig __ [EMAIL PROTECTED] mailing list

RE: [R] RWinEdt

2004-10-08 Thread Andy Bunn
Anna: That is the most current version of RWinEdt. Uwe Ligges is working on a version for 2.0.0 so check back soon for a new release. http://cran.r-project.org/contrib/extra/winedt/ Also, when inquiring about a specific package it is often helpful to contact the maintainer directly and not

Re: [R] RWinEdt

2004-10-08 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Hi, I have troubles getting RWinEdt with the R2.0.0 Version startet. Do I have to install a different version of RWinEdt or WinEdt? I have RWinEdt 1.6.1 and WinEdt 5.3. You have either to wait for RWinEdt_1.6-2 (which already has been uploaded to CRAN's incoming area and

Re: [R] submitting to R

2004-10-08 Thread Duncan Murdoch
On Fri, 8 Oct 2004 13:34:42 +0200, Dimitris Rizopoulos [EMAIL PROTECTED] wrote : try these urls: http://www.cran.mirrors.pair.com/bin/windows/ http://www.cran.mirrors.pair.com/bin/windows/base/ The pair.com mirror can certainly handle the traffic, but you might find one of the European mirrors

[R] testing for differences in parameter estimates from parametric bootstrapping

2004-10-08 Thread Victor Gravenholt
Based on a rather complicated model I do parametric bootstrapping to obtain bootstrap distributions of the parameters of interest. What is the proper way to test whether the parameter estimates are significantly different (the differences in parameter estimates are expected from including

Re: [R] Bug in nlme under version 2.0.0

2004-10-08 Thread Douglas Bates
Søren Højsgaard wrote: Dear all, Under version 2.0.0, I get the error below when calling summary() on a lme-object, whereas it works under version 1.9.1 (well, it did last week, before I upgraded). Any help on this? Thx in advance Søren library(nlme) mf -

[R] provide extra variables to environment in call

2004-10-08 Thread Khamenia, Valery
Hi all, Situation: there is a function `f' already defined by someone and provided in package. `f' looks like that: f - function() { x+1 } i.e. `f' is not closed i.r.t. term `x' now I have my own function `g', where I'd like to override variable `x' while calling `f': x -

RE: [R] provide extra variables to environment in call

2004-10-08 Thread Liaw, Andy
Not an direct answer to your question, but why not do something like: f - function() x + 1 x - 10 f() [1] 11 g - function(x, ...) { + my.f - f + formals(my.f) - c(list(x=NULL), formals(f)) + my.f(x, ...) + } g(5) [1] 6 Andy From: Khamenia, Valery Hi all, Situation:

Re: [R] provide extra variables to environment in call

2004-10-08 Thread Gabor Grothendieck
Khamenia, Valery V.Khamenia at biovision-discovery.de writes: : : Hi all, : : Situation: : : there is a function `f' already defined by someone and : provided in package. `f' looks like that: : : f - function() { : x+1 : } : : i.e. `f' is not closed i.r.t. term `x' : : now I

[R] polr and optim question

2004-10-08 Thread Peter Flom
Hello again I am trying to fit an ordinal logistic model using the polr function from MASS. When I run model.loan.ordinal - polr(loancat~age + sex + racgp + yrseduc + needlchg + gallery + sniffball + smokeball + sniffher + smokeher + nicocaine + inject + poly(year.of.int,3) + druginj +

Re: [R] provide extra variables to environment in call

2004-10-08 Thread Thomas Lumley
On Fri, 8 Oct 2004, Khamenia, Valery wrote: Hi all, Situation: there is a function `f' already defined by someone and provided in package. `f' looks like that: f - function() { x+1 } i.e. `f' is not closed i.r.t. term `x' now I have my own function `g', where I'd like to override variable `x'

[R] constrained opt with lagrange multiplier example?

2004-10-08 Thread Jeff D. Hamann
I'm curious to find out if there is an example of R code for optimization of two variable function, with contraints, using lagrange multiplier (using optim/nlm?). I have a problem that contains one discrete variable, but need a simple problem/example to start with. I haven't been able to find any

RE: [R] polr and optim question

2004-10-08 Thread John Fox
Dear Peter, It's hard to know from your message what the source of the problem might be, but a good guess is that data are ill-conditioned in some way. Some things to check: What's the distribution of the response variable? (Are there many categories, some with very few observations?) How

[R] problem Installing R 2.0.0 on SuSe 9.1

2004-10-08 Thread Richards, Thomas
Hello: I first tried it by using ./configure with the source files, but found that there is a huge problem with the gcc-g77 package, then I tried using the RPM obtained from CRAN, getting the following, the first of which appears to be another manifestation of the g77 problem:

[R] Java and help.start() search engine

2004-10-08 Thread Prof Brian Ripley
The latest Sun Java release is jre-1_5_0, and unlike the recent versions of j2re-1_4_2-0[2345], this one does work with Firefox 1.0PR, Mozilla 1.7.3 and Netscape 7.1 (and hopefully other Mozilla-based browsers). From http://plugindoc.mozdev.org/faqs/java.html: Java Runtime Environment 5.0 has

Re: [R] Chernoff faces

2004-10-08 Thread Wolfram Fischer
Kenneth == Kenneth Cabrera [EMAIL PROTECTED] writes: Kenneth Hello everybody: Does any one has a function to build Chernoff Kenneth faces? Many of us don't think it's worth them. But we know that opinions differ and gladly incorporate (good quality) submissions of source code. R *is*

[R] Number of characters per line

2004-10-08 Thread tofesi
Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Received-SPF: none (hypatia: domain of [EMAIL PROTECTED] does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on

[R] creating named elements of lists on the fly

2004-10-08 Thread Ben Shapiro
HI Folks, I'm trying to create a list with named elements. Only, I don't know the names of the elements a priori (they come from the data being calculated). Currently, my approach is to create an environment, then assign things to the environement, then as.list the environment to get a list.

RE: [R] Number of characters per line

2004-10-08 Thread John Fox
Dear Tobi, You can use options(width=n.of.characters). I hope this helps, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, October 08, 2004 11:36 AM To: [EMAIL PROTECTED] Subject: [R] Number of characters per

RE: [R] creating named elements of lists on the fly

2004-10-08 Thread John Fox
Dear Ben, Is this the kind of thing you had in mind? lst - list() element - a lst[[element]] - 1:5 element - b lst[[element]] - letters[1:5] lst $a [1] 1 2 3 4 5 $b [1] a b c d e I hope this helps, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [R] Number of characters per line

2004-10-08 Thread Gavin Simpson
[EMAIL PROTECTED] wrote: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Received-SPF: none (hypatia: domain of [EMAIL PROTECTED] does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch X-Spam-Checker-Version: SpamAssassin 2.63

Re: [R] creating named elements of lists on the fly

2004-10-08 Thread Sundar Dorai-Raj
Ben Shapiro wrote: HI Folks, I'm trying to create a list with named elements. Only, I don't know the names of the elements a priori (they come from the data being calculated). Currently, my approach is to create an environment, then assign things to the environement, then as.list the environment

Re: [R] creating named elements of lists on the fly

2004-10-08 Thread Gabor Grothendieck
Ben Shapiro bshapiro-lists-R at getdown.org writes: : : HI Folks, : : I'm trying to create a list with named elements. Only, I don't know the names of the elements a priori (they : come from the data being calculated). Currently, my approach is to create an environment, then assign : things

[R] nlme vs gls

2004-10-08 Thread Doran, Harold
Dear List: My question is more statistical than R oriented (although it originates from my work with nlme). I know statistical questions are occasionally posted, so I hope my question is relevant to the list as I cannot turn up a solution anywhere else. I will frame it in the context of an R

[R] reading Systat into R

2004-10-08 Thread Jacob Wegelin
How do I read a Systat file into R? The following email by Marc Schwartz http://tolstoy.newcastle.edu.au/R/help/04/06/1005.html deals with reading Systat on a Linux machine. I'm running R on Windows (precise version info below). A colleague sent me data in systat, a *.SYD file. Do I have to

Re: [R] reading Systat into R

2004-10-08 Thread Jonathan Baron
On 10/08/04 12:02, Jacob Wegelin wrote: How do I read a Systat file into R? The following email by Marc Schwartz http://tolstoy.newcastle.edu.au/R/help/04/06/1005.html deals with reading Systat on a Linux machine. I'm running R on Windows (precise version info below). A colleague sent me data

Re: [R] R-(wiki)-pedia?

2004-10-08 Thread David Forrest
On Fri, 8 Oct 2004, Barry Rowlingson wrote: Here's a function for searching the Rwiki from R: rwiki.search - function(string){ RwikiURL=http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl; RwikiSearchURL=paste(RwikiURL(),?search=,string,sep='') browseURL(RwikiSearchURL)

Re: [R] reading Systat into R

2004-10-08 Thread Jacob Wegelin
Thanks to Jonathan and Marc for your swift replies. Here is how I solved the problem: I downloaded a 30 day trial version of systat from http://www.clecom.co.uk/science/systat/systat_download.html, installed it on my PC, opened the file in Systat, then used File, Save As and saved it in every

Re: [R] reading Systat into R

2004-10-08 Thread Robert W. Baer, Ph.D.
The SPSS *.SAV file, when I opened it, proved not to have any data in it. It only contained the variable view not the data view. But the Excel file appears to contain the data. My experience with getting spss files suggests that you might actually be seeing the file as a list. Look at help

RE: [R] nlme vs gls

2004-10-08 Thread Raubertas, Richard
One thing to be aware of (as Pinheiro and Bates point out on the same page) is that the general random effects and gls models are not nested. This means that the general covariance matrix you estimate with gls may not correspond to *any* random effects model. In that case there are no subject-

[R] Survey of moving window statistical functions - still looking f or fast mad function

2004-10-08 Thread Tuszynski, Jaroslaw W.
Hi, Lately I run into a problem that my code R code is spending hours performing simple moving window statistical operations. As a result I did searched archives for alternative (faster) ways of performing: mean, max, median and mad operation over moving window (size 81) on a vector with about

Re: [R] RWinEdt

2004-10-08 Thread Emili Tortosa-Ausina
Hi, All do also have troubles. In my case, I get the following message: install.packages(choose.files('',filters=Filters[c('zip','All'),]), .libPaths()[1], CRAN = NULL) package 'RWinEdt' successfully unpacked and MD5 sums checked updating HTML package descriptions local({pkg -

[R] Adding factor variable to a CoxPH

2004-10-08 Thread Neil Leonard
I think this is a pretty basic statistic question: If I have a variable which has 4 factors how can I add it to a coxph model? I have other variables added which have digits 1-4 instead of four factors. If I recode the variable will that work? Thanks Neil

[R] polr problem solved

2004-10-08 Thread Peter Flom
I'd like to thank John Fox and Chuck Cleland for their help in resovling this issue. It turned out to be something simple, but perhaps others have had similar problems In my original data frame, I had 4 categories of race/ethnicity. One of the categories (other) was very small, and not similar

Re: [R] RWinEdt

2004-10-08 Thread Emili Tortosa-Ausina
OK, now it's fine. Thanks, Emili At 05:50 PM 10/8/2004, Emili Tortosa-Ausina wrote: Hi, All do also have troubles. In my case, I get the following message: install.packages(choose.files('',filters=Filters[c('zip','All'),]), .libPaths()[1], CRAN = NULL) package 'RWinEdt' successfully unpacked and