8
I wonder if someone could be kind enough to point out what I've done wrong or
suggest some tips
for managing this, please? Thanks for your advice!
Regards,
Andrew C. Ward
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
[EMAIL PROTEC
considered questions.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
On Tuesday, December 23, 2003 3:55 AM, Rolf Turner
[SMTP:[EMAIL PROTECTED] wrote:
> This is in response to Gabor Grothendieck's commen
the main
list, particularly if it is "staffed" by volunteers.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
Quoting Gabor Grothendieck <[EMAIL PROTECTED]>:
>
>
> My personal view on thi
"x"]),
function(x) { weighted.mean(x=x$y, w=x$w)})
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
Quoting [EMAIL PROTECTED]:
> How do I go about generating a WEIGHTED mean (and
> standard error) o
reshape() looks like a good candidate for this job but I'm
not really sure about the roles of timevar and idvar for
this dataframe. I tried
t2 <- reshape(t1, direction="wide", timevar=t1[,3],
idvar=t1[,2])
which is obviously ignorant and wrong.
Thank you in
fun.
Any advice would be very welcome. I'm using R 1.7.1 on
Windows 2000.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
__
[EMAIL PROTECTED] mailing list
https:/
Dear Minghua Yao,
If you throw in a print() or two you'll get some output in
your file. You could try print(t.test(Cy3, Cy5)) or whatever
you actually want.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[
f you mean something else entirely, perhaps you'd better
rephrase the question :)
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Mahbub Latif <[EMAIL PROTECTED]>:
> Hi,
>
rough ODBC. I believe there are some
for Oracle, MySQL and others.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Wayne Jones <[EMAIL PROTECTED]>:
> Hello there fellow R-user
Dear Hannah,
My usual replies to this question are:
1. Read in just a subset (or a few random subsets) of
your data and do some analysis on each of these
2. Write some C code (either standalone or as something)
that can be called from R
3. Get even more RAM
Regards,
Andrew C
Dear Ravi,
R calls many functions that are written in FORTRAN. As a
start on how to do this, perhaps look at the cluster
package.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Ravi
I wonder if it's as simple as the two dots ("..") in the
splom line rather than three?
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Ted Harding <[EMAIL PROTECTED]>
en though a lot of R/S code is devoted to
statistical methods, there's no reason at all why all kinds
of other things can't be written.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Q
Dear Fabio,
This question, or one very much like it, appears regularly
on the list. You may consider searching for it in the
archives before going much further. The search page can be
found at http://cran.r-project.org/search.html.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical
urves with shaded areas".
Search for that in the archives.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting "Francisco J. Bido" <[EMAIL PROTECTED]>:
> Hi everyone.
often you need to do something.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Murray Jorgensen <[EMAIL PROTECTED]>:
> Andrew,
>
> This is no doubt true, but some things
concentrate on the
analysis and visualisation. This is all described in the
R Import/Export Manual.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Murray Jorgensen <[EMAIL PROTECTED]>:
You may prefer to use S-PLUS if it does precisely what you
want. In R, you could use postscript() or pdf() to save all
the graphs to a file and then view them at your leisure.
There is always par(ask=TRUE) if you wanted to look at them
on the screen.
Regards,
Andrew C. Ward
CAPE Centre
t the correct
line drawn in each panel. I believe you already have several
examples of doing this (including one from me).
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting "Brunschwi
excellent
RODBC package. Documentation suitable for R beginners is
installed by default (look for the PDF file "An
Introduction to R") and there is much additional material
available on the CRAN website. Also, try ?histogram for
more detailed information.
Regards,
Andrew C. Ward
CAPE
key=list(space="top", lines=list(lty=1), text=list
("Maximum")))
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting "Brunschwig, Hadassa {PDMM~Basel}"
<[
Perhaps you could specify the factor order you want using
the factor() function:
my.factor <- factor(something, levels=c("A","C","B"),
labels=c("A","C","B"), ordered=TRUE)
boxplot(my.vector ~ my.factor)
.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting gowuban <[EMAIL PROTECTED]>:
> Hello,
>
> I have trouble with my cluster analysis using package
> "cluster". &
Dear Timur,
sprintf may be what you want:
sprintf("%.1e", 12345678)
sprintf("%.1e", 1234567)
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Timur Elzh
Dear Philippe,
Perhaps you could try a different graphics device (maybe
postscript). On my machine, the time differences were all 1
second rather than the 3 you reported. If 300s is really
too long for you, you could get a new computer or run your
script on a faster one.
Andrew C. Ward
CAPE
Dear Michael,
If you want no axes at all, try
plot(1:10, 1:10, axes=FALSE)
To omit ticks and tick labels try
plot(1:10, 1:10, xaxt="n", yaxt="n")
To omit axis labels try
plot(1:10, 1:10, xlab="", ylab="")
Regards,
Andrew C. Ward
CAPE Centr
Dear Kurt,
I'd wait a day or so and try again. Lots of users have
downloaded R from these sites, so there was probably just
some glitch somewhere that affected you.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Aust
Would you mind giving a few more details on what you've
tried? It's hard to provide much of an answer otherwise.
You can save your text file anywhere on your network, and
then try
temp.df <- read.table("c:/temp.dat", header=TRUE)
Regards,
Andrew C. Ward
CAPE Centre
Dear Erwan,
Perhaps there is a way to do this. I typically use the
following sequence, however:
for (i in 1:10) {
postscript(file=paste("blah", i, ".ps", sep=""))
barchart(...)
dev.off()
}
Regards,
Andrew C. Ward
CAPE Centre
Departme
Dear Erwan,
Did you have a "dev.off()" somewhere after barchart?
Otherwise you never know what you might get in the png file.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quo
the menus
Help->Manuals->An Introduction to R. Please work through
this tutorial there before you go much further.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting jill irwin <[EMA
As always, it depends on your priorities and motivation. If
that extra 10% is important and if you can be bothered
writing the C++, then putting the whole thing into C++ may
be worth it. If not then you could let R deal with the
input and output.
Regards,
Andrew C. Ward
CAPE Centre
Department
Most functions in R have default arguments, and these are
specified in the function definition. For instance, the
following function has a default argument of 10 which is
used if none is specified:
do.it <- function(n=10) { rnorm(n) }
do.it()
Regards,
Andrew C. Ward
CAPE Centre
Department
l=i)
panel.abline(lm(y[w] ~ x[w], weights=(weights,
[subscripts])[w]), lty=i, col=i)
}
}, key=list(space="top", columns=2, points=list(pch=1:2,
col=1:2), text=list(paste("Group", 1:2),
col=1:2)))
Regards,
Andrew C. Wa
g the archive may be an option as well.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting bart rossel <[EMAIL PROTECTED]>:
> Dear whom this may concern,
>
> I am having prob
This information and advice is indeed very useful.
Some would wonder, however, whether a file delimited with semi-
colons can still be called a CSV file. Excel Help has "CSV (Comma
delimited) format") ;-)
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The Uni
Edoardo,
I'm wondering why
postscript(file=filename)
doesn't suffice, and you need to use "eval" instead?
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Edo
A common approach for getting data into R from Excel is to
save the spreadsheet as a CSV file and then read it into R
using read.csv. CRAN contains references to other means of
directly linking Excel and R. You may find the CSV approach
good enough.
Regards,
Andrew C. Ward
CAPE Centre
The following works. No doubt there are other ways to do it.
plot(1:10, 1:10, xaxt="n")
axis(side=1, at=1:10, labels=NA)
text(x=1:10, y=rep(0, 10), col=1:10, 1:10, xpd=NA)
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisban
You can achieve this with try(). Look at the second example (?try),
which is probably most like what you want to do.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
On Monday, February
exact error message if you
want a more specific advice. Perhaps R cannot find the
file.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Nicoleris Theodoros <[EMAIL PROTECTED]>
!is.na(match(myvec, myscaler)) is probably what you want.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting [EMAIL PROTECTED]:
> Dear R users,
>
> I have some R code and
27;ve wanted both to
display and print a report. Having separate viewing and printing versions of
graphs is not very convenient.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting "Fa
do (survey,
hmisc, mice, etc).
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Andrej Kveder <[EMAIL PROTECTED]>:
> Hi!
>
> I am a relatively new user of R and I use it to p
I think this is what pairs() does.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Feng Zhang <[EMAIL PROTECTED]>:
> Hey, All
>
> Now I have a data set which is n-dim
arguments to lattice functions.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting [EMAIL PROTECTED]:
> Dear List Members
>
> I'm using R to create a trellis plot using the libr
ss() to put
different coloured lines on the plot.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting pavel koulikov <[EMAIL PROTECTED]>:
> Hi
> I have 4 vectors x,y,z,v
> I nee
t see much merit in paying for an editor when R itself is
free. Others may say "Look what I bought with the money I saved on R" :-)
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
untry[subscripts])
})
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
[EMAIL PROTECTED]
Quoting Nirmala Ravishankar <[EMAIL PROTECTED]>:
>
> So, I am trying to label the points in a graph, but ca
Hamish,
I usually save Excel files as CSV, and then use read.csv() to get them into R.
Also, there are variants of read.table() that seem more successful at reading
in delimited files (see read.delim, read.delim2).
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The
Is your data such that it can be restructured into a form amenable to a
lattice plot, such as xyplot()? In that case, the legend (key in lattice)
can be placed pretty much anywhere.
Regards,
Andrew C. Ward
CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane
51 matches
Mail list logo