[Rd] Tiny typo in help.Rd

2011-07-13 Thread Peter Ehlers
A recent quote by Bert Gunter from the Details section of help('help') over on R-help has this (line 82 in help.Rd): character string. There include those which cannot syntactically where the word 'There' should be 'These'. (still

Re: [Rd] New code in R-devel: Rao score test for glm.

2011-05-11 Thread Peter Ehlers
ications", I thought paying a little homage would be appropriate - At least the curator calls it "Rao score test": http://www.scholarpedia.org/article/Rao_score_test Yes, thanks, Peter, for coding this test. As to the name, my vote is for "Rao". Peter Ehlers -- Brett

Re: [Rd] possible minor doc clarification?

2011-04-25 Thread Peter Ehlers
x 'being a directory' or for x 'not being a directory'. The code (for the '-f' op) actually tests !isdir and so the current wording reflects the code. Peter Ehlers Kind regards, Sean O'Riordain - Index: src/library/utils/man/filetest.Rd ==

Re: [Rd] plotmath indices: suggested addition to help file

2011-01-21 Thread Peter Ehlers
he more you become familiar with the special constructs needed to get the output you want. I still find myself scurrying to ?plotmath and scanning the Syntax/Meaning table quite frequently. Peter Ehlers Martin CB> Claudia __ R-devel@r-project

Re: [Rd] postscript failure manifests in plot.TukeyHSD

2010-12-14 Thread Peter Ehlers
SetLineStyle or PostScriptSetLineTexture one can tell whether the current driver is PS or PDF ... That may not do it. I find the same problem (fixed by Jari's replacement of [ 0.00 0.00] with [ 3.00 5.00]; haven't tried anything else yet) when I use pdf() instead of postscript(). This is on

Re: [Rd] Assignment of individual values to data frame columns: intentional or unintentional behavior?

2010-09-02 Thread Peter Ehlers
ddling with data frames. Try this: sw <- swiss[1:5, 1:4] sw[["Fert"]] sw[["Fert"]] <- 10 and my preferred version: sw[, "Fert"] sw[, "Fert"] <- 10 I've never liked partial matching for data frames. -Peter Ehlers

Re: [Rd] Looks like a bug in subsetting of a complicated object

2010-09-01 Thread Peter Ehlers
simmatrices(sim0) set.seed(234) x<- sample(seq(0, 100, by=1), 101, replace=TRUE) y<- sample(seq(0, 100, by=1), 101, replace=TRUE) coo<- cbind(x=x, y=y) coo<- unique(coo) sim1.obs<- sim1[coo] dim(coo) length(sim1.obs) One of the values in coo is zero. -Peter Ehlers sessionInf

Re: [Rd] read.table / type.convert with NA values

2010-06-29 Thread Peter Ehlers
Is there a compelling reason to have strip.white default to FALSE? It seems to me that it would be more common to want the TRUE case. Having said that, I must confess that I've never had the problem Erik describes. -Peter Ehlers On 2010-06-29 17:14, Matt Shotwell wrote: The document RFC

Re: [Rd] Location of source code for readline()

2010-05-30 Thread Peter Ehlers
Do you want to continue?', timeout=6). Note that the issue seems to be Windows. I haven't a Mac to try, but Linux can be made to function by various methods at the top. Sigh. JN I can't help with your project, but check scan.c for do_readln. -Peter Ehlers ___

Re: [Rd] Deferred Default Marker

2010-04-23 Thread Peter Ehlers
ional? -Peter Ehlers > sessionInfo() R version 2.10.1 Patched (2010-01-05 r50896) i386-pc-mingw32 locale: [1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 [3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C [5] LC_TIME=English_Canada.1252 attached base packages: [1] splines

[Rd] packages with DLLs under 2.12.0

2010-04-02 Thread Peter Ehlers
mvtnorm_0.9-9 loaded via a namespace (and not attached): [1] tools_2.12.0 -- Peter Ehlers University of Calgary __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Minor typo in ?.Primitive

2010-04-01 Thread Peter Ehlers
The help page for .Primitive has this line: ## start quote This function is almost never used: get(name, envir=basenv()) works equally well and ## end quote basenv() should be baseenv(). Checked for r51392 and r51520. -Peter Ehlers __ R

Re: [Rd] aggregate: with 2 by variables in the result the 2nd by-variable is wrong (PR#14213)

2010-02-12 Thread Peter Ehlers
this is 2.10.1 nor in 2.11.0 (Windows Vista). I can't think of how you might have got your result. Is there something you haven't mentioned? What's your sessionInfo()? -- Peter Ehlers University of Calgary __ R-devel@r-project.org mailing li

Re: [Rd] Unexpected behaviour of x[i] when i is a matrix, on Windows

2010-02-12 Thread Peter Ehlers
You're comparing 2.10.0 on Windows with 2.11.0 on Linux. Have you tried 2.11.0 on Windows? => same result as on Linux. -Peter Ehlers Wolfgang Huber wrote: Hi, when running the following on different instances of R (Linux and Windows), I get different results. The one for Linux see

Re: [Rd] Confusing error message for [[.factor (PR#14209)

2010-02-09 Thread Peter Ehlers
particularly careful reading to find this: "The most important distinction between [, [[ and $ is that the [ can select more than one element whereas the other two select a single element." Try this: c("a","b")[[c(1,2)]] c("a","b")[[TRUE]]

Re: [Rd] log normal overlay

2010-01-04 Thread Peter Ehlers
ot;,col="grey") plot(function(app_depths) dlnorm(app_depths,meanlog=mean(app_depths),sdlog=sd(app_depths)),0,44,add=TRUE,col="black",lwd=3) Don't you need meanlog=mean(log()), etc? I usually use curve(): hist(app_depths,breaks,freq=FALSE) curve(dlnorm(x, meanlog=mean(log(

Re: [Rd] loess() crashes R on my system

2010-01-02 Thread Peter Ehlers
Dennis, I have no problems with this on my DELL laptop (still running Vista) with R version 2.10.1 Patched (2009-12-21 r50796). -Peter Ehlers Dennis Murphy wrote: Greetings and happy new year! I am in the process of converting some of the old S-PLUS scripts from Visualizing Data (Cleveland

Re: [Rd] bug in princomp example (PR#14167)

2009-12-24 Thread Peter Ehlers
s: [1] fortunes_1.3-6 loaded via a namespace (and not attached): [1] tools_2.10.1 > -Peter Ehlers Seth Roberts -- Peter Ehlers University of Calgary 403.202.3921 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] `mgp[1:3]' are of differing sign (PR#14130)

2009-12-12 Thread ehlers
Peter Dalgaard wrote: > Peter Ehlers wrote: >> >> cornell.p.gonsch...@iem.fh-friedberg.de wrote: >>> Full_Name: Cornell Gonschior >>> Version: 2.10.0 >>> OS: Linux >>> Submission from: (NULL) (212.201.28.40) >>> >>> >>>

Re: [Rd] `mgp[1:3]' are of differing sign (PR#14130)

2009-12-12 Thread Peter Ehlers
Peter Dalgaard wrote: Peter Ehlers wrote: cornell.p.gonsch...@iem.fh-friedberg.de wrote: Full_Name: Cornell Gonschior Version: 2.10.0 OS: Linux Submission from: (NULL) (212.201.28.40) Hi, in the introduction to R, you can find the following sentence in the par() chapter: "Use tck

Re: [Rd] `mgp[1:3]' are of differing sign (PR#14130)

2009-12-12 Thread Peter Ehlers
rning, making you aware of a possibly unintended par setting. Warnings are good things but if you don't want to see them, they can be suppressed. Certainly not a bug. -Peter Ehlers __ R-devel@r-project.org mailing list https://stat.ethz.ch/m

Re: [Rd] The "lib" argument in install.packages().

2009-11-24 Thread Peter Ehlers
Rolf, If you want to avoid the warning, why not use lib=.libPaths()[1]? This is not to say that your suggestions aren't useful. Cheers, Peter Ehlers Rolf Turner wrote: I was flummoxed for a long time by errors generated when I did something like install.packages(foo,lib="Rli

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-01 Thread Peter Ehlers
right in assuming that the speed problem is for the first time you use help? I start Firefox whenever I start R. I don't see much of a speed hit after that. -Peter Ehlers __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-01 Thread Peter Ehlers
alexios wrote: Peter Ehlers wrote: Duncan Murdoch wrote: On 31/10/2009 6:05 PM, alex...@4dscape.com wrote: Full_Name: alex galanos Version: 2.10.0 OS: windows vista Submission from: (NULL) (86.11.78.110) I respectfully request that the chm help support for windows, which was very

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-01 Thread Peter Ehlers
nline poll have been conducted to gauge the support of this format by window's users? First, I don't think that complaints are bugs. Secondly, why not give the new format a chance. Personally, I like it. Thanks, Duncan. -Peter Ehlers I don't think it's going to come

Re: [Rd] names drop for columns from data.frame (PR#14002)

2009-10-24 Thread Peter Ehlers
,ncol=2,dimnames=list(c("x","y"),c("i","j"))) names(b[,1]) names(b[1,]) Thanks __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Ehlers University of Calgary __

Re: [Rd] lattice's mai/mar analog

2009-10-02 Thread Peter Ehlers
axis, etc. The paddings are ordered from extreme left to extreme right. Ditto for top to bottom. See ?trellis.par.set for how to set up the options. -Peter Ehlers [[alternative HTML version deleted

Re: [Rd] html help fails for named vector objects (PR#9927)

2007-09-23 Thread P Ehlers
252; [snip] attached base packages: [1] stats graphics grDevices utils datasets methods base - Peter Ehlers Prof Brian Ripley wrote: > On a normal R help system any version of help(letters) tries to give you > help on a, b, etc. This is intentional (although the document

[Rd] buglet in plot.lm (PR#9333)

2006-11-02 Thread ehlers
y29 svn rev39744 language R version.string R version 2.4.0 Patched (2006-10-29 r39744) Peter Ehlers __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] dump (PR#9282)

2006-10-09 Thread ehlers
Full_Name: Ricardo Ehlers Version: 2.4.0 OS: Linux Submission from: (NULL) (200.138.34.134) The dump function is outputing something different from previous versions. For example > a <- c(1,2,3); dump('a',file='test') now results in `a` <- c(1,2) instead of &q

Re: [Rd] plot.new, trellis and windows plot history (PR#8935)

2006-06-03 Thread P Ehlers
Andrew, Why are you calling plot.new()? Peter Ehlers [EMAIL PROTECTED] wrote: > Full_Name: Andrew Hooker > Version: 2.3.1 > OS: windows xp sp2 > Submission from: (NULL) (83.253.8.162) > > > Hi, > > I think there is a bug in the windows graph history procedure, her

Re: [Rd] Numerical error in R (win32) (PR#8909)

2006-05-29 Thread Peter Ehlers
Did you check the Details section of the help page for round()? Peter Ehlers [EMAIL PROTECTED] wrote: > Hi > I had observed the following problem in R (also C, Matlab, and Python). > sprintf('%1.2g\n', 3.15) > give 3.1 instead of 3.2 whereas an input of 3.

Re: [Rd] bug in rbind.data.frame with factors (PR#8868)

2006-05-16 Thread Peter Ehlers
How is this a bug? From the help page for cbind/rbind: Description Take a sequence of vector, matrix or data frames arguments and combine by _columns_ or _rows_, respectively. (emphasis added) Note that it does _not_ say "combine by variable names". Peter Ehlers [EMAIL PROTEC

Re: [Rd] (PR#8777) strsplit does [not] return correct value when spliting ""

2006-04-17 Thread Peter Ehlers
Charles, Can't you achieve your goal by unlist()ing 'substrings'? max(nchar(unlist(substrings))) Peter Ehlers Charles Dupont wrote: > Now using R 2.3.0. > > I have a string that can be "". I want to find the max screen width of > the all the line

[Rd] R-2.3.0alpha-win32: Rgui and MDI/SDI

2006-04-07 Thread Peter Ehlers
I find that Rgui defaults to SDI if I specify MDI = yes toolbar = no in Rconsole. Hope I didn't miss something in NEWS/CHANGES. R.version.string [1] "Version 2.3.0 alpha (2006-04-05 r37653)" Win XP Peter Ehlers __ R-devel@r-proj

Re: [Rd] wishlist: 'formula' method for stripchart()

2006-04-05 Thread Peter Ehlers
Sorry, I should have been clearer. This is definitely not a high-priority item and I hadn't intended it to be included for 2.3.0. Sure, I'll provide the code and help page adjustment. Peter Ehlers Prof Brian Ripley wrote: > On Wed, 5 Apr 2006, Peter Ehlers wrote: > >>

[Rd] wishlist: 'formula' method for stripchart()

2006-04-05 Thread Peter Ehlers
Folks, I would find it useful to have a formula method for stripchart() with 'data' and 'subset' arguments, similar to boxplot.formula() whose code can probably be adapted fairly easily. Comments? Peter Ehlers (Win XP) __ R

Re: [Rd] Choose.files to give shortnames

2006-03-22 Thread P Ehlers
Would basename(choose.files()) work for your usage? Still, a full.names argument might be useful. Peter Ehlers Brooks, Anthony B wrote: > Hi > I am writing a script to generate a QC report for some data based on a number > of files. I am currently using the choose.files function

Re: [Rd] pbinom with size argument 0 (PR#8560)

2006-02-04 Thread P Ehlers
; are no traps if p=0 or p=1. > > >>>(But it depends on your point of view, as above ... However, >>>surely the two should be consistent with each other.) > > > Ted. I prefer a (consistent) NaN. What happens to our notion of a Binomial RV as a sequence of

Re: [Rd] pbinom with size argument 0 (PR#8560)

2006-02-04 Thread ehlers
; are no traps if p=0 or p=1. > > >>>(But it depends on your point of view, as above ... However, >>>surely the two should be consistent with each other.) > > > Ted. I prefer a (consistent) NaN. What happens to our notion of a Binomial RV as a sequence of

Re: [Rd] Windows crash in confint() with nls fit (PR#8428)

2005-12-22 Thread P Ehlers
You don't actually need Ben's example. The problem occurs also for the first example in ?nls if algorithm = "port" is used. Peter Ehlers [EMAIL PROTECTED] wrote: > Duncan Murdoch wrote: > >>I've found the problem, but someone who knows more about nls() wil

[Rd] suggestion: link oneway.test on kruskal.test page

2005-12-20 Thread P Ehlers
DevelopeRs: I think it might be useful to add a link to oneway.test() on the kruskal.test() help page. ("R version 2.3.0, 2005-12-09") Peter Ehlers U of Calgary __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] "integrate" error using a constant function (PR#8348)

2005-11-25 Thread P Ehlers
> __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Ehlers Department of Mathematics and Statistics University of Calgary, 2500 University Dr. NW ph: 403-220-3936 Calgary, Alberta T2N 1N4, CANA

Re: [Rd] Matrix (PR#8321)

2005-11-17 Thread P Ehlers
ows. I tried both packages. The > directions under Matrix indicate that package 99.2 is current. It is the > one that will not load. > > Respectfully, > > Frank Lawrence > > > -Original Message- > From: P Ehlers [mailto:[EMAIL PROTECTED] > S

Re: [Rd] Matrix (PR#8321)

2005-11-17 Thread P Ehlers
.0. > > Respectfully, > > Frank Lawrence > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Ehlers Department of Mathematics and Statistics University of Calgary, 2500 Univer

Re: [Rd] Problem with fitdistr for gamma in R 2.2.0

2005-11-17 Thread P Ehlers
I think the problem may lie with fitdistr(). Specifically, replacing the code in fitdistr.R (VR_7.2-20) (line 137 to end) with the code in VR_7.2-8 (line 92 to end) seems to handle fitdistr(otm, "gamma") just fine. But I haven't done much testing. Peter Ehlers Peter Dalg

Re: [Rd] Problem with fitdistr for gamma in R 2.2.0

2005-11-17 Thread P Ehlers
rjan > Zootechnical Department mail: gregor.gorjanc bfro.uni-lj.si > Groblje 3 tel: +386 (0)1 72 17 861 > SI-1230 Domzale fax: +386 (0)1 72 17 888 > Slovenia, Europe > ------ > &

Re: [Rd] Yates' correction for continuity in chisq.test (PR#8265)

2005-10-31 Thread ehlers
Prof Brian Ripley wrote: > On Sun, 30 Oct 2005, P Ehlers wrote: > >> [EMAIL PROTECTED] wrote: >> >>> Full_Name: foo ba baz >>> Version: R2.2.0 >>> OS: Mac OS X (10.4) >>> Submission from: (NULL) (219.66.32.183) >>> >>> >

Re: [Rd] Yates' correction for continuity in chisq.test (PR#8265)

2005-10-30 Thread P Ehlers
; when | a d - b c | < n / 2 ,chi-sq must be 0 > (Presumably, you mean P-value = 1.) If you don't want the correction, set correct=FALSE. (The results won't differ much.) A better example is chisq.test(matrix(c(9,10,9,10),2,2)) for which R

[Rd] PR#8229

2005-10-27 Thread ehlers
thoroughly. Replace: xi <- x[[i]][, -4] with: xi <- x[[i]][, -4, drop = FALSE] in order to keep nrow() functioning properly in yvals <- nrow(xi):1 when xi has only one row as in the helpfile example with plot(TukeyHSD(fm1, "wool")) Peter

Re: [Rd] download problem: Windows binaries - patched/devel versions

2005-10-24 Thread P Ehlers
Thanks for the quick response. -Peter Prof Brian Ripley wrote: > The addresses are wrong. We know there are some incorrect links due to > mirroring errors, but > > http://cran.r-project.org/bin/windows/base/R-2.2.0pat-win32.exe > > etc are there. > > On Mon, 24

[Rd] Problem with Rchtml.dll in R-2.3.0dev-win32.exe?

2005-10-24 Thread P Ehlers
atisticsPrograms/R/Rdevel/bin/Rchtml.dll': LoadLibrary failure: The specified procedure could not be found. Replacing Rchtml.dll in \bin with that from R-patched fixes the problem. A hex file compare claims the two versions of Rchtml.dll are identical, except for the creation dates. Any i

[Rd] download problem: Windows binaries - patched/devel versions

2005-10-24 Thread P Ehlers
check if these files are accessible to them? I'm guessing there's something haywire in my setup. Note that I can ftp the files without problem. -- Peter Ehlers Department of Mathematics and Statistics University of Calgary, 2500 University Dr.

[Rd] plot.TukeyHSD (PR#8229)

2005-10-20 Thread ehlers
Full_Name: Peter Ehlers Version: "R version 2.2.0, 2005-10-19" OS: Windows XP Submission from: (NULL) (136.159.71.162) The newly added column of adjusted p-values in TukeyHSD output causes a problem with plotting the confidence intervals; an extraneous vertical line segment

Re: [Rd] Typo(s) in proc.time.Rd and comment about ?proc.time (PR#8092)

2005-08-24 Thread P Ehlers
de of the 49th parallel. But please don't let these comments discourage further documentation improvement suggestions. Peter Ehlers U. of Calgary (Canada) [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > >>On Wed, 24 Aug 2005 [EMAIL PROTECTED] wrote: > > >>>I just