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
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
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
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
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,
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
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:
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
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 -
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
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]
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
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
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
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
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
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!
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
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
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
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
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
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
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
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{
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
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
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
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
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
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
31 matches
Mail list logo