Re: [R] Automatic paren/bracket closing in 2.5.0?

2007-06-18 Thread Duncan Murdoch
. Unfortunately it didn't make it to the Preferences UI, so you have to paste this in Terminal: defaults write org.R-project.R auto.close.parens NO If you want to revert back to the default you can use: defaults delete org.R-project.R auto.close.parens Duncan Murdoch

Re: [R] triangle contour plots

2007-06-18 Thread Duncan Murdoch
==1 at the top, and p3==1 at the bottom left. Duncan Murdoch Functions triplot(), triangle.plot(), and ternaryplot() give only scatterplots, AFAICS -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023

Re: [R] source a specific function

2007-06-18 Thread Duncan Murdoch
source(clipboard), or just paste the selected text. I think source(clipboard) is Windows-specific, but other platforms support copy and paste in their own ways. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Large Binary file reader for Simple minds

2007-06-18 Thread Duncan Murdoch
(con, 1) result - readBin(con, integer, size=1, signed=FALSE) close(con) Duncan Murdoch __ 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] source a specific function

2007-06-18 Thread Duncan Murdoch
. Duncan Murdoch __ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] package with fortran 90 subroutines under windows xp

2007-06-15 Thread Duncan Murdoch
. Duncan Murdoch __ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] Grahpics problem

2007-06-15 Thread Duncan Murdoch
to the outer margins, but remember first to create some space there. For example, par(oma=c(0,0,2,0),mfrow=c(2,2)) plot(1) plot(2) plot(3) plot(4) mtext(Main title, side=3, outer=TRUE) Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list

Re: [R] Using subset() in a user-defined function

2007-06-14 Thread Duncan Murdoch
() if you pass it a subset of the wrong length, so it might fail if all args are missing, but otherwise I think it should work. It does depend on defaults for the args existing and not causing errors in the equality tests (it's not using shortcut evaluation). Duncan Murdoch

Re: [R] Problems with na.rm=T

2007-06-14 Thread Duncan Murdoch
such a variable). Don't keep big workspaces full of stuff you don't know about, create a new empty one in each session. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Using subset() in a user-defined function

2007-06-14 Thread Duncan Murdoch
master.frame. Duncan Murdoch -- jared tobin, student research assistant dept. of fisheries and oceans [EMAIL PROTECTED] -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 11:28 AM To: Tobin, Jared Cc: r-help@stat.math.ethz.ch Subject

Re: [R] open .r files with double-click

2007-06-09 Thread Duncan Murdoch
a new window in the same session, but that takes more work; not sure I'll get to this. Duncan Murdoch __ 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] world map matrix

2007-06-08 Thread Duncan Murdoch
side of the map. The display also doesn't go all the way to the south pole. I produced a couple of rectangular bitmaps covering 90 south to 90 north and 180 west to 180 east; they're included in the rgl package (and used to display globes in the persp3d example). Duncan Murdoch

Re: [R] evaluating variables in the context of a data frame

2007-06-08 Thread Duncan Murdoch
. Duncan Murdoch __ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] Problems compiling RMySQL

2007-06-03 Thread Duncan Murdoch
of the Installation and Administration manual. Duncan Murdoch HTH -- David On 6/2/07, Paulino Perez Rodriguez [EMAIL PROTECTED] wrote: Hello, I am trying to compile/Install RMySQL_0.6-0 in R-2.4.1/2.5.0 under Windows XP MCE, I am using MySQL 5.0.41. I have followed the instructions in the file

Re: [R] opinions please: text editors and reporting/Sweave?

2007-05-30 Thread Duncan Murdoch
might find the shareware editors WinEdt or Textpad more familiar. WinEdt has advantages of lots of LaTeX integration. Duncan Murdoch My questions: What, in your opinion, is the simplest way to integrate text and graphics reports into a single report such as a pdf file. If the answer

Re: [R] rgl.postscript

2007-05-29 Thread Duncan Murdoch
, and you might be better off using a bitmap copy with rgl.snapshot. Duncan Murdoch __ 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 and provide

Re: [R] do not eval vignettes during R CMD build

2007-05-28 Thread Duncan Murdoch
that. Duncan Murdoch __ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] How to check for existence url from within a function?

2007-05-26 Thread Duncan Murdoch
' if an error occurs, but there may be circumstances (in the future?) where different types of errors are signalled by using a more complicated class. Duncan Murdoch print(try.error) try(close(con.url)) invisible(try.error) } ## call the function url.error(url.string) # result - FALSE

Re: [R] Interactive plots?

2007-05-26 Thread Duncan Murdoch
Your link says jpg, not svg. When I open it in Firefox in XP, however, none of the tooltips appear when I hover over the object. What do I need to solve this problem? Don't convert to jpeg? Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list

Re: [R] File path expansion

2007-05-25 Thread Duncan Murdoch
concept that makes sense in Unix-like shells, but not in Windows. Duncan Murdoch __ 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 and provide

Re: [R] Possible ld.exe problem when building

2007-05-23 Thread Duncan Murdoch
. Did you get them from my page? What URL? Duncan Murdoch I received some odd errors messages, looked on the R Search and found a similar problem. The suggestion was to re-load ld.exe. I downloaded and installed everything again. Same problem. I am including my output. c:\esr\R

Re: [R] Fisher's r to z' transformation - help needed

2007-05-23 Thread Duncan Murdoch
)) sd(f) [1] 0.6571383 1/sqrt(p-3) [1] 0.7071068 Duncan Murdoch __ 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 and provide commented

Re: [R] German Map in package maps

2007-05-22 Thread Duncan Murdoch
(Berlin$long, Berlin$lat, Munich$long, Munich$lat) Duncan Murdoch __ 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 and provide commented

Re: [R] saving datafreame object problem

2007-05-22 Thread Duncan Murdoch
give the object once. You don't need its name separately from its value: save(dtaa, file=c:/dtaa) The way you did it you will save the object twice. d = load(c:/dtaa) head(d) # all data is lost, it only shows [1] dtaa dtaa That's why the name was listed twice here. Duncan Murdoch

Re: [R] Source code of add1

2007-05-21 Thread Duncan Murdoch
the source code of add1? It's in https://svn.r-project.org/R/trunk/src/library/stats/R/add.R or substitute tags/R-x-y-z for trunk if you want to see what it looked like in R version x.y.z. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] quartz() on MAC OSX

2007-05-21 Thread Duncan Murdoch
version 2.5.0 (2007-04-23) i386-apple-darwin8.9.1 with CarbonEL 0.1-3. Duncan Murdoch Also I tried setting the DISPLAY (probably incorrectly, since I don't understand what's going on). I used Sys.setenv(DISPLAY=0.0.0.0:0 R) X11() And got the error message Error in X11

Re: [R] miktex 2.6 and R

2007-05-20 Thread Duncan Murdoch
/mikitex.html provides a series of workarounds. That document (misspelled, BTW) is years old. Yes, and I've now added a line to it to point out that it is obsolete. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] naive question about using an object as the name of another object

2007-05-18 Thread Duncan Murdoch
- value or f - function(value) list(y=value) asdf - f(value) depending on what you are trying to do. Duncan Murdoch __ 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

Re: [R] length, mean, na.rm, na.omit...

2007-05-18 Thread Duncan Murdoch
the mean of the others: and R would rather not give you biased results. Duncan Murdoch __ 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] How can we add a legend to a set of graphs?

2007-05-18 Thread Duncan Murdoch
,and the rest of the legend arguments)# but the legend didn't show. The legend only appears when I place in inside any of the for plots. How can I place it outside these plots, in the center. RSiteSearch(legend outside) suggests using par(xpd=TRUE). Duncan Murdoch

Re: [R] R2 always increases as variables are added?

2007-05-17 Thread Duncan Murdoch
= slope*x + error. Duncan Murdoch __ 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 and provide commented, minimal, self-contained, reproducible

Re: [R] help with executing instruction every i-th run of loop

2007-05-17 Thread Duncan Murdoch
() if (logical.test(i)) {save(results, results.tmp)} } logical.test would test to see if i/1000 has no remainder. What R function would test that? (i %% 1000) == 0 Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] 3d graph question

2007-05-17 Thread Duncan Murdoch
. Then persp or contour can plot it (or persp3d in the rgl package). Duncan Murdoch __ 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 and provide

Re: [R] Is it possible to pass a Tcl/Tk component as argument to a function

2007-05-16 Thread Duncan Murdoch
point out what changes are necessary. Duncan Murdoch __ 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 and provide commented, minimal, self

Re: [R] Testing for existence inside a function

2007-05-15 Thread Duncan Murdoch
On 5/15/2007 3:06 PM, Alberto Monteiro wrote: Talbot Katz wrote: I'm having trouble testing for existence of an object inside a function. No, you are having trouble testing for existence of an object _before_ the function is called :-) Suppose I have a function: f-function(x){ ...

Re: [R] Problem with Sweave

2007-05-15 Thread Duncan Murdoch
: ### boxplot(dat$MAE ~ dat$BASINID) abline(h=1) abline(h=0.5,col=red) Duncan Murdoch __ 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] x axis problems

2007-05-14 Thread Duncan Murdoch
On 5/14/2007 7:45 AM, Ener Borg wrote: I have been searching for the R manual, unable to solve my problem. Questions 1) How can I put the x axis at the top of the plot? To stop it from being at the bottom: axes=FALSE in the plot() call. To draw the box: box() To draw an axis on the left:

Re: [R] Fwd: Re: shell.exec() on Windows, unexpected behavior

2007-05-12 Thread Duncan Murdoch
over the read-only potential of the newer program. It looks to me like there are some inconsistencies in how it made those arrangements. Rich Original message Date: Fri, 11 May 2007 21:14:31 -0400 From: Duncan Murdoch [EMAIL PROTECTED] shell.exec(foo.pdf) does the same thing

Re: [R] Cannot use an escape character in regexp

2007-05-11 Thread Duncan Murdoch
want to escape the escape: rx3 - \\)Tj$ gsub(rx3, , mystr) Duncan Murdoch __ 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 and provide

Re: [R] names of objects in .rda

2007-05-11 Thread Duncan Murdoch
to save things, but sometimes the alternatives are not nearly as convenient. Duncan Murdoch __ 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] shell.exec() on Windows, unexpected behavior

2007-05-11 Thread Duncan Murdoch
the same thing as a right click Open does, but that may be changeable. What may be happening is that Acrobat has installed some fancy shell extension that doesn't execute an open on the file, it does something else instead. Duncan Murdoch __ R-help

Re: [R] can't use Sweave in a function?

2007-05-10 Thread Duncan Murdoch
to pass the values of x and y into your document, use save() to save them to a file, then load() them in the document. Duncan Murdoch Thanks, Tao #=test.rnw = html body div h1 align=centerReport/h1 p echo=FALSE,results=html= print(y) print(\n

Re: [R] Including data when building an R package in windows

2007-05-09 Thread Duncan Murdoch
platforms. Duncan Murdoch Odd. -Original Message- From: michael watson (IAH-C) Sent: Wed 09/05/2007 11:09 AM To: michael watson (IAH-C); r-help@stat.math.ethz.ch Subject: RE: [R] Including data when building an R package in windows I forgot to mention. After using

Re: [R] power 2x3 exact test

2007-05-09 Thread Duncan Murdoch
finding a single answer to this question. But assuming you have one in mind, I'd suggest doing a Monte Carlo power calculation: simulate a few thousand tables from the alternative distribution, and see what the distribution of p-values looks like. Duncan Murdoch

Re: [R] Sweave and size10.clo

2007-05-06 Thread Duncan Murdoch
using MikTeX 2.4. MikTeX has a habit of making incompatible changes.) Duncan Murdoch __ 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] error using boxplot.stats (but boxplot wo rks¿?)

2007-05-06 Thread Duncan Murdoch
] However, boxplot(X8weeks~Orden) prints the boxplot properly (no error messages, data accurately represented). You can use boxplot(X8weeks ~ Orden, plot=FALSE). Duncan Murdoch is.numeric(X8weeks)=TRUE is.factor(Orden)=TRUE X8weeks has no NA's So, the question is: how can I access

Re: [R] using boxplot.stats

2007-05-06 Thread Duncan Murdoch
On 06/05/2007 5:36 PM, Hugo M.Fernandez Bellon wrote: Duncan Murdoch [EMAIL PROTECTED] escribió: See ?boxplot.stats. It can't handle a formula argument, it wants a numeric vector. Thanks, had read it three times ... I'll try to use my brain next time! So that sparks another question

Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam

2007-05-05 Thread Duncan Murdoch
take a look. Duncan Murdoch On 5/4/07, Duncan Murdoch [EMAIL PROTECTED] wrote: On 04/05/2007 4:25 PM, Greg Snow wrote: I have used the pp/par combination for Perl before. It is pretty straight forward to convert an existing perl script into a stand alone windows executable. Both

Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam

2007-05-05 Thread Duncan Murdoch
building requires simulation of a subset of a Unix environment, so in case of a Unix/Windows conflict, Unix should win. For example none of the Makefiles use backslashes as path separators, they all use Unix-style forward slashes. Duncan Murdoch On 5/5/07, Duncan Murdoch [EMAIL PROTECTED

Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam

2007-05-05 Thread Duncan Murdoch
reduce their size, or we could follow Gabor's suggestion and compile them into one big .exe instead. Which would you think would be easier? Duncan Murdoch There would need to be some switch or something to indicate using these tools rather than the standards for those that don't use the Rtools

Re: [R] R package development in windows

2007-05-04 Thread Duncan Murdoch
fix bugs in older versions. Bugs in the tools lead to bugs in R. So I think we don't have much choice but to continue to make necessary updates. Duncan Murdoch Harold -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 3:51 PM

Re: [R] R package development in windows

2007-05-04 Thread Duncan Murdoch
On 5/4/2007 11:31 AM, Gabor Grothendieck wrote: On 5/4/07, Duncan Murdoch [EMAIL PROTECTED] wrote: On 5/4/2007 9:30 AM, Doran, Harold wrote: OK, so I just want to go on record as noting that following the instructions exactly (exactly, exactly, exactly, emphatically) on the web given

Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam

2007-05-04 Thread Duncan Murdoch
would then just need to install the MinGW compilers for packages containing compiled code, and a few extras needed for building R. I don't really know Perl, so I might be asking for advice if I get stuck. Duncan Murdoch From: [EMAIL PROTECTED] on behalf

Re: [R] rgl install on rhel4 x86_64

2007-05-04 Thread Duncan Murdoch
worked for you. If you can figure out what's wrong, please let me know, and if it doesn't break other systems, it might make it into 0.72. Duncan Murdoch checking GL/gl.h usability... no checking GL/gl.h presence... yes configure: WARNING: GL/gl.h: present but cannot be compiled

Re: [R] Help with map

2007-05-04 Thread Duncan Murdoch
, height=2200, file='world.png') map('worldHires', fill = TRUE, col = col, ylim=c(-90,90)) abline(h=c(-90, 90)) abline(v=c(-180.05, 180.05)) dev.off() I hope this gives you some ideas. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Off topic? Geographic data

2007-05-03 Thread Duncan Murdoch
packages have this. (They work together; mapdata has more detail than maps). Duncan Murdoch __ 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] R package development in windows

2007-05-03 Thread Duncan Murdoch
:\foo R 2.4.1 is no longer current; the package building instructions in R 2.5.0 have been simplified a bit. You might want to try those. Duncan Murdoch * checking for file 'g:\foo/DESCRIPTION' ... OK * preparing 'g:\foo': * checking DESCRIPTION meta-information ... OK * removing junk files

Re: [R] [SPAM] - Re: R package development in windows - Bayesian Filter detected spam

2007-05-03 Thread Duncan Murdoch
, specific corrections or improvements would be welcome. Duncan Murdoch Harold -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 3:24 PM To: Doran, Harold Cc: Gabor Grothendieck; r-help@stat.math.ethz.ch Subject: [SPAM] - Re: [R] R

Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam

2007-05-03 Thread Duncan Murdoch
! The only problem is that there are a lot more bits still to go... Duncan Murdoch Ravi. --- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric Medicine

Re: [R] Concepts question: environment, frame, search path

2007-05-02 Thread Duncan Murdoch
On 01/05/2007 11:34 AM, Prof Brian Ripley wrote: On Tue, 1 May 2007, Duncan Murdoch wrote: On 01/05/2007 12:29 AM, Graham Wideman wrote: [...] Refman p122: Environments consist of a frame, or collection of named objects, and a pointer to an enclosing environment. Is the or here explaining

Re: [R] I need help

2007-05-02 Thread Duncan Murdoch
on the same line as the brace that closes the if, e.g. if(na==1){ ... } else { ... } Duncan Murdoch if(pos==1) {donGeno[[k]] - donGeno[[k]][2:C[k]]} if(pos==C[k]){donGeno[[k]] - donGeno[[k]][1:(C[k]-1)]} else{donGeno[[k]] - c(donGeno[[k]][1:(pos-1)],donGeno[[k]][(pos+1):C(k)])} Erreur

Re: [R] How to install previous packages after upgrading to R 2.5.0?

2007-05-02 Thread Duncan Murdoch
package from local .zip file allows multiple files to be selected and installed. The only combination that's not so easy is installing from source .tar.gz files, but a shell command to loop over *.tar.gz could probably be written. Duncan Murdoch __ R-help

Re: [R] Concepts question: environment, frame, search path

2007-05-01 Thread Duncan Murdoch
is a package name, and what gets attached is an environment holding the exports from the package. Packages are stored in directories in the file system, so maybe that's what the author of that line had in mind. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing

Re: [R] windows completion in 2.5?

2007-04-29 Thread Duncan Murdoch
identifier or show you a list of choices if the completion is ambiguous. Give it a try, it's a nice addition. Thanks are due to Deepayan Sarkar who wrote it and Brian Ripley who integrated it into R. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list

Re: [R] A coding question involving variable assignments in ifelse()

2007-04-28 Thread Duncan Murdoch
by their rules, you'll just have to ignore the consequences -- this _IS_ the internet, after all). And if you want anyone else to respond, you may just be out of luck. Duncan Murdoch On Friday 27 April 2007, Gabor Grothendieck wrote: I don't think there is any requirement to identify

Re: [R] Issues with Sweave and inclusion of graphics from nlme

2007-04-27 Thread Duncan Murdoch
than automatically adding the .pdf file extension, because it thinks you've specified the extension to be file_Rnw-fig. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] A coding question involving variable assignments in ifelse()

2007-04-27 Thread Duncan Murdoch
was sufficient, and the followups showed that Mr./Ms. Anonymous wasn't willing to put a reasonable effort into solving the problem her/himself. Duncan Murdoch On 4/27/07, xpRt.wannabe [EMAIL PROTECTED] wrote: Is this an ad hominem comment or a comment of brevity? Unless my eyes are playing tricks

Re: [R] Limit on vector evaluation

2007-04-27 Thread Duncan Murdoch
: x - replicate(10, mean(rnorm(10, mean=9, sd=1.5))) Duncan Murdoch __ 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 and provide

Re: [R] R News, volume 7, issue 1 is now available --error in AMMI article

2007-04-26 Thread Duncan Murdoch
is a syntax error, as it's using 0x91 and 0x92 instead. Duncan Murdoch __ 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 and provide

Re: [R] A coding question involving variable assignments in ifelse()

2007-04-26 Thread Duncan Murdoch
any payment at all, e.g. sum(ifelse(accept payout, [ your old ifelse expression ], 0)) There are a lot of implicit independence assumptions here; they may not be very realistic. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] A coding question involving variable assignments in ifelse()

2007-04-26 Thread Duncan Murdoch
On 4/26/2007 2:31 PM, xpRt.wannabe wrote: Just to be sure, is what I have below the right intepretation of your suggestion: Yes, that's what I suggested. Duncan Murdoch deductible - 15 coverage.limit - 75 insurance.threshold - deductible + coverage.limit tmpf - function() { loss

Re: [R] A coding question involving variable assignments in ifelse()

2007-04-26 Thread Duncan Murdoch
are: 1.401663, 4.570620, 2.068667, 2.718488, yielding 10.759438 instead of 6.188817. Any further suggestions would be greatly appreciated. I'm sorry, but from an anonymous poster that's not a reasonable request. Just work it out yourself. Duncan Murdoch On 4/26/07, Duncan Murdoch [EMAIL

Re: [R] Not showing dvi with Hmisc latex()

2007-04-26 Thread Duncan Murdoch
it doesn't print as a latex object. For example, unclass(latex(1, file=test.tex)) $file [1] test.tex $style character(0) Alternatively, if you just assign the result you can print it later. It's when you print that the latex'ing happens. Duncan Murdoch

Re: [R] regarding 3d Bar Plot

2007-04-25 Thread Duncan Murdoch
function for the djmrgl package (based on hist), mostly to show off the graphics, but haven't found it useful enough to port to rgl. Here's a quick port, not good enough to use, but maybe it will give you a starting point. Duncan Murdoch hist3d - function (x, y, xbreaks, ybreaks, freq

Re: [R] regarding 3d Bar Plot

2007-04-25 Thread Duncan Murdoch
me in this regards. (Please note on my X and Y axes Numbers are not there instead alphabets) The plot.histogram function I sent does most of what you want. The hist3d function calculates the matrix of counts that it plots, and plot.histogram plots the resulting bar chart. Duncan Murdoch

Re: [R] regarding 3d Bar Plot

2007-04-25 Thread Duncan Murdoch
you try creating a series of 2d bar charts instead - you are far more likely to be able to interpret them easily. I agree with this. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] applying rbind to list elements

2007-04-25 Thread Duncan Murdoch
On 4/25/2007 4:09 PM, Hendrik Fuß wrote: Hi, I have a list of n data.frames (or matrices) which I would like to convert to a single data.frame using rbind: x - rbind( l[[1]], l[[2]], l[[3]], l[[4]], ..., l[[n]] ) Is there a simple way to do this? do.call(rbind, l). Duncan Murdoch

Re: [R] Bug in R 2.4.1 ?

2007-04-23 Thread Duncan Murdoch
maintainer, Marcus G. Daniels [EMAIL PROTECTED]. But before you bother him, make sure you're using the latest release of it. If you still have problems, give him the usual details requested in the posting guide. Duncan Murdoch __ R-help@stat.math.ethz.ch

Re: [R] names( d$columnname )

2007-04-22 Thread Duncan Murdoch
$columnname) [1] a b c d e f g h i j k l m n o p q r [19] s t u v w x y z Duncan Murdoch __ 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] Suggestions for statistical computing course

2007-04-20 Thread Duncan Murdoch
or www.murdoch-sutherland.com/Rtools. Duncan Murdoch __ 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 and provide commented, minimal, self

Re: [R] Using R to create pdf's from each file in a directory

2007-04-20 Thread Duncan Murdoch
that name differently for each x. I'd suggest using paste() and basename() (and perhaps some regular expressions and gsub()) to construct the output filename. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] erratic behavior of match()?

2007-04-19 Thread Duncan Murdoch
should give 9, and 1 %% 0.1 should give something very close to 0.1, as you saw. Duncan Murdoch __ 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] newbie rgl (3d interacting plotting) question

2007-04-16 Thread Duncan Murdoch
using rgl.set(). You can clear items from a device using rgl.clear() or rgl.pop(). Duncan Murdoch __ 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] Dealing with data frame column names beginning with a numeric

2007-04-16 Thread Duncan Murdoch
? That is: df - data.frame(mat) names(df)[3] - 5T boxplot(df, main=blah blah blah) Duncan Murdoch __ 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] creating a function

2007-04-16 Thread Duncan Murdoch
), which is not name. Anyone has Any idea? This should work: temp.func - function(x) { result - data.frame(x) names(result) - deparse(substitute(x)) return(result) } Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] Expression for pedices

2007-04-15 Thread Duncan Murdoch
)) works well XLABEL - expression(paste(cmH,[2],O PEEP)) is considered a wrong expression. Yes, you don't want the comma before the bracket: XLABEL - expression(paste(cmH[2],O PEEP)) Duncan Murdoch __ [EMAIL PROTECTED] mailing list https

Re: [R] persp Error. x,y,z with the same length

2007-04-11 Thread Duncan Murdoch
of the same name. Duncan Murdoch Thanks a lot! Felix the code: h - Measure3[,4] x - Measure3[,3] y - Measure3[,2] z - matrix(c(x,y,h),ncol=3) z persp(x, y, z) z [,1] [,2][,3] [1,] 0.00 0.0 [2,] 0.10 0.000538990

Re: [R] Running MCMCpack

2007-04-05 Thread Duncan Murdoch
still get the crashes, put together a minimal example to trigger them. For example, generate random data of the right size and give a minimal set of commands that cause the crash. If I can reproduce the crash I can probably locate the cause, but without that it's nearly hopeless. Duncan Murdoch

Re: [R] binom.test() query

2007-04-05 Thread Duncan Murdoch
to get right than p=0.3527785166. Duncan Murdoch For example (and I'm being a bit mischievous here, but I'm theoretically entitled to be): p-0.3527785166 n-20 x-(4:10) print(cbind(x,dbinom(x,n,p)),digits=10) x [1,] 4 0.07114577135 [2,] 5 0.12409328342

Re: [R] rgl.postscript generating pdf: floating xlab, font size, transparency

2007-04-04 Thread Duncan Murdoch
) subdivide removes them - material3d() now preserves the values of unspecified parameters (as documented, but not previously functioning) - clear3d() can now reset material properties to the defaults, and open3d() does this. - minor fix for gcc 4.3 compatibility Duncan Murdoch

Re: [R] Calculating DIC from MCMC output

2007-04-03 Thread Duncan Murdoch
Spiegelhalter and Nicky Best are active. There's also some advice here: http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/dicpage.shtml. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Compiling C codes in Windows

2007-04-02 Thread Duncan Murdoch
(it's what I use), but the rest of your advice is correct: The usual problems are either missing components from the installation steps outlined in Building R for Windows, or an incorrect PATH variable so that windows or cygwin versions of programs are used rather than MinGW / Rtools. Duncan

[R] Q

2007-04-01 Thread Duncan Murdoch
could simply double the quotes himself before trying to save them, i.e. values - gsub(', '', values) Duncan Murdoch Without any relevant details (OS, R version, packages used, package version, ODBC driver, DBMS) and any sort of example it is really hard to offer help: please DO study

Re: [R] Wikibooks

2007-03-30 Thread Duncan Murdoch
there to answer (and the advice there is to ask questions here). I don't know how to organize a wiki to make it easy to ask and answer questions. It's a reasonably good way to collect reference information, but it's not very well suited to QA. Duncan Murdoch

Re: [R] Wikibooks

2007-03-30 Thread Duncan Murdoch
On 3/30/2007 7:34 AM, Alberto Monteiro wrote: Duncan Murdoch wrote: But the wiki doesn't offer a way to ask questions. I'd be just as happy to answer questions there as here, but there are none there to answer (and the advice there is to ask questions here). I don't know how

Re: [R] Wikibooks

2007-03-30 Thread Duncan Murdoch
undocumented. Duncan Murdoch The wiki already has a similar thing, for example for rnorm, you can go to: http://wiki.r-project.org/rwiki/doku.php?id=rdoc:stats:Normal I didn't like the way it worked. I searched for rnorm and Norm, and I got a list of pages. Even for this trivial example, I

Re: [R] math-operations

2007-03-30 Thread Duncan Murdoch
of the Evaluation of expressions chapter. Duncan Murdoch __ 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 and provide commented, minimal, self-contained

Re: [R] Makeconf on Windows - where?

2007-03-30 Thread Duncan Murdoch
, there are five files in the $R_HOME/etc directory, but no Makeconf. Is the file only available with custom installs? That may be an oversight that it never got added to the build script for the installer. I'll take a look and see if it would be useful with a binary install. Duncan Murdoch

Re: [R] Trouble installing package 'sp' in R 2.4.1

2007-03-30 Thread Duncan Murdoch
. Or perhaps there might be some problem with the website itself. You didn't say which mirror you were using, but it looks like a problem there. I just tried from one of the Canadian mirrors and there was no problem finding the package. Duncan Murdoch

Re: [R] Wikibooks

2007-03-30 Thread Duncan Murdoch
has no fair use doctrine in the US sense, just a much more limited fair dealing doctrine. Last time I looked Wikipedia had a pretty good description of this. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

<    1   2   3   4   5   6   7   8   9   10   >