[R] how to plot a fitted smooth line on histograms?

2005-05-22 Thread Hu Chen
for example, x - read.table(); here x is a vector containing my data to be analyzed. hist(x,plot=TRUE,breaks=200) then I got a histogram graph. However, How can't get a smooth curve based on the histogram cells to show out the outline? Thanks very much.

RE: [R] comparison operator, decimals, and signif()

2005-05-22 Thread Ted Harding
On 22-May-05 Nick Drew wrote: Hi, I recently spent quite a bit of time trouble shooting a function that I had written only to discover that the problem I was having was with the comparison operator. I assumed that the following would return TRUE: testMean - 82.8 + 0.1 testMean [1] 82.9

RE: [R] Numerical PDE Solver

2005-05-22 Thread Tolga Uzuner
Thanks. I was thinking of something like Crank-Nicolson ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Dalgaard Sent: 21 May 2005 11:53 To: [EMAIL PROTECTED] Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Numerical PDE Solver Tolga Uzuner [EMAIL

Re: [R] Suimmary of answers : Possible (ab)use of lexical scoping in R ?

2005-05-22 Thread Uwe Ligges
Emmanuel Charpentier wrote: Dear List, I asked how to create a set of functions (and maybe variables) shared by another set of functions but hidden from the main environment. Duncan Murdoch and Brian Ripley advised to use the package creation system. Brian ripley (and someone else, offlist)

Re: [R] Calling R from R and specifying wait until script is finished

2005-05-22 Thread Gabor Grothendieck
On 5/22/05, Duncan Murdoch [EMAIL PROTECTED] wrote: Lapointe, Pierre wrote: Hello, Let's say I have 50 R scripts to run. What would be the most efficient way to run them? I thought I could do multiple Rterms in a DOS batch file: Ex: Rterm 1.R 1.txt Rterm 2.R 2.txt ...

Re: [R] how to plot a fitted smooth line on histograms?

2005-05-22 Thread Wuming Gong
You may check the chapter 8 Probability distributions in An Introduction to R. Wuming On 5/22/05, Hu Chen [EMAIL PROTECTED] wrote: for example, x - read.table(); here x is a vector containing my data to be analyzed. hist(x,plot=TRUE,breaks=200) then I got a histogram graph.

R.batch (Was: Re: [R] Calling R from R and specifying wait until script is finished)

2005-05-22 Thread Henrik Bengtsson
Hi. I have a package R.batch in R.classes [http://www.maths.lth.se/help/R/R.classes/] to simplify running multiple batch jobs, which might interest you. The idea is as follows. You setup a directory structure defining a 'JobBatch'; path-to/jobs/ src/ input/ output/ erroneous/

Re: R.batch (Was: Re: [R] Calling R from R and specifying wait until script is finished)

2005-05-22 Thread A.J. Rossini
On 5/22/05, Henrik Bengtsson [EMAIL PROTECTED] wrote: -- very interesting package description deleted -- Future: Recently, I have been working on adding dependency control between jobs so certain jobs are processed before others. This is not included in the current version. Some kind of

Re: [R] Hmisc/Design and problem with cgroup

2005-05-22 Thread Aric Gregson
On 5/17/05 21:44 Frank E Harrell Jr sent the following: Aric Gregson wrote: Hello, I am trying to use the following to output a table to latex: cohortbyagesummary - by(data.frame(age,ethnicity), cohort, summary) w - latex.default(cohortbyagesummary, caption=Five Number Age

Re: [R] constraints

2005-05-22 Thread Arne Henningsen
On Sunday 22 May 2005 03:18, Ingmar Visser wrote: Is there a package in R that handles general linear (in-)equality + box constrained optimization? R help.search(constrained optimisation) constrOptim(stats) Linearly constrained optimisation Best wishes, Arne If it is not there, could

Re: [R] Maps, Eastern Europe

2005-05-22 Thread Ray Brownrigg
From: Rau, Roland [EMAIL PROTECTED] I would like to employ a European map in a presentation. My idea was to use: library(mapdata) map(worldHires, c(Austria, Switzerland, Germany)) where I include all countries from my analysis as a vector of character strings like in the example above.

Re: [R] R version 1.9.1

2005-05-22 Thread Rob J Goedman
Chris, Try duplicating R.app (select the R.app in Applications and do Command-D). Double click both versions and you have 2 completely separated versions of R. You can drag/place the multiple icons in the dock. Some issues will show up, e.g. it will use the history from the version that

Re: [R] Hmisc/Design and problem with cgroup

2005-05-22 Thread Frank E Harrell Jr
Uwe Ligges wrote: Aric Gregson wrote: On 5/17/05 21:44 Frank E Harrell Jr sent the following: Aric Gregson wrote: Hello, I am trying to use the following to output a table to latex: cohortbyagesummary - by(data.frame(age,ethnicity), cohort, summary) w - latex.default(cohortbyagesummary,

[R] skewness and kurtosis in e1071 correct?

2005-05-22 Thread Dirk Enzmann
I wonder whether the functions for skewness and kurtosis in the e1071 package are based on correct formulas. The functions in the package e1071 are: # skewness - function (x, na.rm = FALSE) { if (na.rm) x - x[!is.na(x)] sum((x -