Re: [Rd] Standardized Pearson residuals

2011-03-15 Thread peter dalgaard
On Mar 15, 2011, at 14:22 , Jari Oksanen wrote: > On 15/03/11 13:17 PM, "peter dalgaard" wrote: > >> >> On Mar 15, 2011, at 04:40 , Brett Presnell wrote: >> >>> >>>>> Background: I'm currently teaching an undergrad/grad-servic

Re: [Rd] Standardized Pearson residuals

2011-03-15 Thread peter dalgaard
On Mar 15, 2011, at 13:42 , John Maindonald wrote: >> Peter Dalgaard: It would also be nice for teaching purposes if glm or >> summary.glm had a >> "pearsonchisq" component and a corresponding extractor function, but I >> can imagine that there might be

Re: [Rd] Standardized Pearson residuals

2011-03-15 Thread peter dalgaard
anova(glm(births~1,poisson,data=bb), test="Chisq") ... Df Deviance Resid. Df Resid. Dev P(>|Chi|) NULL11 225.98 Notice that the latter version gives me the correct deviance but no p-value. A better support for generic score tests could be desira

Re: [Rd] Standardized Pearson residuals

2011-03-14 Thread peter dalgaard
pe, pearson = infl$pear.res, infl$dev.res) > res <- res/sqrt(1-infl$hat) > res[is.infinite(res)] <- NaN > res > } > > __ > R-devel@r-project.org mailing list > https://stat.ethz

Re: [Rd] Create an environment and assign objects to it in one go?

2011-03-09 Thread peter dalgaard
t;- local({ a <- 1; b <- 2; environment()}) env$a -pd > /Henrik > > PS. > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg P

Re: [Rd] broken link on CRAN

2011-02-28 Thread peter dalgaard
__ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gma

Re: [Rd] request for patch in "drop1" (add.R)

2011-02-23 Thread peter dalgaard
pe, e.g. by doing all tests via anova(model1,model2,...). I'm not quite up to figuring out how complicated that would be. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email:

Re: [Rd] Problem with confint function

2011-02-11 Thread peter dalgaard
d approximation implied by +/- 1.96*SE. If you insist on the latter, try confint.default. (This *is* all on the help page for confint()!). > Thanks! > > -- > All the best!, > ~Joaquin A. Aguilar A. - aka Kino > > [[alternative HTML version deleted]] > > ___

Re: [Rd] trojan at current development version?

2011-01-28 Thread peter dalgaard
d > a trojan in open.exe at bin\i386. We have seen false positives before (accidental mismatch between virus signatures and legitimate programs). But presumably, the Windows maintainers will double-check, just in case. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solb

Re: [Rd] "+" operator on characters revisited

2011-01-23 Thread peter dalgaard
rules: Is "x"+1+2 supposed to be equal to "x12" or "x3"? -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com

[Rd] Windows script editor and locale

2011-01-21 Thread peter dalgaard
ss it. Would be nice if there was something like a set-coding-system to call up via a menu item. Any pointers? -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: p

Re: [Rd] as.environment.list provides inconsistent results under torture

2011-01-12 Thread peter dalgaard
parser lookahead breaking protection stack discipline, fixed by UNPROTECT_PTR() etc.). I lost track a bit in the frenzy and I never got around to backing out everything. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjer

Re: [Rd] scoping/non-standard evaluation issue

2011-01-06 Thread peter dalgaard
try eval(bquote(plot(.(rnorm(20) -pd -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-devel@r-project.org mailing li

Re: [Rd] scoping/non-standard evaluation issue

2011-01-05 Thread peter dalgaard
6.909e-02-3.971e-03-8.595e-03 >>> Population Year >>> 1.164e+00-1.911e+00 >>> >>> - snip --- >>> >>> The problem with f1() is that it will clobber a variable named .subs in > the >>> global environment; the

Re: [Rd] scoping/non-standard evaluation issue

2011-01-04 Thread peter dalgaard
Year > 1.164e+00-1.911e+00 > > - snip --- > > The problem with f1() is that it will clobber a variable named .subs in the > global environment; the problem with f2() is that .subs can be masked by a > variable in the global environment. >

Re: [Rd] problem building R 2.12.1 64-bit on Windows 7

2010-12-30 Thread peter dalgaard
@ sign from the beginning of that line > in MkRules, and see what it is trying to do just before it dies. > > Duncan Murdoch Off-the-cuff: Is there a virus scanner active on the system? We have had a couple of reports that turned out to be antivirus software swiping files away fo

Re: [Rd] environment question

2010-12-26 Thread peter dalgaard
Ihaka and Gentleman on lexical scope, 1996 IIRC). However, some care must be taken; in particular, if you don't make sure that the object already exists in the appropriate environment, another object of the same name might get clobbered, e.g. in the global environment. Best, -pd (& th

Re: [Rd] Warning message when items of Hmisc are masked by loading a package.

2010-12-21 Thread peter dalgaard
gt; $status >>>> [1] "" >>>> >>>> $major >>>> [1] "2" >>>> >>>> $minor >>>> [1] "12.1" >>>> >>>> $year >>>> [1] "2010" >>>> >>>> $m

Re: [Rd] 'identical' and the warning "ignoring non-pairlist attributes"

2010-12-12 Thread peter dalgaard
es have the same hash index, a final linear search through a chained list of names is necessary.) -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [Rd] 'identical' and the warning "ignoring non-pairlist attributes"

2010-12-11 Thread peter dalgaard
On Dec 11, 2010, at 11:23 , peter dalgaard wrote: > > On Dec 11, 2010, at 08:23 , Niels Richard Hansen wrote: > >> Dear R developers >> >> Using the 'foreach' package I encounter warnings like >> >> Warning message: >> In identi

Re: [Rd] 'identical' and the warning "ignoring non-pairlist attributes"

2010-12-11 Thread peter dalgaard
so perhaps identical() just shouldn't check. On the other hand, it could also be the sign of a memory overrun in the preceding memory-intensive operation. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email

Re: [Rd] GPL and R Community Policies (Rcpp)

2010-12-02 Thread peter dalgaard
es by now have been dug so deeply that any attempt of impartial mediation will be seen by both parties as siding with the other. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email:

Re: [Rd] Bug in read.table?

2010-11-16 Thread peter dalgaard
ead > and report it as such, or would someone explain why it's not a bug? > I think it can be defended to file as a bug, but it is tricky to pinpoint exactly what the issue is. E.g., notice that adding a few spaces changes the behaviour of scan() considerably: > scan(what="

Re: [Rd] Evaluation puzzle

2010-11-11 Thread Peter Dalgaard
ex+year", data = mydata) Browse[1]> ls() [1] "mydata" "zed" Browse[1]> tfun function(mydata) { zed <- 100 + (1:nrow(mydata)) * 20 survexp.test(zed ~ 1, data=mydata) } -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (

Re: [Rd] "$<-" fails (invalid subscript type 'language')

2010-10-24 Thread Peter Dalgaard
nt in my S4 method, because it's not even entered. There are some things you are not really supposed to mess with in R... Computing the index to $-constructs is one of them (trying to set up a for loop as a call to `for` is another). It can be done, it&#

Re: [Rd] new.env does not recognize parents from subclassesof "environment"

2010-10-23 Thread Peter Dalgaard
tched and R-devel >> tar balls ? >> >> Or what were you talking about ? > > We are talking about the > > http://stat.ethz.ch/R-manual/ > > page. R-devel NEWS show R-2.12.0, just as on example. > > Uwe > You need to get NEWS from $BUILDDIR these days. A

Re: [Rd] make error for R 2.13.0 (and 2.12.0)

2010-10-18 Thread Peter Dalgaard
; --enable-targets=all --enable-checking=release --build=i486-linux-gnu > --host=i486-linux-gnu --target=i486-linux-gnu > Thread model: posix > gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4) > > This R-2.12.0 installation generally works (based on testing a few > trivial things).

Re: [Rd] What do you call the value that represents a missing argument?

2010-10-09 Thread Peter Dalgaard
t;- y Error: argument "y" is missing, with no default (I have forgotten whether there's a reason that the above doesn't fail already on the assignment to y. Somehow it would have been more logical if missing values could _only_ appear inside lists. Except in actual function arguments

Re: [Rd] Recursion error after upgrade to R_2.11.1 [Sec=Unclassified] [Sec=Unclassified]

2010-10-07 Thread Peter Dalgaard
ed in your feedback. By a curious coincidence, the prerelease crontab had the same typo ... 02 00 1 10 * $HOME/scripts/R-set-version '2.12.0 beta' 02 00 8 10 * $HOME/scripts/R-set-version '2.12.2 RC' Fortunately, I saw the mail with a failing prerelease build before going to b

Re: [Rd] R-beta_2010-10-02_r53128 fails to compile on FreeBSD

2010-10-03 Thread Peter Dalgaard
H #include #endif somewhere at the top of the files that use the two macros (sysutils.c and sys-unix.c AFAICS). "&& defined(WEXITSTATUS)" probably won't break anything that wasn't already broken, but it does insert a default definition that could conflict

Re: [Rd] R-beta_2010-10-02_r53128 fails to compile on FreeBSD

2010-10-03 Thread Peter Dalgaard
code 1 > Stop in /usr/local/R-beta. > - > > Is this a known error? I would really appreciate if someone could give > me a hint. > > Please let me know if more information is needed. > > Thanks in advance, > Rainer Hurling > >

Re: [Rd] Assignment to a slot in an S4 object in a list seems to violate copy rules?

2010-09-30 Thread peter dalgaard
g, not an obscure corner case): r52914 | luke | 2010-09-15 19:06:13 +0200 (Wed, 15 Sep 2010) | 4 lines Modified applydefine to duplicate if necessary to ensure that the assignment target in calls to assignment functions via the complex assignment mechanism always has NAMED == 1. -- Pet

Re: [Rd] License of R manuals

2010-09-29 Thread Peter Dalgaard
_ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [Rd] a small suggestion for improving the building of packages

2010-09-15 Thread peter dalgaard
ory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened. -- Peter Dalgaard Center for Statist

Re: [Rd] value returned by by()

2010-09-15 Thread peter dalgaard
ill be a list, though.) Notice that in the relevant cases, what you get really _is_ a list, and both walks and quacks like one. E.g. > L <- with(warpbreaks, by(warpbreaks[, 1], tension, mean, simplify=FALSE)) > is.list(L) [1] TRUE > L$M [1] 26.38889 -- Peter Dalgaard Cen

Re: [Rd] More strange R CMD build/check errors on Windows

2010-09-12 Thread Peter Dalgaard
already ruled that out, but it has been the culprit for problems with mysteriously disappearing intermediate files in several cases, so I thought I'd mention it. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda..

Re: [Rd] A couple of typos in ?pairwise.t.test

2010-09-10 Thread peter dalgaard
; Regards, > > Marc Schwartz > > > > > ______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Dalgaard Center for Statistics, Copenhagen Busine

Re: [Rd] Drop single-dimensional array

2010-09-08 Thread Peter Dalgaard
that this is perhaps not a clear >>> bug, but somewhat unclear behavior. >>> >>> The most compact way to break the vector out of its eggshell seems to >>> be >>> >>> t(x)[,] >>> >>> but drop(x) would be much easier to read an

Re: [Rd] R and Epi Info

2010-09-01 Thread peter dalgaard
ut I know that at least some of the regulars are familiar with Epi Info and the list includes the authors of several R packages for epidemiology. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd..

Re: [Rd] Surprising behavior of Negate()

2010-08-29 Thread Peter Dalgaard
ic lazy eval gotcha -- almost never intentional. Testing your patch now. -p -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-devel@r-project.org mailing list h

Re: [Rd] Is it safe not to coerce matrices with as.double() in .C()?

2010-08-27 Thread peter dalgaard
avoid duplicating things you won't be modifying anyway, etc. > > Best, > Andy > Notice: This e-mail message, together with any attachme...{{dropped:14}} > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch

Re: [Rd] adding a built-in drop.levels option for subset() in 2.12 ?

2010-08-23 Thread peter dalgaard
preserve backward > compatibility/efficiency) to the subset function ... ? > If not, would a patch to the documentation and/or the R FAQ be accepted? Ben, there is now a dropLevels() _function_ in R-devel, please try it on for size. -- Peter Dalgaard Center for Statistics, Copenhagen Business

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread peter dalgaard
On Aug 19, 2010, at 1:55 PM, peter dalgaard wrote: >> >> It is also not using pango, and so not selecting fonts the same way as on >> Linux. > > You're assuming (in fact, correctly) that I was using Simon's build, but my > locally built version is simi

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread peter dalgaard
On Aug 19, 2010, at 1:04 PM, Prof Brian Ripley wrote: > On Thu, 19 Aug 2010, peter dalgaard wrote: > >> >> On Aug 19, 2010, at 9:15 AM, Jari Oksanen wrote: >> >> >>> >>> The X11(type = 'cairo') shows the problem with example(points)

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread peter dalgaard
nly not to work, and even disregarding the pi issue, the rotated y-axis labels come out pretty ugly. This is why quartz is now the default on OSX. BTW, it seems that the standard X11 "Symbol","Regular" font is simply absent on OSX. I can't get fc-match to list

Re: [Rd] adding a built-in drop.levels option for subset() in 2.12 ?

2010-08-15 Thread Peter Dalgaard
d less wide-ranging than a global > drop.unused.levels option, or than convincing everyone to use strings > rather than factors most of the time ... > > cheers > Ben Bolker > > -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] accessing tcl variables within R and tcl

2010-08-12 Thread Peter Dalgaard
R and tcl. > > Thanks for any help, Ow, that's been a while... However tcl('test', tclvalue(a)) seems to do the trick, as does tcl('test', tclObj(a)) The latter presumably being preferable, since it avoids conversion to and from an R object. If I re

Re: [Rd] suggestion for ?factor

2010-08-09 Thread peter dalgaard
er(x) that is matched against the level set, but I'm not sure it is the right place for that. > > With thanks, > Ted. > > ---- > E-Mail: (Ted Harding) > Fax-to-email: +44 (0)870 094 0861 > Date: 09-Aug-10

Re: [Rd] R CMD build wiped my computer (from R-help)

2010-08-01 Thread Peter Dalgaard
on my systems, >>>>>> hourly. >>>>>> >>>>>> HTH, >>>>>> >>>>>> Marc Schwartz >>>>>> >>>>>> On Jul 28, 2010, at 5:55 AM, Jarrod Hadfield wrote: >>>>>>>

Re: [Rd] transpose of complex matrices in R

2010-07-30 Thread peter dalgaard
called "adjoint". So another option is to use adj(A) for what you call myt(A), and then just remember to transcribe A^* to adj(A). I forget whether the cross products A^*A and AA^* have any special names in abstract linear algebra/functional analysis. -- Peter Dalgaard Center fo

Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-29 Thread peter dalgaard
I believe that I now has this nailed down (a couple of further issues raised their head). Committed to r-devel. -pd On Jul 29, 2010, at 10:11 AM, Peter Dalgaard wrote: > Peter Dalgaard wrote: >> Prof Brian Ripley wrote: >> >>> I think you will find that '

Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-29 Thread Peter Dalgaard
Peter Dalgaard wrote: > Prof Brian Ripley wrote: > >> I think you will find that 'n' is used in several ways in predict.lm, >> and since NA-handling was introduced in R 1.8.0 they may differ in >> value. So the safest route seems to be to change just &#x

Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-29 Thread Peter Dalgaard
lt;- n - p Yes, that seems to fix things. Will commit to R-devel shortly. -p -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-devel@r-project.org mailing lis

Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-28 Thread Peter Dalgaard
Peter Dalgaard wrote: > William Dunlap wrote: >> In modelling functions some people like to use >> a weight of 0 to drop an observation instead of >> using a subset value of FALSE. E.g., >> weights=c(0,1,1,...) >> instead of >> subset=c(FALSE, TRUE, TRUE

Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-27 Thread Peter Dalgaard
nlines > length(pb) <- nlines > pb[is.na(pb)] <- "" > pa[is.na(pa)] <- "" > retval <- cbind(pa, pb, deparse.level = 0) > dimnames(retval) <- list(rep("",nrow(retval)), argNames) > noquote(retval) > } > > # lw

Re: [Rd] garbage collection & memory leaks in 'R', it seems...

2010-07-17 Thread Peter Dalgaard
st languages that do significant amounts of object allocation and destruction. You should not really compare it to OS level memory management because that's a different kettle of fish. In particular, user programs like R relies on having all objects mapped to a single linear address space, whereas th

Re: [Rd] re ading SPSS .sav files (PR#13509)

2010-07-17 Thread Peter Dalgaard
I have tried so may times running some conditions I think may have caused > these errors to recur(including re-installing the R). > > > > I am at my wit's end on how to make the read.spss work. Please help! It's a warning, not an error. Did you not get a result retu

Re: [Rd] Strange R object

2010-07-09 Thread Peter Dalgaard
Gabor Grothendieck wrote: > On Fri, Jul 9, 2010 at 5:09 AM, Peter Dalgaard wrote: >> Gabor Grothendieck wrote: >>> I have *** attached *** an RData file containing an R object that >>> is acting strangely. >>> >>> Try this in a fresh workspace. Do n

Re: [Rd] Strange R object

2010-07-09 Thread Peter Dalgaard
is not too strange that you can have an ill-formed .Rdata file (if you save zz2 back out, after the above fixup, line 11 changes from 526 to 782, corresponding to the bit being turned on). I don't think it is the job of load() to verify object structures, since there is no end to that task. Rat

Re: [Rd] Possible bug in 2.11.x texmf makefile.in and some related things...

2010-07-05 Thread Peter Dalgaard
et file instead of the source. (Just ask the editor of The R Journal how easy it is to remember to edit RJournal.dtx and not RJournal.sty...) -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __

Re: [Rd] seek() and gzfile() on 32-bit R2.12.0 in linux

2010-06-23 Thread Peter Dalgaard
) >> close(zz) >> blah = file("ex.data", "r") >> seek(blah) > [1] 0 >> zz <- gzfile("ex.gz", "w") # compressed file >> cat("TITLE extra line", "2 3 5 7", "", "11 13 17"

Re: [Rd] [R] New errors with difftime()-objects in 2.11.1 (was Re: Request: difftime method for cut())

2010-06-22 Thread Peter Dalgaard
> difftime objects to be numeric in 2.11.1, when the code's been working > fine before and the error messages are obscure. I don't think you realize the problems that could occur by assuming that difftime objects are numerics ON ANY PARTICULAR SCALE! -- Peter Dalgaard Center for

Re: [Rd] proposed change to 'sample'

2010-06-20 Thread Peter Dalgaard
some code, but I'd expect not all that much. However, it cannot be changed in one go, we'd need to go through a sequence where we (e.g.) 1. warn about length(x)==1 2. say that length(x)==1 is deprecated 3. have length(x)==1 throw an error 4. wait 5. give length(x)==1 a new meaning

Re: [Rd] proposed change to 'sample'

2010-06-20 Thread Peter Dalgaard
it? I.e., you still cannot conveniently sample from a vector that is possibly of size 1. I would be more inclined to make sampling from a vector the normal case, and default x to say 1:max(n, size), forcing users to say sample(n=5) if sampling from x=1:5 is desired. This could be a manageable change

Re: [Rd] [R] Prime Numbers Pkgs - Schoolmath is broken

2010-06-15 Thread Peter Dalgaard
ight be considered more polite first to tell the package maintainder that he has egg on his face... -pd -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-devel

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)

2010-06-09 Thread Peter Dalgaard
ot; at the top of Rcmd so that you see the script as it is executed. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1) system

2010-06-08 Thread Peter Dalgaard
as a workaround in > R.sh.in). > We even do it using @OSF_SH_BUG@, which would probably be a good idea to clone in Rcmd.in. On the other hand, the use of $...@} in Rcmd.in goes back to at least 2002, which is a bit puzzling. Did OSF really not get tested since then?? -- Peter Dalgaard

Re: [Rd] Argument recycling in substring()

2010-06-04 Thread peter dalgaard
ee. The current behaviour is reasonable. Yes, but I don't see how it is inconsistent with the docs. It says that it won't recycle, and it doesn't. The fact that the combination of 0-length index and a positive-length x is nonsensical is an orthogonal issue. (Notice, BTW, that x &l

Re: [Rd] SVN vs DVCS

2010-05-26 Thread Peter Dalgaard
des, SVN conflict are almost always trivial to resolve: Either a matter of selecting one of two changes or keeping both. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com ___

Re: [Rd] R CMD check

2010-05-16 Thread Peter Dalgaard
f something redefines T/F globally, hence the warning. (The code checker heuristics first looks a local definition of T or F, in which case things are fine, or at least not wrong for this particular reason.) -- Peter Dalgaard Center for Statistics, Cop

Re: [Rd] update.packages fails with directory not found

2010-05-11 Thread peter dalgaard
check here would be appropriate and, given that the installation has been > basically successful at this point, even an attempt to copy the directory > after the refusal by Windows to rename it? I understand of course that the > developers have better things to do than to wrestle with the

Re: [Rd] Rd2dvi pagination of index in pdf manual

2010-04-29 Thread peter dalgaard
gt; Thanks, Brian. I'm not actually sure that we need the fourth pdflatex pass (i.e., maybe makeindex just kicked in too soon), so the fix was defensive. It will do for now, though, if things are going to change. -pd -- Peter Dalgaard Center for Statistics, Copenhagen Business School So

Re: [Rd] Rd2dvi pagination of index in pdf manual

2010-04-28 Thread peter dalgaard
865 272861 (self) > 1 South Parks Road, +44 1865 272866 (PA) > Oxford OX1 3TG, UKFax: +44 1865 272595 > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] serial connection patch

2010-04-27 Thread Peter Dalgaard
ajor disentanglement in other areas anyway, and I don't see contributions of this order of magnitude as a target of legal dispute either. > > Duncan Murdoch -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (

Re: [Rd] segfault with format.POSIXct()

2010-04-23 Thread peter dalgaard
On Apr 23, 2010, at 4:17 PM, Duncan Murdoch wrote: > On 23/04/2010 10:03 AM, peter dalgaard wrote: >> On Apr 23, 2010, at 2:50 PM, Sebastian P. Luque wrote: >> >> > On Fri, 23 Apr 2010 13:31:14 +0200, >> > Uwe Ligges wrote: >> > >> Works for

Re: [Rd] segfault with format.POSIXct()

2010-04-23 Thread peter dalgaard
R-devel (r51398). > -- > Seb > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Ph

Re: [Rd] Bugs? when dealing with contrasts

2010-04-21 Thread Peter Dalgaard
Gabor Grothendieck wrote: > On Wed, Apr 21, 2010 at 4:26 PM, Peter Dalgaard wrote: ... >> I.e., that R reverts to using indicator variables when the intercept is >> absent. > > Is there any nice way of getting contr.sum coding for the interaction > as opposed to the ugl

Re: [Rd] Bugs? when dealing with contrasts

2010-04-21 Thread Peter Dalgaard
101 > attr(,"assign") > [1] 0 1 1 > attr(,"contrasts") > attr(,"contrasts")$fac > [1] "contr.treatment" > >> # I was expecting the first one to give me this >> options(contrasts = c("contr.sum", "contr.po

Re: [Rd] Issue with aggregate.ts and/or %\% on Windows

2010-04-19 Thread Peter Dalgaard
ther the CPU or compiler version. It is even more insidious: I see on the SAME system > 1%/%0.2 [1] 4 > 1/0.2==5 [1] TRUE so it isn't just the usual precision issue. Of course, exact calculations with floating-point numbers is "unsafe at any

Re: [Rd] Why no race condition when returning UNPROTECT-ed memory from C?

2010-04-14 Thread peter dalgaard
it is to remember exactly which programming constructs might allocate something, but in the above, there aren't any. You need to watch out with the unprotected return value, though: fee(foo(), fum()) is a standard bug source if fum() allocates. -- Peter Dalgaard Center for Statistics,

Re: [Rd] How to enable core dump?

2010-04-09 Thread peter dalgaard
e HTML version deleted]] > > ______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501

Re: [Rd] strptime(): on Linux system it seems to call system time?

2010-03-20 Thread Peter Dalgaard
penSUSE 10.3 it is user system elapsed 3.924 6.992 10.917 At any rate, I suspect that this is an issue with the operating system and its C libraries, not with R as such. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] y ~ X -1 , X a matrix

2010-03-18 Thread Peter Dalgaard
formula into (say) Y ~ X1 + X2 - 1, which could get rather unwieldy, so I don't think the feature will be going away. (Someone with too much time on his/her hand might want to rationalize the whole data frame concept, but that should go in the direction of handling all matrix-like structures consi

Re: [Rd] tcltk and R

2010-03-15 Thread Peter Dalgaard
(well, sort of), we'd be without Tk there. (We do, byt the way, handle the case where the display is absent, but there really ought to be a neater way to load Tcl without Tk.) -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk

Re: [Rd] scale(x, center=FALSE) (PR#14219)

2010-03-13 Thread Peter Dalgaard
; + (To scale by the standard deviations without centering, >>> + use \code{scale(x,center=FALSE,scale=apply(x,2,sd,na.rm=TRUE))}.) >>> } >>> \references{ >>> Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) >>> >>> (Bump re: suggested update to scale.Rd . Is this under >>> considera

Re: [Rd] Bug reporting system inquiry plus a bug report related to sort

2010-03-08 Thread Peter Dalgaard
t bug management system. >>> >>> I would argue that if there was a somewhat bigger hurdle in place to bug >>> reporting that compelled folks to post to R-Help first, before filing a >>> formal bug report, that this would not be a bad outcome. Whatever the host >

Re: [Rd] R logo as SVG ?

2010-03-01 Thread Peter Dalgaard
Peter Dalgaard wrote: Jens Elkner wrote: On Sat, Feb 27, 2010 at 08:23:17PM +0100, baptiste auguie wrote: You got the first two letters right, but it's actually *Barry*'s work! Oh - sorry, Barry!!! BTW: screenshots I made from my desktop are available via http://iws.cs.uni-ma

Re: [Rd] R logo as SVG ?

2010-03-01 Thread Peter Dalgaard
highest resolution bitmap from http://developer.r-project.org/Logo I now have a version that is only 48 K. It still needs a little touching up to get a transparent background without destroying the highlighted regions. I'm attaching it here, but it might not make it to r-devel.

Re: [Rd] R logo as SVG ?

2010-02-27 Thread Peter Dalgaard
Jens Elkner wrote: On Mon, Feb 22, 2010 at 01:14:51PM +0100, Peter Dalgaard wrote: Hi Peter, sorry for the later answer - had to finish other tasks first :( I played around with inkscape again (& it IS a time sink...) The attached version is around 200K and not too bad looking to my

Re: [Rd] Suppressing a warning from library()

2010-02-24 Thread Peter Dalgaard
it this to the R core and their collective wisdom. I admit that mine is an unusual case, and for now I'll turn if off with options(warn=-1) Probably, wrapping in suppressWarnings() is better. -p -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dep

Re: [Rd] system.time provides inaccurate sys.child (PR#14210)

2010-02-21 Thread Peter Dalgaard
y that the threshold to compare the code of your version with the latest one etc is to large for someone to be bothered. /Henrik It was fixed in r-devel same day, though. The message threading is just a bit messed up. -- O__ ---- Peter Dalgaard Øster Farimagsgade 5,

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-21 Thread Peter Dalgaard
OK. I now have a version which seems to do the trick and reuses an existing error message. Will commit to r-devel if and when make check-devel succeeds. -p Peter Dalgaard wrote: s...@userprimary.net wrote: Thanks, Seth. Martin Morgan sent a patch for a few lines above yours, which I didn&#

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-21 Thread Peter Dalgaard
t because of > x <- matrix(1:4,2,2) > x[[2,2]] [1] 4 > x[[2,2]] <- integer(0) > x [,1] [,2] [1,]1 3 [2,]2 142000760 On 2/20/10 7:50 AM, Peter Dalgaard wrote: You don't want to understand, believe me! ;-) It's a bug, probably not the very w

Re: [Rd] R logo as SVG ?

2010-02-20 Thread Peter Dalgaard
G. Jay Kerns wrote: On Sat, Feb 20, 2010 at 1:18 PM, Peter Dalgaard wrote: Jens Elkner wrote: Hi, does anybody have the R logo in a vector format preferable SVG? Need it for Freedesktop (GNOME desktop) integration of Rcmdr ... Thanx, jel. Not really. I played around with the tracer in

Re: [Rd] R logo as SVG ?

2010-02-20 Thread Peter Dalgaard
s a bit of a time sink unless you happen to know inkscape (or similar) rather well, but if someone is willing to put in the effort, I'm sure the results would be more than welcome on CRAN. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread Peter Dalgaard
nes which are to me equally strange. Many thanks for your help! George Russell __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biost

Re: [Rd] src/main/par.c (PR#14214)

2010-02-15 Thread Peter Dalgaard
s it may), the return value of do_par will be trashed. (Discovered during CXXR development.) Thanks. Committed to r-devel r51142. -- O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) --

Re: [Rd] Copyright on src/nmath/qnorm.c

2010-02-11 Thread Peter Dalgaard
t it is important to be very precise on matters of licensing which > is > why I raise the point. > > David Heffernan. > > ______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- O__ Peter Dalgaard

Re: [Rd] cbind(deparse.level=2,...) problems

2010-02-09 Thread Peter Dalgaard
, like x+1, which I think is the intended behavior.) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - (p.dalga

Re: [Rd] bug in cut.POSIXt (with patch) (PR#14208)

2010-02-08 Thread Peter Dalgaard
n 2.10.1 (2009-12-14) Windows XP (build 2600) Service Pack 3 Locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 Search Path: .GlobalEnv, package:stats, package:graphics, pack

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