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: [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

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,

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

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
methods base Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901 __ R-devel@r

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

2010-11-25 Thread Charles C. Berry
://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.edu

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 which dimnames arise from an n-way array

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

2010-11-17 Thread Charles C. Berry
https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901

Re: [Rd] unloading compiled code.

2010-11-16 Thread Charles C. Berry
(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...@tajo.ucsd.edu

Re: [Rd] unloading compiled code.

2010-11-16 Thread Charles C. Berry
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 cbe...@tajo.ucsd.edu wrote

Re: [Rd] Bug in read.table?

2010-11-05 Thread Charles C. Berry
-1.207808 001º12'28.10767W 037º49'39.11744N 368.857 317.918 25/10/2010 17:01:15 Thanks, Javier --- __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. BerryDept of Family

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

2010-10-08 Thread Charles C. Berry
C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901

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

2010-08-19 Thread Charles C. Berry
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 Dept

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

2010-03-31 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

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

2009-12-14 Thread Charles C. Berry
,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(858) 534-2098

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 Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San

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 San

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

2009-04-22 Thread Charles C. Berry
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(858) 534-2098

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

2009-01-19 Thread Charles C. Berry
is confusing to users. Thanks in advance for any comments. Terry Therneau __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098

Re: [Rd] issue with [[-Call

2008-12-25 Thread Charles C. Berry
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.ucsd.edu/faculty/cberry/ La Jolla

Re: [Rd] unlist change the ordered type

2008-10-24 Thread Charles C. Berry
-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:[EMAIL PROTECTED] UC San Diego http://famprevmed.ucsd.edu

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

2008-07-11 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:[EMAIL PROTECTED] UC San Diego http

Re: [Rd] Great tool

2008-01-21 Thread Charles C. Berry
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 Jolla, San Diego 92093-0901

Re: [Rd] setdiff for data frames

2007-12-10 Thread Charles C. Berry
: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -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

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

2007-10-10 Thread Charles C. Berry
://stat.ethz.ch/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 Jolla, San Diego 92093

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

2007-09-12 Thread Charles C. Berry
() 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://stat.ethz.ch/mailman/listinfo/r-devel Charles C. Berry

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

2007-08-27 Thread Charles C. Berry
https://stat.ethz.ch/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 Jolla, San

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

2007-01-19 Thread Charles C. Berry
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 Medicine E mailto:[EMAIL PROTECTED

Re: [Rd] Wish list

2007-01-01 Thread Charles C. Berry
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 deal. 14. [rest deleted] Charles C. Berry(858) 534-2098

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

2006-12-28 Thread Charles C. Berry
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) [...] Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto

Re: [Rd] as.missing

2006-10-24 Thread Charles C. Berry
/mailman/listinfo/r-devel Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0717

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

2006-10-06 Thread Charles C. Berry
, 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(858) 534-2098

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

2006-03-25 Thread Charles C. Berry
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(858) 534-2098

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

2005-10-26 Thread Charles C. Berry
yz 1 ab NA 2 bcb 3 cdc 4 ded 5 e NAe Chuck Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry

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 refusing to carry out the operation at all. a.frame - data.frame( x=letters[1:5

Re: [Rd] calling fortran from C

2005-10-20 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:[EMAIL PROTECTED

[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