Re: [R] Thrashing?

2004-11-14 Thread Christian Schulz
IMHO it's dependend on your data size and the functions you use. I'm getting same behaviour (suse9) when i use mysqlWriteTable and reshape with large datasets and a upgrade from 512MB to 1GB works much more better - but now i dream from 2GB-4GB. christian Rob Steele wrote: Does R do its own

RE: [R] density estimation: compute sum(value * probability) for

2004-11-14 Thread Ted Harding
On 13-Nov-04 bogdan romocea wrote: Dear R users, However, how do I compute sum(values*probabilities)? The probabilities produced by the density function sum to only 26%: sum(den$y) [1] 0.2611142 Would it perhaps be ok to simply do sum(den$x*den$y) * (1/sum(den$y)) [1] 1073.22 ? What

Re: [R] Odd behaviour of R 2.00

2004-11-14 Thread Peter Dalgaard
Hiroto Miyoshi [EMAIL PROTECTED] writes: Dear R users I have a data frame containing character and numeric variables, whose name is seishin. When I tried to assign NA to in the data frame, R, 2.00 showed an error message, such as seishin[seishin==]-NA Error: NAs are not allowed in

Re: [R] dyn.load problem

2004-11-14 Thread Uwe Ligges
O. Neto wrote: Hi, Uwe. Thank you for help. Yesterday another R-user Mr. Ramasamy told me to do a simple program such as (changing too the directories, now C:/minhadll/): /*file conv.c*/ #include R.h void printhello (){ Rprintf(%s, hello world\n); } When I use C:\R\rw2000\binRCMD

Re: [R] Odd behaviour of R 2.00

2004-11-14 Thread Hiroto Miyoshi
Dear Professor Dalgaard It is the NA pattern on the left hand side that matters. Does it help to use seishin[!is.na(seishin) seishin==]-NA ? Yes! the above line worked perfectly. But why? To me, !is.na(seishin) seishin== seems redundant. If you could explain this, it would be greatly

Re: [R] Odd behaviour of R 2.00

2004-11-14 Thread Prof Brian Ripley
On Sun, 14 Nov 2004, Hiroto Miyoshi wrote: Dear Professor Dalgaard It is the NA pattern on the left hand side that matters. Does it help to use seishin[!is.na(seishin) seishin==]-NA ? Yes! the above line worked perfectly. But why? To me, !is.na(seishin) seishin== seems redundant. If you could

Re: [R] Odd behaviour of R 2.00

2004-11-14 Thread Peter Dalgaard
Hiroto Miyoshi [EMAIL PROTECTED] writes: Dear Professor Dalgaard It is the NA pattern on the left hand side that matters. Does it help to use seishin[!is.na(seishin) seishin==]-NA ? Yes! the above line worked perfectly. But why? To me, !is.na(seishin) seishin== seems

Re: [R] Odd behaviour of R 2.00

2004-11-14 Thread Hiroto Miyoshi
Dear Professor Ripley and Professor Dalgaard Thank you for your quick reply. Now, I understand. Thank you. Hiroto Miyoshi [EMAIL PROTECTED] - Original Message - From: Prof Brian Ripley [EMAIL PROTECTED] To: Hiroto Miyoshi [EMAIL PROTECTED] Cc: Peter

[R] Problem updating the package foreign

2004-11-14 Thread Arin Basu
Hi Group: From an R session, I wanted to update packages, and issued the command: update.packages() R started to update the package foreign and proceeded. After downloading, while it attempted to install the packages, it came up with the following error message. I could not understand the error

[R] Inbound Virus Alert

2004-11-14 Thread SMH318
A virus has been detected in a message addressed to [EMAIL PROTECTED] from [EMAIL PROTECTED] The subject of the message is Re: Here. The virus could not be cleaned and the message is held in Dirty Messages Message from: [EMAIL PROTECTED] Message subject: Re: Here Sent to: [EMAIL PROTECTED]

Re: [R] Problem updating the package foreign

2004-11-14 Thread Prof Brian Ripley
On Sun, 14 Nov 2004, Arin Basu wrote: Hi Group: From an R session, I wanted to update packages, and issued the command: update.packages() R started to update the package foreign and proceeded. After downloading, while it attempted to install the packages, it came up with the following error

[R] Exporting to file: passing source name to file name in loop

2004-11-14 Thread Laura Quinn
Hi, I'm having a mental block as to how I can automatically assign filenames to the output of the following code. I am wishing to create a separate .png file for every image created, each of them having a sequential filename ie sourcefile_index.png so that I can create a movie from them. Please

Re: [R] Exporting to file: passing source name to file name in loop

2004-11-14 Thread Prof Brian Ripley
What does `it doesn't work' actually mean? Please read the posting guide and follow its advice. Also, please show us readable and properly indented code, using spaces consistently. (There is a chapter in `Writing R Extensions' showing you how to do this.) I just cannot parse your code, and

[R] solving system of nonlinear equations

2004-11-14 Thread Enayetur RAHEEM
Hello there Can anybody please tell me if there is any package in R to solve the following 4 nonlinear equations with 4 unknowns: alpha*exp(20/sigma)+ beta*exp(21/tau) = 2 alpha*exp(22/sigma)+ beta*exp(9/tau) = 4 alpha*exp(10/sigma)+ beta*exp(30/tau) = 6 alpha*exp(40/sigma)+ beta*exp(39/tau) = 5

Re: [R] Exporting to file: passing source name to file name in loop

2004-11-14 Thread Laura Quinn
Apologies - Sunday afternoon coding, not my forte. I am trying to pass the name of my input variable x (my.data) into the name of my output file, and am wanting to combine this with a count value. I hope that this code is a little more readable (though I seem to be having problems pasting the

Re: [R] Exporting to file: passing source name to file name in loop

2004-11-14 Thread Fernando Henrique Ferraz P. da Rosa
Laura Quinn writes: Apologies - Sunday afternoon coding, not my forte. I am trying to pass the name of my input variable x (my.data) into the name of my output file, and am wanting to combine this with a count value. I hope that this code is a little more readable (though I seem to be

[R] excel/r interface

2004-11-14 Thread Andreas Betz
Dear all, I am quite new to R and for preofessional reasons I was interested in the R/excel interface by Baier and Neuwirth. After setup I see the Rexcel and the Rhelp on the Menu bar of Microsoft Excel XP. However, after putting the formula =RApply(pchisqr, 30, 1) Excel returns the message

[R] Combining expressions and objects within labels

2004-11-14 Thread Jose A. Hernandez
Hello all, I am an R novice and I have a simple question and hope somebody can help me out. I need to place several labels in a plot, this labels are some kind of text and also some objects (which come from some more complicated R calculations). In one of this labels I'd like to place a

Re: [R] excel/r interface

2004-11-14 Thread Prof Brian Ripley
On Sun, 14 Nov 2004, Andreas Betz wrote: I am quite new to R and for preofessional reasons I was interested in the R/excel interface by Baier and Neuwirth. After setup I see the Rexcel and the Rhelp on the Menu bar of Microsoft Excel XP. However, after putting the formula =RApply(pchisqr, 30,

Re: [R] Combining expressions and objects within labels

2004-11-14 Thread Paul Murrell
Hi Jose A. Hernandez wrote: Hello all, I am an R novice and I have a simple question and hope somebody can help me out. I need to place several labels in a plot, this labels are some kind of text and also some objects (which come from some more complicated R calculations). In one of this

[R] question about the tick label.

2004-11-14 Thread Haiyong Xu
Hello, I am a beginner of R. I want to plot the vectors Y vs. X where X has continuous interger values. How can I use the name of each element as the tick label? Thanks a lot! Haiyong __ [EMAIL PROTECTED] mailing list

[R] Where has the Debian respository gone?

2004-11-14 Thread Christoph Bier
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. http://cran.r-project.org/bin/linux/debian/ gone? I tried it for about the last 7 hours. $ apt-get update [...] Err http://cran.r-project.org

RE: [R] question about the tick label.

2004-11-14 Thread Liaw, Andy
Not sure if this is what you want, but give it a shot anyway: plot(x, y, xaxt=n) axis(1, at=x, label=names(x)) Andy From: Haiyong Xu Hello, I am a beginner of R. I want to plot the vectors Y vs. X where X has continuous interger values. How can I use the name of each element as the

[R] Legend help needed

2004-11-14 Thread Sean David Richards
R : Version 1.9.1 Hi, Am having trouble adding a legend to scatterplot. R code is shown below. I have tried various incantations to add a legend (using the legend() function) to the resulting plot but without any success. Looks like it should be simple but I must be missing something. Any

Re: [R] solving system of nonlinear equations

2004-11-14 Thread Spencer Graves
Have you considered nls? If you read the help file and work through the examples, there is a good chance you can make it work, I think. I think I would start trying plinear in nls, parameterizing the problem in terms of alpha, beta, ln.sigma, and ln.tau, unless you think a solution

[R] Power curves

2004-11-14 Thread Duncan Harris
How do I draw/calculate power curves in R? Cheers, Duncan. __ [EMAIL PROTECTED] 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] Where has the Debian respository gone?

2004-11-14 Thread Dirk Eddelbuettel
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. http://cran.r-project.org/bin/linux/debian/ gone? I tried it for about

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

2004-11-14 Thread Dirk Eddelbuettel
On Sun, Nov 14, 2004 at 07:35:27PM -0600, Dirk Eddelbuettel wrote: 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.