Re: [Rd] rowSums, rowMean and rowCumSums?

2009-07-31 Thread Felix Andrews
_______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Felix Andrews / 安福立 Postdoctoral Fellow Integrated Catchment Assessment and Management (iCAM) Centre Fenner School of Environment and Society [Bldg 48a] The

Re: [Rd] model.matrix evaluation challenges

2009-08-10 Thread Felix Andrews
> ##  evaluates in the parent environment of params ... > try(nrow(with(cc,model.matrix(params > > > > -- > Ben Bolker > Associate professor, Biology Dep't, Univ. of Florida > bol...@ufl.edu / www.zoology.ufl.edu/bolker > GPG key: www.zoology.ufl.edu/bolker/benbolker-publickey.

Re: [Rd] model.matrix evaluation challenges

2009-08-11 Thread Felix Andrews
-Felix 2009/8/12 Ben Bolker : >  that seems to work, thank you. >  would anyone care to explain *why* it works ... ? or where > I could go to read more about why it works ... ? > >  cheers >    Ben Bolker > > > Felix Andrews wrote: >> how about... >> >> nrow(

Re: [Rd] split.data.frame

2009-12-15 Thread Felix Andrews
gt; Romain > > -- > Romain Francois > Professional R Enthusiast > +33(0) 6 28 91 30 30 > http://romainfrancois.blog.free.fr > |- http://tr.im/HlX9 : new package : bibtex > |- http://tr.im/Gq7i : ohloh > `- http://tr.im/FtUu : new package : highlight > > ___

[Rd] proposal for new axis.Date/axis.POSIXct

2009-12-21 Thread Felix Andrews
x <- mean(par("usr")[1:2]) text(x, 0.5, paste("span:", s), cex = 2) text(x, 0.33, paste(format(times), collapse="\n")) text(x, 0.05, "current axis.POSIXct") text(x, 0.95, "proposed new prettyDate axis") ## draw new proposed axi

Re: [Rd] A package for visualizing R syntax

2009-12-23 Thread Felix Andrews
> MRSH - SH018 > Esplanade de la Paix > Campus 1 > 14032 Caen Cedex > > ______ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Felix Andrews / 安福立 Postdoctoral Fellow Integrated Catc

[Rd] proposal for new axis.Date/axis.POSIXct

2010-02-03 Thread Felix Andrews
[reposting after holiday period] -- Forwarded message -- From: Felix Andrews Date: 21 December 2009 23:44 Subject: proposal for new axis.Date/axis.POSIXct To: r-devel@r-project.org Hi R-devel. I've noticed a couple of quirks in the current time/date axis functions (axis

[Rd] bug in aggregate.ts

2010-04-19 Thread Felix Andrews
1252 LC_NUMERIC=C [5] LC_TIME=English_Australia.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base -- Felix Andrews / 安福立 Postdoctoral Fellow Integrated Catchment Assessment and Management (iCAM) Centre Fenner School of Environment and Society [Bldg

Re: [Rd] bug in aggregate.ts

2010-04-19 Thread Felix Andrews
Sorry, I didn't notice Patrick Aboyoun's email reporting the same issue just some minutes ago. On 20 April 2010 10:41, Felix Andrews wrote: > Hi, > > I am getting unexpected behaviour from aggregate.ts(). The 'ndeltat' > argument is effectively being reduced

[Rd] bug in cut.POSIXt(..., breaks = ) and cut.Date

2010-04-28 Thread Felix Andrews
+levels(res) <- as.character(x[!duplicated(res)]) +else levels(res) <- as.character(breaks[-length(breaks)]) +} res } Regards -Felix -- Felix Andrews / 安福立 Postdoctoral Fellow Integrated Catchment Assessment and Management (iCAM) Centre Fenner School of Environment

[Rd] pretty.Date(): new "halfmonth" time step

2010-05-18 Thread Felix Andrews
, "2002-05-01"))) # [1] "2002-02-15" "2002-03-01" "2002-03-15" "2002-04-01" "2002-04-15" "2002-05-01" The proposed patch is attached. Regards -Felix -- Felix Andrews / 安福立 Postdoctoral Fellow Integrated Catchment Assessment and

Re: [Rd] pretty.Date(): new "halfmonth" time step

2010-05-19 Thread Felix Andrews
st to use a consistent date (the 16th) than to calculate exact midpoints, just as a normal monthly series has a consistent date (the 1st) and has variable lengths. Regards -Felix > > - Dan Murphy > >        [[alternative HTML version deleted]] > >

Re: [Rd] pretty.Date(): new "halfmonth" time step

2010-05-20 Thread Felix Andrews
hs. I've found that a > fixed value for a halfway point complicates actuarial calculations. It could > serve other purposes just fine, however. > Best regards, > Dan > > On Wed, May 19, 2010 at 7:48 PM, Felix Andrews wrote: >> >> On 20 May 2010 11:56, Daniel Murphy wr

[Rd] pretty.Date(): changes to axis() methods?

2010-05-20 Thread Felix Andrews
.Date(z, format = format) else if (identical(labels, FALSE)) labels <- rep("", length(z)) # suppress labelling of ticks axis(side, at = z, labels = labels, ...) } Whether to modify axis() methods is up to R-core of course, but I thought it was worth discussing.

[Rd] SVN vs DVCS

2010-05-25 Thread Felix Andrews
n ... http://en.wikipedia.org/wiki/Mercurial_(software) Joel Spolky's take on it: http://www.joelonsoftware.com/items/2010/03/17.html Regards -Felix -- Felix Andrews / 安福立 Postdoctoral Fellow Integrated Catchment Assessment and Management (iCAM) Centre Fenner School of Environment and Society

Re: [Rd] SVN vs DVCS

2010-05-25 Thread Felix Andrews
On second thoughts it is really none of my business how the R sources are managed. But I would encourage package developers and/or r-forge maintainers to consider these systems. Regards -Felix On 26 May 2010 10:29, Felix Andrews wrote: > Hi, > > Just wondering whether anyone had thou

Re: [Rd] SVN vs DVCS

2010-05-26 Thread Felix Andrews
6, 2010 at 5:44 AM, Martin Maechler > wrote: >>>>>>> Felix Andrews >>>>>>>     on Wed, 26 May 2010 11:20:12 +1000 writes: >> >>    > On second thoughts it is really none of my business how the R sources >>    > are managed. >&

[Rd] plot.dendrogram xlim/ylim

2008-07-23 Thread Felix Andrews
- tmp } if (missing(xlim)) xlim <- xlim0 if (missing(ylim)) ylim <- ylim0 plot(0, xlim = xlim, ylim = ylim, .. Regards, Felix -- Felix Andrews / 安福立 PhD candidate Integrated Catchment Assessment and Management Centre The Fenner School of Environment and Society The A

[Rd] grobX for points?

2008-07-25 Thread Felix Andrews
RGtk2_2.12.5-3 gWidgets_0.0-28 [6] lattice_0.17-10 loaded via a namespace (and not attached): [1] gridBase_0.4-3 tools_2.7.1 -- Felix Andrews / 安福立 PhD candidate Integrated Catchment Assessment and Management Centre The Fenner School of Environment and Society The Australian National

Re: [Rd] grobX for points?

2008-07-27 Thread Felix Andrews
On Mon, Jul 28, 2008 at 7:41 AM, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Felix Andrews wrote: >> Hi R-devel, >> >> It seems that grobX and grobY (from the grid package) do not refer to >> the bounding box of a grid.points object. >> >

[Rd] grid.ls() after grid.remove() fails

2008-07-28 Thread Felix Andrews
(*, "class")= chr "viewport" > sessionInfo() R version 2.8.0 Under development (unstable) (2008-07-26 r46127) i386-pc-mingw32 locale: LC_COLLATE=English_Australia.1252;LC_CTYPE=English_Australia.1252;LC_MONETARY=English_Australia.1252;LC_NUMERIC=C;LC_TIME=English_Australia.

[Rd] equivalent to "require" for imports? (cairoDevice)

2008-07-28 Thread Felix Andrews
xact -- which can clog up things like help.search and autocompletion. What is the recommended solution? Could asCairoDevice call loadNamespace rather than require? -- Felix Andrews / 安福立 PhD candidate Integrated Catchment Assessment and Management Centre The Fenner School of Environment and Societ

[Rd] conditionally import a namespace?

2008-10-29 Thread Felix Andrews
*could* rewrite all the code to use explicit functions, I think, the resulting code would be much less clear. Essentially what I want to do is conditionally import the RGtk2 namespace. Any suggestions? Thanks Felix -- Felix Andrews / 安福立 http://www.neurofractal.org/felix/ 3358 543D AAC6 22C2 D

Re: [Rd] conditionally import a namespace?

2008-10-31 Thread Felix Andrews
2008/10/31 Duncan Murdoch <[EMAIL PROTECTED]>: > On 10/30/2008 10:44 AM, Duncan Murdoch wrote: >> >> On 10/30/2008 10:15 AM, Martin Maechler wrote: >>>>>>>> >>>>>>>> "FA" == Felix Andrews <[EMAIL PROTECTED]&g

[Rd] grid error: protection stack overflow

2008-11-13 Thread Felix Andrews
base other attached packages: [1] lattice_0.17-15 -- Felix Andrews / 安福立 http://www.neurofractal.org/felix/ 3358 543D AAC6 22C2 D336 80D9 360B 72DD 3E4C F5D8 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] grid error: protection stack overflow

2008-11-14 Thread Felix Andrews
For the record, a much better alternative to try(downViewport()) is curVps <- grid.ls(grobs = FALSE, viewports = TRUE, print = FALSE)$name if ("fooVp" %in% curVps) ... 2008/11/14 Felix Andrews <[EMAIL PROTECTED]>: > I have isolated an error that can be reproduced by the

Re: [Rd] Buggy trellis.focus() with xyplot ?

2008-11-19 Thread Felix Andrews
>>clickYScaled <- (as.numeric(clickLoc$y) - botPad + Danielconstant2) >> / (1 - botPad - topPad + Danielconstant3) >> This is of course a useless fix, since you want the fix to work for any plot >> with any window size, but I might be valuable information

Re: [Rd] Buggy trellis.focus() with xyplot ?

2008-11-19 Thread Felix Andrews
tion of large multidimensional data sets using lattice > and geared towards non programmers. > > I don't really know what I am getting into, so any advice would be welcomed. Sounds similar to some of the functionality of the 'playwith' and/or 'latticist' packages.

[Rd] bug involving quote(); ghost in the machine

2009-01-05 Thread Felix Andrews
R version 2.9.0 Under development (unstable) (2009-01-04 r47462) i386-pc-mingw32 locale: LC_COLLATE=English_Australia.1252;LC_CTYPE=English_Australia.1252;LC_MONETARY=English_Australia.1252;LC_NUMERIC=C;LC_TIME=English_Australia.1252 attached base packages: [1] stats graphics grDevices utils

[Rd] interrupting R from a GUI

2009-01-15 Thread Felix Andrews
help would be appreciated. -Felix -- Felix Andrews / 安福立 http://www.neurofractal.org/felix/ 3358 543D AAC6 22C2 D336 80D9 360B 72DD 3E4C F5D8 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] interrupting R from a GUI

2009-01-16 Thread Felix Andrews
2009/1/16 Prof Brian Ripley : > On Fri, 16 Jan 2009, Felix Andrews wrote: > >> list(...), >> >> I am looking for a way to interrupt R from a callback: specifically, >> to interrupt plotting (typically on a cairoDevice, but would be good >> if it worked with ot