Re: [R] Error compiling ROracle on Windows 2000

2004-05-08 Thread Prof Brian Ripley
How to make Rdll.lib is in readme.packages, the basic documentation for making packages from sources pointed at from the rw-FAQ. It seems to be the force-Rdll.lib target in that makefile. You might also want to note the comments about paths with spaces in, in that basic documentation, and that

Re: [R] re-ordering a vector by name

2004-05-08 Thread Peter Dalgaard
Liaw, Andy [EMAIL PROTECTED] writes: Reid: It isn't a memory problem. For vectors of length 6e5, I killed the R process after more than 5 hours on an Opteron 248. The R process was taking up about 114MB of RAM, out of 8GB in the box. I'm rather surprised that such seemingly simple

[R] Surprise when indexing with a factor.

2004-05-08 Thread pallier
Hello, I had been thinking for years, without having ever checked (shame on me), that indexing a named vector by a factor 'f' produced the same results as indexing it by 'as.character(f)'. I was wrong, as the following example shows: (m - c(a=1,b=2)) (f - factor(c(1,2),labels=c('b','a')))

[R] xyplot, loess and se

2004-05-08 Thread Luca De Benedictis
Dear R-friends, in plotting x and y, conditioning on z, I am trying to find a way to make the standard errors appearing together with the loess in the trellis plot. I have tried the following code without success. x - x y - y z.two.groups - equal.count(z, number=2, overlap=.1) xyplot(x~y |

Re: [R] xyplot, loess and se

2004-05-08 Thread Prof Brian Ripley
My suggestion is that you look at the code for panel.loess, and then ask yourself what made you think this could possibly work. - what happens to arguments in ... ? - does panel.loess call loess? - does loess accept a se=TRUE argument? Does loess.smooth? You need to write your own panel and

RE: [R] Surprise when indexing with a factor.

2004-05-08 Thread Liaw, Andy
It may be educational to read ?factor before you use a factor for some operation (such as subscripting), I guess. In part, it says: Value: 'factor' returns an object of class 'factor' which has a set of numeric codes the length of 'x' with a 'levels' attribute of mode

Re: [R] Surprise when indexing with a factor.

2004-05-08 Thread pallier
It may be educational to read ?factor before you use a factor for some operation (such as subscripting), I guess. In part, it says: Value: 'factor' returns an object of class 'factor' which has a set of numeric codes the length of 'x' with a 'levels' attribute of mode 'character'.

[R] metafile copy and R 1.9.0

2004-05-08 Thread Patrick Giraudoux
Dear all, I'm running into problem in R-1.9.0 that hasn't happened with R-1.8.x If I make a plot with xyplot(), and use the menu to either save to a metafile or copy to clipboard as a metafile to export to eg Powerpoint, I can just copy a blank then. This does not occur with the classical

Re: [R] Surprise when indexing with a factor.

2004-05-08 Thread Gabor Grothendieck
Note that if f is a factor with Date labels, e.g. f - factor(c(2000-02-02,2000-02-03)) then as.Date has a factor method whose effect is such that (as of R 1.9.1): as.Date(f) *is* the same as as.Date(as.character(f)) . (Presumably this makes it easier to use as.Date with read.table.)

Re: [R] metafile copy and R 1.9.0

2004-05-08 Thread Deepayan Sarkar
On Saturday 08 May 2004 08:45, Patrick Giraudoux wrote: Dear all, I'm running into problem in R-1.9.0 that hasn't happened with R-1.8.x If I make a plot with xyplot(), and use the menu to either save to a metafile or copy to clipboard as a metafile to export to eg Powerpoint, I can just

Re: [R] metafile copy and R 1.9.0

2004-05-08 Thread Gabor Grothendieck
I don't know if this workaround suffers the same problem or not since I have not tried it but you could try using the xfig device for your graphics and then using xfig2dev to convert that file to .cgm format (which is also vector based) and then in Word use: Insert | Picture or if a

Re: [R] Surprise when indexing with a factor.

2004-05-08 Thread Peter Dalgaard
pallier [EMAIL PROTECTED] writes: Given a named vector 'm' and a factor 'f' whose levels match (e.g. when 'm' is the result of a 'tapply' command using the factor f as INDEX), my intuition is that m[f] means m[as.character(f)] It's not like we haven't visited this before. As I recall it, the

[R] Re: metafile copy and R 1.9.0, trellis, grid

2004-05-08 Thread Patrick Giraudoux
OK. Deepayan sent me the copy of a chat on another list between John Fox, Duncan Murdoch and Paul Murrell. The bug in the gui.exe looks like being reported with an example to turn it before he has been definetely fixed. Just try: trellis.device(win.metafile, file=test.emf) data(iris)

[R] help about R

2004-05-08 Thread Asghar Minaei
Dear Sir/Madam Hello I'm Ph.D student of psychometric at the university of Tehran.I use R version 1.8.1. I want to upgrade the R into higher version.I downloaded the latest version R-1.9.0.tgz. Unfortunately I could not to upgrade the R. Could you tell me how I can to upgrade the R,please? Best

[R] help about R

2004-05-08 Thread Asghar Minaei
Dear Sir/Madam Hello I'm Ph.D student of psychometric at the university of Tehran.I use R version 1.8.1. I want to upgrade the R into higher version.I downloaded the latest version R-1.9.0.tgz. Unfortunately I could not to upgrade the R. Could you tell me how I can to upgrade the R,please? Best

[R] as.double.default()

2004-05-08 Thread Alain Yamakana
Hi there! This is my second message in two weeks. I am regretting to get ride of my R-1.4.1! In fact, since I upgraded to R-1.8.1 (directly from R-1.4.1) and then to R-1.9.0 I am experiencing diffulties I never faced before. Professor Ripley and Dr. Murdoch had helped with the Fatal Error.

Re: [R] as.double.default()

2004-05-08 Thread Uwe Ligges
Alain Yamakana wrote: Hi there! This is my second message in two weeks. I am regretting to get ride of my R-1.4.1! In fact, since I upgraded to R-1.8.1 (directly from R-1.4.1) and then to R-1.9.0 I am experiencing diffulties I never faced before. Professor Ripley and Dr. Murdoch had helped with

Re: [R] help about R

2004-05-08 Thread Uwe Ligges
Asghar Minaei wrote: Dear Sir/Madam Hello I'm Ph.D student of psychometric at the university of Tehran.I use R version 1.8.1. I want to upgrade the R into higher version.I downloaded the latest version R-1.9.0.tgz. Unfortunately I could not to upgrade the R. Could you tell me how I can to upgrade

[R] Indexing column of a matrix with infix $

2004-05-08 Thread chris1
I'm using 1.9.0 on Windoze 2k and I created a numeric matrix and used colnames() to give it some column names, but if I try to select a column using matrixname$validname I get a null return but if I use matrixname[,4] it works fine. Looking at the help I think this is because a matrix is not a

Re: [R] Indexing column of a matrix with infix $

2004-05-08 Thread Roger D. Peng
You can access a column of a dataframe using $ but not a matrix. That's just how it is. You can access a column of a matrix via its column name using, for example m - matrix(1:12, 4, 3) colnames(m) - c(a, b, c) m[, b] [1] 5 6 7 8 -roger chris1 wrote: I'm using 1.9.0 on Windoze 2k and I

[R] wavelet analysis

2004-05-08 Thread Peter Soros
Hello everybody, I would like to calculate a wavelet transformation of EEG data (preferably a Morlet transformation) and plot the results as a time-frequency power spectrum (using R 1.9.0 on Mac OS X). I have checked Rwave and the explanations in the book by R. Carmona et al., but couldn't

Re: [R] Indexing column of a matrix with infix $

2004-05-08 Thread Douglas Bates
chris1 [EMAIL PROTECTED] writes: I'm using 1.9.0 on Windoze 2k and I created a numeric matrix and used colnames() to give it some column names, but if I try to select a column using matrixname$validname I get a null return but if I use matrixname[,4] it works fine. Looking at the help I

[R] Installing R 1.9.0 on OSX

2004-05-08 Thread Brian Beckage
I've downloaded and installed R 1.9.0 under OS X 10.3.3. I then removed my previous R 1.8.0 installation by following the instructions in the readme file, e.g., 1. drag the StartR icon into the Trash; 2) go inside your Home directory and search for the Library folder. Inside the Library

RE: [R] as.double.default()

2004-05-08 Thread Henrik Bengtsson
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Yamakana Sent: den 8 maj 2004 17:22 To: [EMAIL PROTECTED] Subject: [R] as.double.default() Hi there! This is my second message in two weeks. I am regretting to get ride of my R-1.4.1!

[R] Getting the groupmean for each person

2004-05-08 Thread Felix Eschenburg
Hello list ! I have a huge data.frame with several variables observed on about 3000 persons. For every person (row) there is variable called GROUP which indices the group the person belongs to. There is also another variable AV for each person. Now i want to create a new variable which holds

Re: [R] Getting the groupmean for each person

2004-05-08 Thread Gabor Grothendieck
predict(lm(AV~as.factor(GROUP))) Felix Eschenburg Atropin75 at t-online.de writes: : : Hello list ! : : I have a huge data.frame with several variables observed on about 3000 : persons. For every person (row) there is variable called GROUP which indices : the group the person belongs to.

Re: [R] Indexing column of a matrix with infix $

2004-05-08 Thread Gabor Grothendieck
as.data.frame(matrixname)$validname chris1 chris1 at psyctc.org writes: : : I'm using 1.9.0 on Windoze 2k and I created a numeric matrix and used : colnames() to give it some column names, but if I try to select a : column using matrixname$validname I get a null return but if I use :

[R] (no subject)

2004-05-08 Thread rgazaffi
hello, I am working with some data which i would like to find the best fit model for them. First, this data are in a matrix. Each of the columns are treatments and the raws are repetions for the each tratment. So, i've already maden one chart with all the boxplot graphic, for each treatment.

Re: [R] Installing R 1.9.0 on OSX

2004-05-08 Thread Brian Beckage
Oops...the error was my own. I had been typing sudo ln -s /Library/Frameworks/R.framework/Resources/bin/R usr/local/bin/R instead of sudo ln -s /Library/Frameworks/R.framework/Resources/bin/R /usr/local/bin/R which makes all the difference in the world. Brian sudo ln -s

Re: [R] Upgrading (was: help about R)

2004-05-08 Thread Jason Turner
Dear Sir/Madam Hello I'm Ph.D student of psychometric at the university of Tehran.I use R version 1.8.1. I want to upgrade the R into higher version.I downloaded the latest version R-1.9.0.tgz. Unfortunately I could not to upgrade the R. Could you tell me how I can to upgrade the