[R] Loading some function at R startup

2004-11-10 Thread Vito Ricci
Dear R-users, I've built these functions usefell for me to import/export data from/to Excel: importa.da.excel<-function(){read.delim2("clipboard", dec=",") ## questa funzione consente di importare dati da Excel in R ## selezionare in Excel le celle che contengono i dati, ## compresi in nomi dell

Re: [R] R works on Fedora Core 3

2004-11-10 Thread Martyn Plummer
On Tue, 2004-11-09 at 19:47, Jonathan Baron wrote: > On 11/09/04 20:37, Jari Oksanen wrote: > > > >On 9 Nov 2004, at 19:44, Jonathan Baron wrote: > > > >> The RPM for Fedora Core 2 seems to work just fine on Core 3. > >> > >> (The graphics window got smaller, but I'm sure there is a setting > >> fo

Re: [R] Loading some function at R startup

2004-11-10 Thread Prof Brian Ripley
?Startup will tell you how: most likely you want to use ~/.Rprofile. BTW, read.delim2 already sets dec="," by default! On Wed, 10 Nov 2004, Vito Ricci wrote: > Dear R-users, > > I've built these functions usefell for me to > import/export data from/to Excel: > > importa.da.excel<-function(){re

[R] R under Pocket PC

2004-11-10 Thread Lars Strand
I have got several comments to my question if R will run under PC. It seems that this is not possible at present. There is a language in a way similar to R, namely J, which can run under Pocket PC (and other operating systems). You can get more information from www.Jsoftware.com

Re: [R] R under Pocket PC

2004-11-10 Thread David Whiting
"A.J. Rossini" <[EMAIL PROTECTED]> writes: > One concern I recall from looking into this a while back (hopefully > not founded) was the issue with floating point handling on the ARMs > and similar PDA CPUs. > This was relevant to the familiar/intimate linux distro's around 18-24 > months ago, whe

Re: [R] small world models?

2004-11-10 Thread asemeria
Sorry for previous empty messages! Our group used R "only" for the statistical analysis of simulations reults performed on random boolean networks (RBN) modified with scale-free topology, because the network we have analysed had ~6000 nodes and a simulator engine written entirely in ANSI C w

Re: [R] Need car() and cdr() for '...'

2004-11-10 Thread Robin Hankin
> "Paul" == Paul Roebuck <[EMAIL PROTECTED]> on Tue, 9 Nov 2004 14:28:42 -0600 (CST) writes: Paul> Needed to redefine function "sum" for my MATLAB package. ("MATLAB" package, hmm, interesting, let us know more..) well, a few years ago I put together a selection of matlab commands tha

[R] Does something like partition.rpart() exist?

2004-11-10 Thread Simone Vantini
I'd like to create a bidimensional presentation of a classification tree built using the rpart() function. I've seen that a partition.tree() function exists for the tree() function. Does a similar function exist for the rpart() function? Thanks a lot Simone Vantini ___

Re: [R] Need car() and cdr() for '...'

2004-11-10 Thread Martin Maechler
> "Paul" == Paul Roebuck <[EMAIL PROTECTED]> > on Tue, 9 Nov 2004 14:28:42 -0600 (CST) writes: Paul> Needed to redefine function "sum" for my MATLAB package. ("MATLAB" package, hmm, interesting, let us know more..) Paul> There's something similar in Chambers's Green Book (pg

Re: [R] gplot.hexbin - how to set figure margin.

2004-11-10 Thread Martin Maechler
This is really about the development version of a bioconductor package, so why didn't you contact the package maintainer or authors, as the posting guide asks you? This (unreleased) version of hexbin is working with "grid" based graphics ===> no par() mess. One reason that it is "developm

Re: [R] R under Pocket PC

2004-11-10 Thread Stuart Leask
> One concern I recall from looking into this a while back (hopefully > not founded) was the issue with floating point handling on the ARMs > and similar PDA CPUs. > > This was relevant to the familiar/intimate linux distro's around 18-24 > months ago, when I was considering an IPAQ or Zaurus to re

[R] glm.nb

2004-11-10 Thread Ronaldo Reis Jr.
Hi, I make some simulations with rnbinom and try to test with glm.nb. But in some data set the glm.nb fail. Look: pop <- rnbinom(n=1000,size=1,mu=0.05) > glm.nb(pop~1,maxit=1000) Error in while ((it <- it + 1) < limit && abs(del) > eps) { : missing value where TRUE/FALSE needed look some pop

Re: [R] R under Pocket PC

2004-11-10 Thread Peter Dalgaard
"Stuart Leask" <[EMAIL PROTECTED]> writes: > > One concern I recall from looking into this a while back (hopefully > > not founded) was the issue with floating point handling on the ARMs > > and similar PDA CPUs. > > > > This was relevant to the familiar/intimate linux distro's around 18-24 > > mo

[R] lattice: ordering the entries in a dotplot of a vector

2004-11-10 Thread Wolfram Fischer
I tried: n <- 9 x <- sample(n) names(x) <- LETTERS[1:n] dotplot( sort(x) ) The lines of the dotplot are not ordered according to the values of x (but according to the names of x). So I did: dfx <- data.frame( x=x, label=factor( names(x), names(x)[order(x)] ) ) dotplot( la

[R] Multiple stripcharts using "for loop"

2004-11-10 Thread Paul JH Drake
Sorry, I didn't post my system details: SuSE Linux 9.1 R version 2.0.0 P4 Laptop, 512MB RAM THanks for the reply. I'll see what I can do with the data. Paul __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

[R] Basic Q on coercing factors in data frames to numeric

2004-11-10 Thread Robert Brown FM CEFAS
Hi there, I'm running R 2.0.0 on Windows 95. I'm trying to coerce a column of factors within a data frame to numeric. This is not a problem with a vector, but I can't find a way to index a column within a data frame to achieve this. All the examples from 'An introduction to R', 'S-plus 6 prog

Re: [R] R under Pocket PC

2004-11-10 Thread Barry Rowlingson
Could be kind of fun to run R on it with display to the TV (but could you control R with the TV remote control?) Peter, I'm sure everyone on this list feels you work hard enough on R as it is, dont let it invade your living room as well! Baz __ [EM

[R] printing to stderr

2004-11-10 Thread Arne.Muller
Hello, is it possible to configure the print function to print to stderr? kind regards, Arne __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/post

Re: [R] R under Pocket PC

2004-11-10 Thread Tim Cutts
On 9 Nov 2004, at 5:14 pm, Peter Dalgaard wrote: PalmOS would probably be right out. :-) I think you are belittling the work done to get R running on as wide a range of platforms as it does. ? I only saw a bit of excessive pessimism in that remark. Yes, no disrespect was intended at all. Porting

[R] "conditional duplicates"?

2004-11-10 Thread Christian Schulz
Hi, i would like check a repeated measurement dataset, whether cases (which (id) could be more than one time included and not all same times included.) have more than one times the same SMONTH!? #This pseudo code didn't work with a for loop, because the [i+1] isn't known. How i could refer to [i

Re: [R] printing to stderr

2004-11-10 Thread Prof Brian Ripley
On Wed, 10 Nov 2004 [EMAIL PROTECTED] wrote: > is it possible to configure the print function to print to stderr? No, but where standard output goes is controlled by sink(), so you can achieve the same effect. R internally has no idea what output comes from print() (which is not just one funct

Re: [R] "conditional duplicates"?

2004-11-10 Thread Dimitris Rizopoulos
Hi Christian, may be this is helpful: dat <- data.frame(id=rep(1:4, each=5), smonth=sample(1:5, 20, TRUE)) dat$duplicated <- unlist(tapply(dat$smonth, dat$id, duplicated)) dat Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of

Re: [R] Basic Q on coercing factors in data frames to numeric

2004-11-10 Thread Roger D. Peng
I believe this is a FAQ. See http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-convert-factors-to-numeric_003f -roger Robert Brown FM CEFAS wrote: Hi there, I'm running R 2.0.0 on Windows 95. I'm trying to coerce a column of factors within a data frame to numeric. This is not a problem wi

Re: [R] "conditional duplicates"?

2004-11-10 Thread Christian Schulz
Many Thanks! Dimitris Rizopoulos wrote: Hi Christian, may be this is helpful: dat <- data.frame(id=rep(1:4, each=5), smonth=sample(1:5, 20, TRUE)) dat$duplicated <- unlist(tapply(dat$smonth, dat$id, duplicated)) dat Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School

RE: [R] Does something like partition.rpart() exist?

2004-11-10 Thread Andy Bunn
I might well be wrong, but I don't think there is. I went about rewriting partition.tree for rpart once but stopped after I realized that it was much easier to add lines and segments to plots by hand using the coordinates from the rpart object (I then added a third predictor to my dataset making th

Re: [R] R under Pocket PC

2004-11-10 Thread Peter Dalgaard
Barry Rowlingson <[EMAIL PROTECTED]> writes: > I'm sure everyone on this list feels you work hard enough on R as > it is, dont let it invade your living room as well! Too late. Laptop + WiFi + ADSL did that a while back. -- O__ Peter Dalgaard Blegdamsvej 3 c/ /'_ --

[R] fSeries

2004-11-10 Thread CYRIL.CAILLAULT
Good morning everyone, I use for the first time the package fSeries and i try to run the example given by Diethelm Würtz. But when i run its example which is the following # # Example: # Model a GARCH time series process # # Description: # PART I: Estimate GARCH models of the follow

Re: [R] worked in R, but not in S-Plus

2004-11-10 Thread Thomas Lumley
On Tue, 9 Nov 2004, array chip wrote: Hi, I wrote a function that worked well in R, but not in S-Plus, can anyone suggest a solution? If you change the argument of the function from x to ... it will give Error in eval(expr, envir, enclos) : Object "x" not found which is almost compatible with what

[R] fSeries

2004-11-10 Thread Vito Ricci
Hi, see ? garch in tseries package. library(tseries) > garch(x) * ESTIMATION WITH ANALYTICAL GRADIENT * Warning: singular information Call: garch(x = x) Coefficient(s): a0 a1 b1 8.564e-07 5.000e-02 5.000e-02 Best Vito You wrote: Good morning everyon

Re: [R] lattice: ordering the entries in a dotplot of a vector

2004-11-10 Thread Deepayan Sarkar
On Wednesday 10 November 2004 05:28, Wolfram Fischer wrote: > I tried: > n <- 9 > x <- sample(n) > names(x) <- LETTERS[1:n] > dotplot( sort(x) ) > > The lines of the dotplot are not ordered according to the values of x > (but according to the names of x). > > So I did: > > dfx <

[R] Building MacOSX binary in Windows XP

2004-11-10 Thread Tomas Aragon
Under Windows XP, I am able to build R package archived as source (.tar.gz) and Windows binary (.zip). Can I create MaxOSX archive file (.tgz) in Windows XP? Thanks, Tomas Tomas Aragon http://www.epitools.net __ [EMAIL PROTECTED] mailing list http

Re: [R] Building MacOSX binary in Windows XP

2004-11-10 Thread Prof Brian Ripley
On Wed, 10 Nov 2004, Tomas Aragon wrote: > Under Windows XP, I am able to build R package archived as source > (.tar.gz) and Windows binary (.zip). Can I create MaxOSX archive file > (.tgz) in Windows XP? If you mean a .tgz containing a binary MacOSX version of the package, not without a cross-c

[R] cubic spline/smoother with nlme

2004-11-10 Thread Suzette Blanchard
Greetings, I would like to use a cubic spline or smoother to model the fixed effects within nlme. So far the only smoother I have been able to get to run successfully in nlme is smooth(). I tried smooth.spline: fixed=list(lKa~1,lCL~smooth.spline(BSA, df=3)) the error I got was the followi

Re: [R] cubic spline/smoother with nlme

2004-11-10 Thread Peter Dalgaard
Suzette Blanchard <[EMAIL PROTECTED]> writes: > Greetings, I would like to use a cubic spline > or smoother to model the fixed effects within > nlme. So far the only smoother I have been able > to get to run successfully in nlme is smooth(). > > I tried smooth.spline: >fixed=list(lKa~1,lCL~

RE: [R] cubic spline/smoother with nlme

2004-11-10 Thread Pikounis, Bill
Suzette, In addition to Professor Daalgard's suggestions of ns() and bs(), you could also try out rcs() from Frank Harrell Design package (you may need his Hmisc package as well). This function helps to fit natural (restricted cubic splines), and have been very useful for me in practice to use in t

Re: [R] R under Pocket PC

2004-11-10 Thread Tom Mulholland
What is really scary, is the thought that in some housholds this would be an improvement. Instead of the family being closeted away in their various rooms playing with their computer, they could all be sitting together, while at the same time ignoring each other, but occassionally engaging in r

[R] substitute/paste question for using Greek in plot titles

2004-11-10 Thread Peter Dunn
Hi all I am having troubles making sense of why code (1) below fails but code (2) below works. Code (1): > phi.1 <- 1 > plot(0 ~ 0, + main=substitute(paste("A vaue for ",phi," = ",phival), list(phival=phi.1)) ) Error in paste("The two deviances for ", phi, " = ", 2) : Object "phi" not fou

[R] polr probit versus stata oprobit

2004-11-10 Thread Jean Eid
Dear All, I have been struggling to understand why for the housing data in MASS library R and stata give coef. estimates that are really different. I also tried to come up with many many examples myself (see below, of course I did not have the set.seed command included) and all of my `random' examp

[R] R with Sun Studio Fortran 95 compiler

2004-11-10 Thread Bizuet Cabrera Fernando
Hi, I am trying to compile R 1.9.1 and 2.0.0 on Solaris 2.8 with Sun Studio Fortran 95 compiler but I have obtained some errors which I enclose. I have compiled R with g77 GNU compiler and it was OK. Does anyone know if R 2.0.0 has been successfully built on Solaris 2.8 with Sun Studio Fortran 95

Re: [R] substitute/paste question for using Greek in plot titles

2004-11-10 Thread Sundar Dorai-Raj
Peter Dunn wrote: Hi all I am having troubles making sense of why code (1) below fails but code (2) below works. Code (1): > phi.1 <- 1 > plot(0 ~ 0, + main=substitute(paste("A vaue for ",phi," = ",phival), list(phival=phi.1)) ) Error in paste("The two deviances for ", phi, " = ", 2) :

Re: [R] polr probit versus stata oprobit

2004-11-10 Thread Thomas Lumley
On Wed, 10 Nov 2004, Jean Eid wrote: Dear All, I have been struggling to understand why for the housing data in MASS library R and stata give coef. estimates that are really different. I also tried to come up with many many examples myself (see below, of course I did not have the set.seed command i

Re: [R] polr probit versus stata oprobit

2004-11-10 Thread Jean Eid
Dear Thomas, Where you also able to replicate the second example? (the exaample that I turned the housing data into numerical variables) That is the one that my estimates differ. Jean, On Wed, 10 Nov 2004, Thomas Lumley wrote: > On Wed, 10 Nov 2004, Jean Eid wrote: > > > Dear All, > > I have b

Re: [R] substitute/paste question for using Greek in plot titles

2004-11-10 Thread Roger D. Peng
This is not a bug. The object passed to `main' should be either character or an expression (documented in ?title). substitute() returns neither a character object nor an expression -- it return a call object. This is documented in ?substitute: Substituting and quoting often causes confu

[R] "<<-" assignment no long work in class methods

2004-11-10 Thread Gang Liang
Hi- I used to use "<<-" to do assignment inside a class method, and just found that now it is broken in R 2.0. For example, the following code --- setClass( "myclass", representation(x="numeric") ) setGeneric("incrXByOne", functi

Re: [R] "<<-" assignment no long work in class methods

2004-11-10 Thread Witold Eryk Wolski
Gang Liang wrote: Hi- I used to use "<<-" to do assignment inside a class method, and just found that now it is broken in R 2.0. For example, the following code --- setClass( "myclass", representation(x="numeric") ) setGeneric("inc

Re: [R] R with Sun Studio Fortran 95 compiler

2004-11-10 Thread Prof Brian Ripley
On Wed, 10 Nov 2004, Bizuet Cabrera Fernando wrote: > I am trying to compile R 1.9.1 and 2.0.0 on Solaris 2.8 with Sun Studio > Fortran 95 compiler but I have obtained some errors which I enclose. I > have compiled R with g77 GNU compiler and it was OK. Please do read the final line of your excer