[R] count.fields vs read.table

2005-12-04 Thread Andrew C. Ward
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

RE: [R] draft of posting guide

2003-12-24 Thread Andrew C. Ward
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

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

2003-12-16 Thread Andrew C. Ward
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

Re: [R] weighted mean

2003-11-25 Thread Andrew C. Ward
"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

[R] Trouble reshaping some data

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

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

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

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 [

Re: [R] lattice plot - portrait / landscape

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

Re: [R]: RODBC column length>255

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

Re: [R] cannot allocate vector of size...

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

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] Putting regression lines on SPLOM

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

Re: [R] laplace transform

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

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-27 Thread Andrew C. Ward
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.

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

Re: [R] R tools for large files

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

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] again Trellis plot

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

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

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

Re: [R] adding to Trellis plots

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

r-help@stat.math.ethz.ch

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)

Re: [R] high memory allocation

2003-08-14 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 gowuban <[EMAIL PROTECTED]>: > Hello, > > I have trouble with my cluster analysis using package > "cluster". &

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 Elzh

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] 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 Centr

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 Aust

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

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 Departme

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] Quo

Re: [R] hi

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

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] 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] Multipanel weighted regression lines.

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

Re: [R] R and XP

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

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 Uni

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 Edo

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 Brisban

RE: [R] error-handling question

2003-02-24 Thread Andrew C. Ward
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

Re: [R] question

2003-02-22 Thread Andrew C. Ward
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]>

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

Re: [R] Pretty onscreen plots?

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

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

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

Re: [R] Help on Scatte Plot Matrix

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

Re: [R] Question about trellis graphs

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

Re: [R] (no subject)

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

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

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

Re: [R] Using ltext

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

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 The

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