[R] MacOS X and vectorized files (emf, wmf,...)

2005-01-30 Thread Patrick Giraudoux H
__ 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] Conflicts using Rcmdr, nlme and lme4

2005-01-30 Thread CG Pettersson
Thanks a lot, both to Prof Bates and Prof Fox. I see at least some bits of the light now. One original question remaines though: Why do all these (22 of them) packages autoload in the first place? I don´t want them to. It must have something to do with the original loading from Rcmdr, as (for

RE: [R] Conflicts using Rcmdr, nlme and lme4

2005-01-30 Thread John Fox
Dear CG, -Original Message- From: CG Pettersson [mailto:[EMAIL PROTECTED] Sent: Sunday, January 30, 2005 3:12 AM To: John Fox Cc: r-help@stat.math.ethz.ch Subject: RE: [R] Conflicts using Rcmdr, nlme and lme4 Thanks a lot, both to Prof Bates and Prof Fox. I see at least some

Re: [R] New user...tips for spdep?

2005-01-30 Thread Roger Bivand
On Sat, 29 Jan 2005, Mike Leahy wrote: Hello List, I'm a very new user to the R system. I'm only beginning to learn the basics, but so far I've been able to do little more than try a few examples, and of course begin reading the documentation. My primary motivation for exploring R is

[R] Assistant Professor position

2005-01-30 Thread Edgar Acuna
The Department of Mathematics of the University of Puerto Rico at Mayaguez invites qualified individuals to apply for a tenure track position in statistics at the assistant professor level. Preference will be given to candidates whose interests are in applied statistics, computational

Re: [R] New user...tips for spdep

2005-01-30 Thread Patrick Giraudoux H
__ 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] error preparing a package for lazy loading with R CMD

2005-01-30 Thread Patrick Giraudoux H
Trouble just solved by Uwe Ligge! See below: You have a wrong Built field in your DESCRIPTION file!!! Built: R 2.0.1;windows Please don't specify such a line yourself, R CMD build does it for you. Ashes on my head and all these sort of things... Patrick

[R] trellis graphics in loops

2005-01-30 Thread Jean Eid
I have this awkward problem with trellis (lattice). I am trying to generate some plots through loops but the .eps file is empty. When I generate them in a list and print them outside the loop all is fine. this is an example below:( nothing shows up in foo.eps, but all show up in foo1.eps) R

Re: [R] trellis graphics in loops

2005-01-30 Thread Chuck Cleland
Wrap the xyplot in print: X - data.frame(x=rnorm(1), y=rnorm(1), z=sample(c(foo1,foo2), 1,replace=T), year=sample(c(89:94), 1,replace=T)) trellis.device(postscript, file=foo.eps) for(i in unique(X$year)){ temp - X[X$year%in%i, ] print(xyplot(temp$x~temp$y|temp$z)) } dev.off()

Re: [R] trellis graphics in loops

2005-01-30 Thread Peter Dalgaard
Jean Eid [EMAIL PROTECTED] writes: I have this awkward problem with trellis (lattice). I am trying to generate some plots through loops but the .eps file is empty. When I generate them in a list and print them outside the loop all is fine. this is an example below:( nothing shows up in

Re: [R] error preparing a package for lazy loading with R CMD

2005-01-30 Thread Patrick Giraudoux H
Trouble just solved by Uwe Ligge! See below: You have a wrong Built field in your DESCRIPTION file!!! Built: R 2.0.1;windows. Please don't specify such a line yourself, R CMD build does it for you. Ashes on my head and all these sort of things... Patrick

Re: [R] Box-Cox / data transformation question

2005-01-30 Thread Landini Massimiliano
On Tue, 25 Jan 2005 15:42:45 +0100, you wrote: |=[:o) Dear R users, |=[:o) |=[:o) Is it reasonable to transform data (measurements of plant height) to the |=[:o) power of 1/4? I´ve used boxcox(response~A*B) and lambda was close to 0.25. |=[:o) IMHO (I'm far to be a statistician) no. I

Re: [R] Function to modify existing data.frame--Improving R Language

2005-01-30 Thread Jan T. Kim
On Wed, Jan 19, 2005 at 10:31:13AM -0800, Thomas Lumley wrote: On Wed, 19 Jan 2005, Peter Muhlberger wrote: By not allowing any straightforward passing by reference, R strikes me as a lot less flexible useful than it might be. A basic

[R] Postgraduate distance learning courses for MSc in Statistics?

2005-01-30 Thread Tilo Blenk
Does anybody has experience with postgraduate distance learning courses resulting in a MSc in Statistics? I am thinking about such a course to learn more about statistics and get a certification to be able to work as statistician. I would prefer a course in England or in the USA. A coworker

Re: [R] error preparing a package for lazy loading with R CMD

2005-01-30 Thread Prof Brian Ripley
On Sun, 30 Jan 2005, Patrick Giraudoux H wrote: Trouble just solved by Uwe Ligge! See below: You have a wrong Built field in your DESCRIPTION file!!! Built: R 2.0.1;windows. Please don't specify such a line yourself, R CMD build does it for you. Actually, installation does it: build adds

Re: [R] Box-Cox / data transformation question

2005-01-30 Thread Rick Bilonick
Landini Massimiliano wrote: On Tue, 25 Jan 2005 15:42:45 +0100, you wrote: |=[:o) Dear R users, |=[:o) |=[:o) Is it reasonable to transform data (measurements of plant height) to the |=[:o) power of 1/4? I´ve used boxcox(response~A*B) and lambda was close to 0.25. |=[:o) IMHO (I'm far to

[R] Rinternals.h and iostream don't play nice together'

2005-01-30 Thread Faheem Mitha
Hi, Consider the following file. *** foo.cc *** #include R.h #include Rinternals.h #include iostream *** R CMD SHLIB foo.cc gives scads of errors. I've use C++ extensively with R before (using C linkage) but not

Re: [R] Rinternals.h and iostream don't play nice together'

2005-01-30 Thread Dirk Eddelbuettel
On 30 January 2005 at 18:03, Faheem Mitha wrote: | Consider the following file. | | *** | foo.cc | *** | #include R.h | #include Rinternals.h | #include iostream | *** | | R CMD SHLIB foo.cc Two changes are

Re: [R] Rinternals.h and iostream don't play nice together'

2005-01-30 Thread Paul Roebuck
On Sun, 30 Jan 2005, Faheem Mitha wrote: Consider the following file. *** foo.cc *** #include R.h and if you use the following instead of Rinternals.h? extern C { #include Rdefines.h } #include Rinternals.h #include iostream

Re: [R] Rinternals.h and iostream don't play nice together'

2005-01-30 Thread Faheem Mitha
On Sun, 30 Jan 2005, Dirk Eddelbuettel wrote: On 30 January 2005 at 18:03, Faheem Mitha wrote: | Consider the following file. | | *** | foo.cc | *** | #include R.h | #include Rinternals.h | #include iostream | ***

Re: [R] Rinternals.h and iostream don't play nice together'

2005-01-30 Thread Faheem Mitha
On Sun, 30 Jan 2005, Paul Roebuck wrote: and if you use the following instead of Rinternals.h? extern C { #include Rdefines.h } Still the same errors. As Dirk pointed out, putting iostream first makes the errors go away in either case. 'Course I'm assuming you read that part in the 'R-exts.pdf'

[R] Startup Files (RProfile) and R-Aqua

2005-01-30 Thread Thomas Hopper
Hello, I'm having some difficulty understanding the documentation relative to the startup files with R-Aqua 2.0.1 for Mac OS X. Specifically, I'm wondering: where does R search for the startup files (my home directory at Users:me:?); how should they be named (.RProfile will be treated by Mac

[R] Evaluating code in a sandbox

2005-01-30 Thread lederer
Dear R-Gurus, is it possible to evaluate foreign R code in such a safe way, that it has no chance to confuse the global environment? The follwing does not suffice, because the untrusted code might e.g. contain a superassignment (-): connection - textConnection(some.untrusted.code)

[R] resampling two samples from a matrix

2005-01-30 Thread pau gonzalez
__ 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] Startup Files (RProfile) and R-Aqua

2005-01-30 Thread Thomas Lumley
On Sun, 30 Jan 2005, Thomas Hopper wrote: Hello, I'm having some difficulty understanding the documentation relative to the startup files with R-Aqua 2.0.1 for Mac OS X. Specifically, I'm wondering: where does R search for the startup files (my home directory at Users:me:?); Yes. how should

[R] type of list elements in .Call

2005-01-30 Thread Faheem Mitha
Dear People, Here is something I do not understand. Consider * foo.cc * #include iostream #include R.h #include Rinternals.h using std::cout; using std::endl; extern C { SEXP printlst(SEXP lst); }

[R] aggregating dates

2005-01-30 Thread Paul Sorenson
I have a frame which contains 3 columns: date defectnum state And I want to get the most recent state change for a given defect number. date is POSIXct. I have tried: aggregate(ev$date, by=list(ev$defectnum), max) Which appears to be working except that the dates seem to come back as

RE: [R] aggregating dates

2005-01-30 Thread Mulholland, Tom
This seems to work toPOSIX - function(x){ y - x - as.numeric(ISOdate(2005,1,1)) z - ISOdate(2005,1,1) + y return(z) } test - as.numeric(ISOdate(2005,3,1) ) toPOSIX(test) But whether one should be doing this I don't know. There are certainly functions that play aorund with the POSIX

Re: [R] New user...tips for spdep

2005-01-30 Thread Patrick Giraudoux H
Hello List, I'm a very new user to the R system. I'm only beginning to learn the basics, but so far I've been able to do little more than try a few examples, and of course begin reading the documentation. My primary motivation for exploring R is the availability of tools like the 'spdep'

Re: [R] Startup Files (RProfile) and R-Aqua

2005-01-30 Thread Paul Roebuck
On Sun, 30 Jan 2005, Thomas Hopper wrote: I'm having some difficulty understanding the documentation relative to the startup files with R-Aqua 2.0.1 for Mac OS X. Specifically, I'm wondering: where does R search for the startup files (my home directory at Users:me:?); how should they be

Re: [R] type of list elements in .Call

2005-01-30 Thread Paul Roebuck
On Mon, 31 Jan 2005, Faheem Mitha wrote: [SNIP] as I would expect. I thought that if the vectors in the list could be regarded as integer vectors, they would be, but apparently not. Is there any way I can tell R to regard them as integer vectors? .Call(printlst, list(as.integer(c(1,2)),