Re: [Rd] Simplify and By Convert Factors To Numeric Values

2017-06-16 Thread Charles C. Berry
On Fri, 16 Jun 2017, Dario Strbenac wrote: Good day, It's not described anywhere in the help page, but tapply and by functions will, by default, convert factors into numeric values. Perhaps this needs to be documented or the behaviour changed. It *is* described in the help page. This re

Re: [Rd] A trap for young players with the lapply() function.

2017-03-27 Thread Charles C. Berry
On Mon, 27 Mar 2017, Rolf Turner wrote: From time to time I get myself into a state of bewilderment when using apply() by calling it with FUN equal to a function which has an "optional" argument named "X". E.g. xxx <- lapply(y,function(x,X){cos(x*X)},X=2*pi) which produces the error mes

Re: [Rd] How do I reliably and efficiently hash a function?

2015-12-10 Thread Charles C. Berry
On Thu, 10 Dec 2015, Konrad Rudolph wrote: I’ve got the following scenario: I need to store information about an R function, and retrieve it at a later point. In other programming languages I’d implement this using a dictionary with the functions as keys. In R, I’d usually use `attr(f, 'some-nam

Re: [Rd] R CMD build failure

2015-07-09 Thread Charles C. Berry
On Thu, 9 Jul 2015, Therneau, Terry M., Ph.D. wrote: I have a local library 'dart' that imports "httr". [snip `R CMD build' can't find dart] Any ideas? There is no mention in the Writing R Extentions manual that it ignores the Rprofile file. Terry, From WRE: 1.3 Checking and buildi

Re: [Rd] Different behavior of model.matrix between R 3.2 and R3.1.1

2015-06-16 Thread Charles C. Berry
On Tue, 16 Jun 2015, Frank Harrell wrote: Terry Therneau has been very helpful on r-help but we can't figure out what change in R in the past months made extra columns appear in model.matrix when the terms object is subsetted to remove stratification factors in a Cox model. Terry has changed

[Rd] Bug in parseNamespaceFile or switch( , ... ) ?

2010-11-27 Thread Charles C. Berry
e-darwin9.8.0/i386 (32-bit) locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets methods base Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.e

Re: [Rd] Request: kronecker to get a sep= argument

2010-11-25 Thread Charles C. Berry
On Thu, 25 Nov 2010, Charles C. Berry wrote: On Thu, 25 Nov 2010, Michael Friendly wrote: kronecker, with make.dimnames=TRUE uses a hardwired sep=":" in the line tmp <- outer(dnx[[i]], dny[[i]], FUN = "paste", sep = ":") For an application in w

Re: [Rd] Request: kronecker to get a sep= argument

2010-11-25 Thread Charles C. Berry
rku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [Rd] Bug in agrep computing edit distance?

2010-11-17 Thread Charles C. Berry
but that didn't help much ... Daniel Dickison Research Programmer ddicki...@carnegielearning.com Toll Free: (888) 851-7094 x103 FAX: (412) 690-2444 Revolutionary Math Curricula. Revolutionary Results. Carnegie Learning, Inc. | 437 Grant St. 20th Floor | Pittsburgh, PA 15219 www.carnegielearning.com __

Re: [Rd] unloading compiled code.

2010-11-16 Thread Charles C. Berry
e straight forward solution would be to have a hook .onExit that a package could specify to make sure that the code was unloaded before the program terminates, that way I don't overwrite .Last if if has another purpose. -Andrew On Tue, Nov 16, 2010 at 11:27 AM, Charles C. Berry wrote: On T

Re: [Rd] unloading compiled code.

2010-11-16 Thread Charles C. Berry
65 272866 (PA) Oxford OX1 3TG, UK                Fax:  +44 1865 272595 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. BerryDept of Family/Preventive Medicine cbe

Re: [Rd] Bug in read.table?

2010-11-05 Thread Charles C. Berry
7.82753 -1.207808 001º12'28.10711"W 037º49'39.11703"N 368.859 317.920 25/10/2010 17:00:30 14 37.82753 -1.207808 001º12'28.10702"W 037º49'39.11711"N 368.861 317.922 25/10/2010 17:00:45 15 37.82753 -1.207808 001º12'28.10733"W 03

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

2010-10-08 Thread Charles C. Berry
ling list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://famprevmed.u

Re: [Rd] Does anyone use Sweave (RweaveLatex) option "expand=FALSE"?

2010-08-19 Thread Charles C. Berry
found by "brute force" (grep all .Rnw > > > files on CRAN for the option? > > > > > > Claudia > > > > > > > > > > > __ > > R-devel@r-project.org mailing list > > https:/

Re: [Rd] Should as.complex(NaN) -> NA?

2010-03-31 Thread Charles C. Berry
: subscript out of bounds Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098

Re: [Rd] New version weighted mean differs from the old one (PR#14142)

2009-12-14 Thread Charles C. Berry
d output was (xm <- weighted.mean(x,wt,na.rm=T)) [1] 3.5 The number si obtained ignoring the x[4], which is NA. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry

Re: [Rd] split() is slow on data.frame (PR#14123)

2009-12-09 Thread Charles C. Berry
R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098

Re: [Rd] R Usage Statistics

2009-11-19 Thread Charles C. Berry
_ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC S

Re: [Rd] 'is.integer' (PR#13671)

2009-04-22 Thread Charles C. Berry
ev48333 language R version.string R version 2.9.0 (2009-04-17) __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry

Re: [Rd] further notes on model.frame issue

2009-01-19 Thread Charles C. Berry
ls remembered as an extra attribute, and also looks out for dates. So the result is like ns() in the eyes of model.frame, and it works. But having to write gender twice on the rhs is confusing to users. Thanks in advance for any comments. Terry Therneau _

Re: [Rd] issue with [[<-Call

2008-12-25 Thread Charles C. Berry
aching point of view I'd be delighted to see it. Terry T. __________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098

Re: [Rd] Bug in Version 2.80? (PR#13243)

2008-11-03 Thread Charles C. Berry
22=20 3005 Bern Switzerland=20 Tel. +41 31 356 61 61 Mail: [EMAIL PROTECTED] ___ [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry

Re: [Rd] unlist change the ordered type

2008-10-24 Thread Charles C. Berry
of class 'ordered' and the levels attributes are the same would this be sensible. HTH, Chuck Christophe __________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098

Re: [Rd] matching predictors and dummies

2008-07-11 Thread Charles C. Berry
e at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[

Re: [Rd] Suggestion: 20% speed up of which() with two-character mod

2008-07-11 Thread Charles C. Berry
stem elapsed ## 1.283186 1.052632 1.25 You get similar results if you put for loop outside the system.time() call (and sum up the timings). Cheers Henrik __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-deve

Re: [Rd] zero variance in part of a glm (PR#11355)

2008-05-03 Thread Charles C. Berry
om AIC: NA =20 Number of Fisher Scoring iterations: 5 =20 # Now the standard errors are all well-behaved =20 =20 [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Ch

Re: [Rd] Great tool

2008-01-21 Thread Charles C. Berry
listinfo/r-devel >> > > __________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > Charles C. Berry(858) 534-2098 Dept of Family/Prev

Re: [Rd] setdiff for data frames

2007-12-10 Thread Charles C. Berry
ment > -3170 FAX > E-mail: [EMAIL PROTECTED] > http://www.cc.ysu.edu/~gjkerns/ > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > Charles C. Berry(858) 534-2

Re: [Rd] pt inaccurate when x is close to 0 (PR#9945)

2007-10-10 Thread Charles C. Berry
ats" "graphics" "grDevices" "utils" "datasets" "methods" >> "base" >> >>> version >> platform i386-pc-mingw32 >> arch i386 >> os mingw32 >> system

Re: [Rd] Reciprocal Mill's Ratio

2007-09-14 Thread Charles C. Berry
h/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La J

Re: [Rd] installing packages (PR#9907)

2007-09-12 Thread Charles C. Berry
. Check Sys.getenv("PATH") install.packages() works fine on all my Gentoo boxes with R installed as per the instructions in $R_HOME/doc/manual/R-admin.html > > __ > R-devel@r-project.org mailing list > https://st

Re: [Rd] [OT] How many useRs?

2007-08-27 Thread Charles C. Berry
native HTML version deleted]] > > ______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > Charles C. Berry(858) 534-2098 Dept of Fam

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Charles C. Berry
ets you there like > marked stones across a marsh. Leaving the path usually gets you at best > neck deep in the mire, alternatively just bubbles. Fortune! [snip] Charles C. Berry(858) 534-2098 Dept of Family/Preventive

Re: [Rd] Wish list

2007-01-01 Thread Charles C. Berry
Y or simplify gives the desired behavior and SIMPLIFY takes precedence over simplify if both are given values. Not pretty, perhaps, but it does the job. I suppose this could get one into trouble if one of the ... args is named 'simplify', but I do not imagine that is a big

Re: [Rd] Fwd: [R] axis and times() problem

2006-12-28 Thread Charles C. Berry
it look like the axes are different. Axis()/axis() is behaving the same way in both cases. > par(mfrow=c(1,2)) > plot(c(.51, .6), bty = "n", xaxs = "i", yaxs = "i") > box(lty=2) > plot(c(.51, .6), xaxs = "i", yaxs = "i") > axis(4,col=2)

Re: [Rd] as.missing

2006-10-24 Thread Charles C. Berry
in cat("gdef is ", gdef, "\n") : argument "fdef" is missing, with > no default > > > What would be nice to be able to do is to have a simple way for f() to > act just like g() does. Is this what you want? > f <- function(fnodef, fdef=NULL) {

Re: [Rd] Changing function arguments

2006-10-22 Thread Charles C. Berry
LLC > 53 State Street, 5th Floor | Boston, MA | 02109 > Tel: 617/392-8396Fax:617/476-6389 > mailto:[EMAIL PROTECTED] > > > > This e-mail, and any attachments hereto, are intended for us...{{dropped}} > > __ > R-devel@r-pr

Re: [Rd] Extreme slowdown with named vectors. A bug?

2006-10-06 Thread Charles C. Berry
vior on R-2.2.0 Linux. On Fri, 6 Oct 2006, Henrik Bengtsson wrote: > Tried the following with R --vanilla on the Rv2.4.0 release (see > details at the end). I think the script and its comments speaks for > itself, but the outcome is certainly not wanted. > [snip] Charles C. Berry

Re: [Rd] Wish: keep names in mapply() result

2006-08-30 Thread Charles C. Berry
(answer) <- dots[[1]] > @@ -47,4 +55,4 @@ > } > formals(FUNV) <- formals(FUN) > FUNV > -} > \ No newline at end of file > +} > > -- > Lep pozdrav / With regards, >Gregor Gorjanc > > ---

Re: [Rd] Patch to allow negative argument in head() and tail()

2006-07-19 Thread Charles C. Berry
or it ***could*** be done by using match.call to recover the explicit '+' or '-'. But I shudder to think of the confusion that this approach might cause when n is an expression whose value is negative. Chuck Charles C. Berry(858) 534-2098

Re: [Rd] Undocumented features of 'browser' (and possible changes)

2006-03-25 Thread Charles C. Berry
t both blank lines and comment lines > will exit the browser. Kevin, This trick may help: Browse[1]> { ### blank lines will be ignored + + + + x+1 + } [1] 2 Browse[1]> Maybe you want to write 'ess-eval-region-in-braces'. [rest deleted] Chuck Charles C. Berry

Re: [Rd] unexpected '[<-.data.frame' result

2005-10-26 Thread Charles C. Berry
On Wed, 26 Oct 2005, Peter Dalgaard wrote: > "Charles C. Berry" <[EMAIL PROTECTED]> writes: > >> Is this a bug? >> >> If not, I am curious to know why '[<-.data.frame' was designed to yield >> a.frame$y != a.frame$z rather than re

[Rd] unexpected '[<-.data.frame' result

2005-10-26 Thread Charles C. Berry
a.frame[[ "z" ]][ 2:5 ] <- letters[2:5] > a.frame xyz 1 ab 2 bcb 3 c d c 4 ded 5 e e Chuck Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECT

[Rd] md5sum for R-2.2.0-win32.exe ??

2005-10-20 Thread Charles C. Berry
I get c1279b77fcccf40379f59a83523a440e *R-2.2.0-win32.exe but I see e8bdf765fe8013129045314c8e2605fd *rw2011.exe on several USA mirrors. I hope the latter is merely in need of a replacement and not an indication of a problem with the web sites. Chuck Charles C. Berry

Re: [Rd] calling fortran from C

2005-10-20 Thread Charles C. Berry
stant > time penalty on making such a call. > > Thanks in advance, Jim > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > Charles C. Berry(858) 534-2098