[R] Rd.sty not found -

2003-12-23 Thread Arnab mukherji
Hi I am still trying to wrap up a package using Rcmd (in windows 2000 professional with R 1.8.1). I have made some progress - and now at least Rcmd check works - it still giving me an error message when it creates latex help files though. Thus I get: c:\rpack Rcmd check test * checking for

[R] revision of posting guide

2003-12-23 Thread Tony Plate
I've placed a revision of the posting guide at http://pws.prserv.net/tap/posting-guide-draft2.html. (Posted there to make the HTML formatting easy to read.) I've tried to incorporate the suggestions people posted and mailed to me. Quite a few were of the form too long, but you should add

Re: [R] Rd.sty not found -

2003-12-23 Thread Prof Brian Ripley
On Tue, 23 Dec 2003, Arnab mukherji wrote: Hi I am still trying to wrap up a package using Rcmd (in windows 2000 professional with R 1.8.1). I have made some progress - and now at least Rcmd check works - it still giving me an error message when it creates latex help files though. Thus

[R] unary operations

2003-12-23 Thread Fredrik Lundgren
Hello, I had expected that the following should work mat - matrix(c(5, 7, 6, 7, 8, 10, 17, 28, 36, 41, 46, 140), nrow = 2, byrow = T) mat apply(mat, 2, function(e1,e2) e1*e2) apply(mat, 2, function(e1,e2) e1+e2) apply(mat, 2, function(e1,e2) e1-e2) apply(mat, 2, function(e1,e2) e1/e2) but I

RE: [R] draft of posting guide

2003-12-23 Thread Pascal . Niklaus
Having followed the discussion about this posting guide, I'd like to add a few comments. While I think that the *content* is fully appropriate, I am not sure whether the *form* is the appropriate, for the following reason: - The folks posting questions like I've installed R two minutes ago,

Re: [R] unary operations

2003-12-23 Thread Barry Rowlingson
Fredrik Lundgren wrote: apply(mat, 2, function(e1,e2) e1*e2) but I get Error in FUN(newX[, i], ...) : Argument e2 is missing, with no default What do I do wrong? Misunderstand what 'apply' does perhaps? It applies your function to columns (the '2') of the matrix, and so the function

AW: [R] unary operations

2003-12-23 Thread Unternährer Thomas, uth
Hi, This should do what you are looking for: x - matrix(1:10, byrow = TRUE, nrow = 2) mapply(function(x1, x2) x1+x2, x[1, ], x[2, ]) But have also a look at colSums and colMeans HTH Thomas -Ursprüngliche Nachricht- Von: Fredrik Lundgren [mailto:[EMAIL PROTECTED] Gesendet:

[R] What's latex for?

2003-12-23 Thread [EMAIL PROTECTED]
As an R absolute beginner when I update my R 1.8.1, after installing the packages I see the various updated commands orderly running in a table on the screen where, among other things, latex and example are indicated. 1) Being an old user of latex what **exactly** the latex label on a command

Re: [R] error propagation - hope it is correct subject

2003-12-23 Thread Petr Pikal
Hallo Thomas Thank you for your answer, even I am not sure how to do it in R (or maybe at all). My mathematics background is only faint so I drop the first possibility which is for me rather cryptic. Does your second suggestion mean: 1: compute random variable y -

RE: [R] Memory allocation

2003-12-23 Thread JFRI (Jesper Frickmann)
Go download R version 1.8.1 (or later if available). They fixed something with memory management from 1.8.0 to 1.8.1 which helped me out of the exact same problem. I think it has to do with memory fragmentation; R cannot find any chunk big enough for even a small vector after some time. Kind

[R]plot.survfit

2003-12-23 Thread Fredrik Lundgren
Hello, How do I get plot.survfit to draw a survival curve with prespecified time periods, say 1 month, 2, months, 3 months, 6 months, 1 year, 2 years etc) instead of the individual times of all events? Sincerely Fredrik Lundgren __ [EMAIL PROTECTED]

[R] How can I put error bars on a barplot() ?

2003-12-23 Thread olivier
Hi all, I am a relatively new R user... trying to put error bars (from SD values) on my data represented with barplot(). But I can't find any function or instruction to do so. Is there an easier way to do this than using segments() as I saw in an example in the R reference manual ? Then, can I

Re: [R] How can I put error bars on a barplot() ?

2003-12-23 Thread Marc Schwartz
On Tue, 2003-12-23 at 08:04, olivier wrote: Hi all, I am a relatively new R user... trying to put error bars (from SD values) on my data represented with barplot(). But I can't find any function or instruction to do so. Is there an easier way to do this than using segments() as I saw in an

[R] (no subject)

2003-12-23 Thread Fam. Stallforth
Hello! I am trying to import data to R. The programm always responds with: incomplete final line found by readTableHeader on Data.doc What does that mean, and what could I change? Thank you very much in advance. Regards Florian Stallforth __ [EMAIL

Re: [R] error propagation - hope it is correct subject

2003-12-23 Thread Thomas W Blackwell
Petr - Yes, you are interpreting the second suggestion exactly correctly, apart from concern for possible correlations among x1,x2,x3. If one can treat them as independent, I would do exactly as you show: generate a vector of, say, n = 1 simulated draws from x1, another vector of the same

Re: [R] (no subject)

2003-12-23 Thread Thomas W Blackwell
Florian - One thing to *try* would be: work from the R command line and set the parameter nlines in read.table() to one less than the number of lines of data in the file. If this works, then you can at least read in all but the last line. I suspect something like a missing newline character

Warning when reading data files (was Re: [R] (no subject))

2003-12-23 Thread Prof Brian Ripley
On 23 Dec 2003, Fam. Stallforth wrote: Hello! I am trying to import data to R. The programm always responds with: incomplete final line found by readTableHeader on Data.doc What does that mean, and what could I change? It means the final line is incomplete, and you should complete it!

[R] R[Mailman] question: contour plot for discrete data

2003-12-23 Thread Dieter Menne
You wrote: --- I have matrix (n x3) that represents discrete data. Each row of matrix is 3-D point (x,y,z). I would like to get contour map (z value) at two dimension (x,y). How can I use related contour function to do this job? --- Paul Murrell ([EMAIL PROTECTED]) sent me his little clines

Re: [R] What's latex for?

2003-12-23 Thread Thomas Lumley
On Tue, 23 Dec 2003, [EMAIL PROTECTED] wrote: As an R absolute beginner when I update my R 1.8.1, after installing the packages I see the various updated commands orderly running in a table on the screen where, among other things, latex and example are indicated. 1) Being an old user of

Re: [R]plot.survfit

2003-12-23 Thread Thomas Lumley
On Tue, 23 Dec 2003, Fredrik Lundgren wrote: Hello, How do I get plot.survfit to draw a survival curve with prespecified time periods, say 1 month, 2, months, 3 months, 6 months, 1 year, 2 years etc) instead of the individual times of all events? Why would you want to do that? If you have

[R] [R-pkgs] circular package

2003-12-23 Thread Claudio Agostinelli
Dear All, Ulric Lund and me are developing a new package called 'circular' that as soon as possible will substitute 'CircStats' package. A pre-released is available at: http://www.dst.unive.it/~claudio/R/circular_0.1.tar.gz I kindly ask everybody is using CircStats to check this new package and

[R] Sweave question

2003-12-23 Thread Rafael A. Irizarry
Using Sweave in the tools library (R version 1.8.0: sorry i havent upgraded), it seems i cant use if statements in R chunks that make graphs. i have this: fig=TRUE,echo=F= par(mfrow=c(1,1)) if(exists(x)) plot(x,x) else{ plot(1,1,type=n) text(1,1,data not available.\n) } @ and I

Re: [R] Sweave question

2003-12-23 Thread Prof Brian Ripley
This is the standard problem with if ... else: that will not work at the command line either. Use braces like if(exists(x)) { plot(x,x) } else { plot(1,1,type=n) text(1,1,data not available.\n) } which should do the trick. On Tue, 23 Dec 2003, Rafael A. Irizarry wrote: Using Sweave

RE: [R] draft of posting guide

2003-12-23 Thread Tony Plate
I do share Eryk Wolski's and Pascal Nicklaus' concerns that my revision of the posting guide is somewhat unfriendly and negative. My problem here was to keep it to a reasonable length, which meant eliminating sentences whose function was mainly to be positive and friendly. Pascal put it

Re: [R] Sweave question

2003-12-23 Thread Thomas Lumley
On Tue, 23 Dec 2003, Rafael A. Irizarry wrote: Using Sweave in the tools library (R version 1.8.0: sorry i havent upgraded), it seems i cant use if statements in R chunks that make graphs. i have this: fig=TRUE,echo=F= par(mfrow=c(1,1)) if(exists(x)) plot(x,x) else{

[R] Re: if .. else parse error {was Sweave question}

2003-12-23 Thread Martin Maechler
Rafael == Rafael A Irizarry [EMAIL PROTECTED] on Tue, 23 Dec 2003 10:44:38 -0500 (EST) writes: Rafael Using Sweave in the tools library (R version 1.8.0: Rafael sorry i havent upgraded), it seems i cant use if Rafael statements in R chunks that make graphs. i have Rafael

[R] test h-f sphericity test?

2003-12-23 Thread John Christie
I posted some R code that could be an h-f sphericity test. Is there anyone out there with SPSS, Systat, or some other package that has a built in test who can verify whether it is accurate or not? John (here is the code again) # This returns the Huynh-Feldt or Box Correction for degrees of

Re: [R] draft of posting guide. Sorry.

2003-12-23 Thread Patrick Connolly
On Tue, 23-Dec-2003 at 05:31AM +0100, Eryk Wolski wrote: [] | I cooled down now and therefore give me a chance to explain why | that user guide scares me. A few comments: | As I said, the guide had given me the feeling that someone wants to | censor me. You mean you reacted in a way

[R] Is there an R or S implementation of PAMSIL or PAMMEDSIL

2003-12-23 Thread Mulholland, Tom
I have some data that is dwarfed by one large cluster. I came across a paper titled A New Partitioning Around Medoids Algorithm (van der Laan, Pollard Bryan, 2002) http://www.bepress.com/ucbbiostat/paper105/ that describes PAMSIL and PAMMEDSIL that look as though they might be more appropriate

[R] question: DLL or EXE from R procedures

2003-12-23 Thread PaTa PaTaS
Hi, I wonder if it is possible to create an DLL or EXE file performing R procedures. Instead of running R, reading data and calling some procedures, I would like to use R functions in the following way: C:\linearRegression.exe data.txt which would produce let's say file output.txt with the

Re: [R] draft of posting guide

2003-12-23 Thread Patrick Burns
I think the idea of answering simple questions if it hasn't been answered after 4 * runif(1) hours is a brilliant idea (well done Tony -- I'm jealous). However, a slight tweak would be even better. It should be number of years you've used S times runif(1) hours. This encourages more people to