[R] count.fields vs read.table

2005-12-04 Thread Andrew C. Ward
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 PROTECTED] __ R-help@stat.math.ethz.ch mailing list https

RE: [R] draft of posting guide

2003-12-24 Thread Andrew C. Ward
. 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 commentary on Tony Plate's draft

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Andrew C. Ward
, 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 this is that there is need for a friendly list

Re: [R] weighted mean

2003-11-25 Thread Andrew C. Ward
]), 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) of a variable (e.g

[R] Trouble reshaping some data

2003-10-29 Thread Andrew C. Ward
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 advance for any comments. Regards, Andrew C. Ward CAPE Centre Department

[R] Getting alternative editor to stay as a foreground task

2003-10-07 Thread Andrew C. Ward
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://www.stat.math.ethz.ch/mailman

Re: [R] Question in Using sink function

2003-09-16 Thread Andrew C. Ward
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 [EMAIL

Re: [R] lattice plot - portrait / landscape

2003-09-09 Thread Andrew C. Ward
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, How can I use portrait/landscape option

Re: [R]: RODBC column length255

2003-09-08 Thread Andrew C. Ward
. 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-users, I am using

Re: [R] laplace transform

2003-09-06 Thread Andrew C. Ward
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

Re: [R] laplace transform

2003-09-04 Thread Andrew C. Ward
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] Quoting Luca Laghi [EMAIL

Re: [R] Call R function from C code

2003-09-03 Thread Andrew C. Ward
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

Re: [R] Newbie graphing questions

2003-08-28 Thread Andrew C. Ward
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. R is new to me and I'm very

Re: [R] R tools for large files

2003-08-25 Thread Andrew C. Ward
to 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]: I'm

Re: [R] R tools for large files

2003-08-25 Thread Andrew C. Ward
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 in R work very

Re: [R] graphic widow overwrite

2003-08-21 Thread Andrew C. Ward
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

Re: [R] high memory allocation

2003-08-14 Thread Andrew C. Ward
, 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. diana and agnes both seem to try to allocate

Re: [R] boxplotlevels

2003-08-14 Thread Andrew C. Ward
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

Re: [R] adding to Trellis plots

2003-08-14 Thread Andrew C. Ward
=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} [EMAIL PROTECTED]: Hello everyone I have data grouped by subjects

Re: [R] Reading Excel files and making histograms (was: no subject)

2003-08-14 Thread Andrew C. Ward
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 Centre Department

Re: [R] help with graphics

2003-08-03 Thread Andrew C. Ward
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] Quoting Erwan BARRET

Re: [R] history for graphics

2003-08-03 Thread Andrew C. Ward
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 Department of Chemical Engineering The University

Re: [R] (no subject)

2003-08-03 Thread Andrew C. Ward
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 Department of Chemical

Re: [R] Problems installing R on Windows XP

2003-08-03 Thread Andrew C. Ward
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 Australia

Re: [R] how to make a plot without any axis-labeling

2003-08-03 Thread Andrew C. Ward
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 Centre Department of Chemical Engineering The University

Re: [R] How to speed the shut down of the graphic device

2003-08-03 Thread Andrew C. Ward
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

Re: [R] 'format' problem

2003-08-03 Thread Andrew C. Ward
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 Elzhov [EMAIL PROTECTED]: Dear R

Re: [R] hi

2003-07-28 Thread Andrew C. Ward
-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 [EMAIL PROTECTED]: Guess what I

Re: [R] function default

2003-07-21 Thread Andrew C. Ward
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

Re: [R] R and C++ compared with only C++

2003-07-21 Thread Andrew C. Ward
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

Re: [R] packaged datasets in .csv format (David Firth)

2003-07-10 Thread Andrew C. Ward
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 University

Re: [R] R and XP

2003-07-10 Thread Andrew C. Ward
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 problems running R under

Re: [R] 'postscript' command within a function

2003-07-06 Thread Andrew C. Ward
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 Edoardo Airoldi [EMAIL

Re: [R]

2003-03-06 Thread Andrew C. Ward
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

Re: [R] axis annotation

2003-02-27 Thread Andrew C. Ward
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 Brisbane Qld 4072

Re: [R] question

2003-02-22 Thread Andrew C. Ward
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]: Iam a novice R

Re: [R] Pretty onscreen plots?

2003-02-18 Thread Andrew C. Ward
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 Falcon, Seth

Re: [R] function

2003-02-18 Thread Andrew C. Ward
!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 trying

Re: [R] a question regarding s-plus libraries and R

2003-02-07 Thread Andrew C. Ward
, 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 prepare my dissertation. I

Re: [R] Question about trellis graphs

2003-01-30 Thread Andrew C. Ward
. 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 library of Pinheiro Bates (trellis graph for grouped

Re: [R] Using ltext

2003-01-23 Thread Andrew C. Ward
[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 cannot quite figure out

Re: [R] ConTEXT .chl file for R?

2003-01-23 Thread Andrew C. Ward
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] Quoting Kenneth

Re: [R] Read.table for macs

2003-01-21 Thread Andrew C. Ward
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

RE: [R] Re: Universal legend in plot

2003-01-17 Thread Andrew C. Ward
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