Re: [R] logical operators priority

2007-07-17 Thread ecatchpole
-contained, reproducible code. -- Dr E.A. Catchpole Visiting Fellow Univ of New South Wales at ADFA, Canberra, Australia _ and University of Kent, Canterbury, England 'v'- www.pems.adfa.edu.au/~ecatchpole / \ - fax: +61 2 6268 8786 m m

Re: [R] Optimization (MAX) with R

2007-07-17 Thread ecatchpole
Talarico Massimiliano (UniCredit Xelion Banca) wrote on 07/17/2007 06:00 PM: Dear all, I need a suggest to obtain the max of this function: Max x1*0.021986+x2*0.000964+x3*0.02913 with these conditions: x1+x2+x3=1; sqrt((x1*0.114434)^2+(x2*0.043966)^2+(x3*0.100031)^2)=0.04; x1=0;

Re: [R] Calculating Percentile in R

2007-06-18 Thread ecatchpole
-contained, reproducible code. -- Dr E.A. Catchpole Visiting Fellow Univ of New South Wales at ADFA, Canberra, Australia _ and University of Kent, Canterbury, England 'v'- www.pems.adfa.edu.au/~ecatchpole / \ - fax: +61 2 6268 8786 m m

Re: [R] Extracing Interval of Time in seconds in R

2007-04-23 Thread ecatchpole
South Wales at ADFA, Canberra, Australia _ and University of Kent, Canterbury, England 'v'- www.pems.adfa.edu.au/~ecatchpole / \ - fax: +61 2 6268 8786 m m- ph: +61 2 6268 8895 __ R-help

Re: [R] Problem with dgamma ?

2007-04-22 Thread ecatchpole
South Wales at ADFA, Canberra, Australia _ and University of Kent, Canterbury, England 'v'- www.pems.adfa.edu.au/~ecatchpole / \ - fax: +61 2 6268 8786 m m- ph: +61 2 6268 8895 __ R-help

Re: [R] ?Bug: '' and '' give different results?

2007-04-02 Thread ecatchpole
/~ecatchpole / \ - fax: +61 2 6268 8786 m m- ph: +61 2 6268 8895 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] non-linear curve fitting

2007-03-22 Thread ecatchpole
_ and University of Kent, Canterbury, England 'v'- www.pems.adfa.edu.au/~ecatchpole / \ - fax: +61 2 6268 8786 m m- ph: +61 2 6268 8895 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] integrate over polygon

2007-02-14 Thread ecatchpole
. -- Dr E.A. Catchpole Visiting Fellow Univ of New South Wales at ADFA, Canberra, Australia _ and University of Kent, Canterbury, England 'v'- www.pems.adfa.edu.au/~ecatchpole / \ - fax: +61 2 6268 8786 m m- ph: +61 2 6268 8895

Re: [R] Firefox extension fo R Site Search

2006-08-28 Thread ecatchpole
- www.pems.adfa.edu.au/~ecatchpole - fax: +61 2 6268 8786 - ph: +61 2 6268 8895 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Can I run both R and Python through Emacs

2005-11-08 Thread ecatchpole
Try sending this question to [EMAIL PROTECTED] Ted. On 09/11/05 10:09, Srinivas Iyyer wrote,: Dear Group, I am new to R and Emacs both. Until now I have been working through R's interactive space. Today I configured R+XEmacs by following John Fox help file - how to configure Xemacs +

Re: [R] Downloading zip files

2005-10-30 Thread ecatchpole
Well, there's downTHEMall, a Mozilla Firefox extension (https://addons.mozilla.org/extensions/). Ted. On 31/10/05 11:38, Murray Jorgensen wrote,: I have not had a great amount of success installing/updating packages from the Packages menu of Rgui under Windows XL. (Except for installing

Re: [R] font=5 (Was: greek symbols using pch)

2005-10-11 Thread ecatchpole
: some are being fixed for 2.3.0.) On Tue, 11 Oct 2005, ecatchpole wrote: On 11/10/05 01:12, Earl F. Glynn wrote,: FISCHER, Matthew [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In a plot, can I specify pch to be a greek symbol? (I looked at show.pch() in the Hmisc package

Re: [R] font=5 (Was: greek symbols using pch)

2005-10-11 Thread ecatchpole
Earl, I don't think that's a bug. Try pdf(font5.pdf, onefile=FALSE) and similarly for postscript(). Ted. On 12/10/05 01:23, Earl F. Glynn wrote,: ecatchpole [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for that. Very instructive, and much appreciated. And sorry, yes

Re: [R] greek symbols using pch

2005-10-10 Thread ecatchpole
On 11/10/05 01:12, Earl F. Glynn wrote,: FISCHER, Matthew [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In a plot, can I specify pch to be a greek symbol? (I looked at show.pch() in the Hmisc package but couldn't see the right symbols in there). If not, I guess I can get

Re: [R] Is this correct?

2005-10-10 Thread ecatchpole
See the R FAQ list, section 7. Why doesn't R think these numbers are equal? Ted. On 11/10/05 15:42, Joe wrote,: Dear userR, With the following results, are they correct or acceptable? x - c(1.4, 1.2, 2.8) sum(x) [1] 5.4 sum(x) == 5.4 [1] FALSE (1.4 + 1.2 + 2.8) - 5.4 [1] -8.881784e-16

Re: [R] sampling vectors

2005-10-04 Thread ecatchpole
Eric, If you want samples of size 3 from 0:50, with sum==50, this seems to do the job (with apologies to those who really know how to program in R): tot - 50 ii - 0 aa - list() for(i in 0:tot){ for(j in 0:(tot-i)){ k - tot-i-j ii - ii+1 aa[[ii]] - list(i=i,j=j,k=k)

Re: [R] Problem reading in external data and assigning data.frames within R

2005-10-04 Thread ecatchpole
Try xnew - edit(data.frame()) Ted. On 04/10/05 16:29, Nathan Dieckmann wrote,: Hey there, I apologize if this is an irritatingly simple question ... I'm a new user. I can't understand why R flips the sign of all data values when reading in external text files (tab delimited or

Re: [R] Rcmdr and scatter3d

2005-10-04 Thread ecatchpole
Niara, Alternatively, instead of scatter3d, the analogy to hold on in Matlab is to use plot() for the first set of data, then points() for the remainder. See ?plot ?points Ted. On 05/10/05 11:18, John Fox wrote,: Dear Naiara, Combine the data sets and differentiate among them with a

Re: [R] sampling vectors

2005-10-04 Thread ecatchpole
Eric, Following on from Ravi's suggestion, try ex - c(30,13,9,8,7,7,7,6,6,5,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1) tot - sum(ex) N - length(ex) rmultinom(n=3, size=tot, prob=rep(1,N)) Ted. On 05/10/05 06:07, Nordlund, Dan wrote,: Eric, -Original Message- From: [EMAIL PROTECTED]

Re: [R] Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ

2005-10-03 Thread ecatchpole
Try plot(data.df$temp, data.df$output) Ted. On 04/10/05 07:31, Robbie Turner wrote,: I am currently trying to use R to construct a regression model to explain output based on temperature. I have combined my output and temp data into a notepad file. there is no problem with loading the data

Re: [R] about pnorm

2005-08-29 Thread ecatchpole
Try ?pt Ted. On 30/08/05 13:33, 孟欣 wrote,: As to the functionpnorm,the default degree of freedom(df) is infinite. I wanna know how to set the df as I want. Help on pnorm doesn't have df setting.The only choice are:mean, sd, lower.tail, log.p,but no df. For instance: sample size=6

Re: [R] A coding question involving variable assignments

2005-08-11 Thread ecatchpole
On 12/08/05 05:55, xpRt.wannabe wrote,: Dear List, I have the following code that does what I want: x - replicate(5,replicate(10,sum(rnorm(rpois(1,10) How might one change it such that the maximum value generated by rnorm(rpois(1,10)) can be retrieved for later use? set.seed(99) x

Re: [R] A coding question involving variable assignments

2005-08-11 Thread ecatchpole
4.6865908 0.9852816 1.032410 On 12/08/05 12:17, xpRt.wannabe wrote,: Ted and List, In your code that produced 'mx', you dropped sum() from my original code though. As a result, the 10 x 5 max's are of the same value. Unfortunately, that's not what I need. On 8/11/05, ecatchpole

Re: [R] A coding question involving variable assignments

2005-08-11 Thread ecatchpole
On 12/08/05 13:27, xpRt.wannabe wrote,: Ted and List, What I need is I need to know what max of rnorm(rpois(1,10)) is before R does sum(), replicate(10, ...) and replicate(5, ...). The fact that you have set.seed(99) twice, does that mean, say, entry [1,1] 0.4896243 in 'mx' is one of the

[R] glmm multinomial?

2005-01-13 Thread ecatchpole
I'm looking for something like Brian Ripley's glmmPQL that will handle multinomial data. Does anyone know of anything? Thanks, Ted. -- Dr E.A. Catchpole Visiting Fellow Univ of New South Wales at ADFA, Canberra, Australia and University of Kent, Canterbury, England - [EMAIL PROTECTED] -