Re: [R] dgamma in jags within r

2011-09-10 Thread Martin Maechler
Marc Girondot marc.giron...@u-psud.fr on Sat, 10 Sep 2011 11:43:20 +0200 writes: Marc Girondot marc.giron...@u-psud.fr on Sat, 10 Sep 2011 11:43:20 +0200 writes: I define priors in jags within r using a gamma distribution. I would like to control the shape but I have

Re: [R] Very slow using S4 classes

2011-09-10 Thread Martin Maechler
Martin Morgan mtmor...@fhcrc.org on Sat, 10 Sep 2011 10:18:11 -0700 writes: On 09/10/2011 08:08 AM, André Rossi wrote: Hi everybody! I'm creating an object of a S4 class that has two slots: ListExamples, which is a list, and idx, which is an integer (as the code

Re: [R] The elegant way to test if a number is a whole number

2011-09-09 Thread Martin Maechler
, 2011, at 3:35 PM, Alexander Engelhardt wrote: Am 08.09.2011 20:48, schrieb Marc Schwartz: There was a post from Martin Maechler some years ago and I had to search a bit to find it. For these sorts of issues, I typically trust his judgement. thank you, Marc! :-) The post is here

Re: [R] question on silhouette colours

2011-08-29 Thread Martin Maechler
simple. Thanks for your help in understanding this behaviour. As a matter of fact, I'm pretty sure you found a bug. Note that it would be better in such cases (a function in an R package) to first contact the package maintainer, in this case maintainer(cluster) [1] Martin Maechler maechler@stat

Re: [R] round() a data frame containing 'character' variables?

2011-08-11 Thread Martin Maechler
Liviu Andronic landronim...@gmail.com on Wed, 10 Aug 2011 11:46:55 +0200 writes: Hello On Wed, Aug 10, 2011 at 11:41 AM, Dimitris Rizopoulos d.rizopou...@erasmusmc.nl wrote: One approach is the following: numVars - sapply(iris, is.numeric) iris[numVars] -

[R] [R-pkgs] New Matrix and lme4: Must reinstall lme4 if got new Matrix

2011-08-10 Thread Martin Maechler
a shiny sparkling Matrix_1.0-0 in time. Thank you in advance for such a contribution to the Free Software universe. Martin Maechler and Doug Bates (and Ben Bolker for lme4). -- -- -- - Why must lme4 be re-installed as well ? [Technical !] This is because lme4 has a 'LinkingTo: Matrix' in its

Re: [R] Can glmnet handle models with numeric and categorical data?

2011-08-05 Thread Martin Maechler
of such matrices. There's also a very small extension package 'MatrixModels' which goes one step further, with its function model.Matrix(. sparse = TRUE/FALSE) but you would not need that for using the sparseMatrix in 'glmnet'. -- Martin Maechler, ETH Zurich

Re: [R] 3D Bar Graphs in ggplot2?

2011-08-04 Thread Martin Maechler
. See attached excel file for an example. Before anyone asks I know that 3D looking bars don't add anything except prettiness. If you want graphs like that, you should be using Excel, not R. Yes!! 10th commandment of R: You shall not misuse R! Martin Maechler Duncan

Re: [R] Possible bug of QR decomposition in package Matrix

2011-08-04 Thread Martin Maechler
C6H5NO2 c6h5...@gmail.com on Thu, 4 Aug 2011 16:03:54 +0800 writes: Thank you very much, Josh! As you suggested, I will contact the developers of Matrix. PS, C6 are just initial characters of my email account :-) Best wishes, C6 well, as the posting guide

Re: [R] bug in dev.copy2pdf output?

2011-07-29 Thread Martin Maechler
do they then google around instead of just once carefully read the help pages that we have been writing with much diligence, and have constantly been keeping current ... aarrgghh {mentally tearing at my few remaining hairs ..} Martin Maechler __ R

Re: [R] ?plot: Add an example on how to plot functions to the help of `plot`.

2011-07-28 Thread Martin Maechler
not the only one to read, if the paragraph above had come earlier ? Martin Maechler, ETH Zurich (and R Core Team). __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] Tricky (?) conversion from data.frame to matrix where not all pairs exist

2011-06-22 Thread Martin Maechler
Marius Hofert m_hof...@web.de on Wed, 22 Jun 2011 01:00:21 +0200 writes: Thanks a lot! Works like charm :-))) Cheers, well, I'd still *strongly* vote for Bill Dunlap's version. Martin Marius On 2011-06-22, at 24:51 , Dennis Murphy wrote: Ahhh...you want a matrix.

Re: [R] working with sparse matrix

2011-06-22 Thread Martin Maechler
to Columbia and Ecuador!}, I'll gladly help package authors (eg of sna) to change their code such that it should work with sparse matrices. With regards, Martin Maechler, ETH Zurich -- David. -- Patrick Breheny Assistant Professor Department of Biostatistics

Re: [R] computer name

2011-06-14 Thread Martin Maechler
the slight variation Sys.info()[['nodename']] which is what you typically really want (and which will be very very slightly more efficient in typical use cases). Martin Maechler, ETH Zurich On 6/13/2011 7:38 AM, David Scott wrote: On 13/06/11 15:19, pdb wrote: Is there an r

Re: [R] NaN, Inf to NA

2011-05-27 Thread Martin Maechler
Duncan Murdoch murdoch.dun...@gmail.com on Fri, 27 May 2011 08:23:14 -0400 writes: On 11-05-27 4:27 AM, Albert-Jan Roskam wrote: Aha! Thank you very much for that clarification! It would be much more user friendly if R generated a NotImplementedError or something

Re: [R] *not* using attach() *but* in one case ....

2011-05-19 Thread Martin Maechler
use of R for simulations, or Sweaving, etc} where load() is good enough, and the extras of using attach() are not worth it. But the unconditional do not use attach() is not quite ok, at least not when you talk to non-beginners. Martin Maechler, ETH Zurich

Re: [R] R Style Guide -- Was Post-hoc tests in MASS using glm.nb

2011-05-19 Thread Martin Maechler
) is considered a creative activity to quite some extent, and creativity can be crushed by too rigid rules. I'd state that cultural history shows that human culture implicitly follows many rules, but it is (almost) only interesting because the are enough exceptions to those rules. Martin Maechler @ ETH

Re: [R] [R-pkgs] Boost library in R package.

2011-04-23 Thread Martin Maechler
Wrong mailing list!! This got posted accidentally to R-packages -- which is exclusively for (semi-)important announcements by package *authors*. Please do only reply to R-help --- and do use R-help for *ALL* questions about R packages (unless you ask the package maintainer directly ..). Martin

Re: [R] RmetricsTools.R

2011-04-04 Thread Martin Maechler
., by svn export svn://svn.r-forge.r-project.org/svnroot/rmetrics/pkg/RmetricsTools.R -- Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Persistent storage between package invocations

2011-03-18 Thread Martin Maechler
It would be nice to have a standard directory where R can write things this way. A semi-standard directory is given by Sys.getenv(R_LIBS_USER), which defaults to ~/R/.../. Maybe ~/R/ could serve as that convention? That way we (various developers etc) would also not

Re: [R] Teaching R: To quote, or not to quote?

2011-03-10 Thread Martin Maechler
} maintainer(fortunes) [1] Achim Zeileis and BTW, Please send only *once* to R-help, and that nowadays prefers the @r-project.org address. Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Getting the source file's name where the custom function is written

2011-03-10 Thread Martin Maechler
users, where my Bayesian a priori estimate of that proportion would be ' 0.'. Martin Maechler Duncan Murdoch Here is the original answer: http://finzi.psych.upenn.edu/Rhelp10/2010-February/227805.html HTH, Ivan Le 3/9/2011 10:19, raymondowf a écrit

Re: [R] lty=NULL crashing R for x11(type=cairo)

2011-03-05 Thread Martin Maechler
IZ == Ista Zahn iz...@psych.rochester.edu on Sat, 5 Mar 2011 14:07:04 + writes: IZ I confirm this bug exists and is 100% replicable on R IZ version 2.12.2 (2011-02-25) Platform: i686-pc-linux-gnu IZ (32-bit) WHoa... debugging === it *is* a bug in R after all :

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
CB == Claudia Beleites cbelei...@units.it on Thu, 24 Feb 2011 12:31:55 +0100 writes: CB On 02/24/2011 11:20 AM, Prof Brian Ripley wrote: On Thu, 24 Feb 2011, Tal Galili wrote: Thank you all for the answers. So if I may extend on the question - When is it

Re: [R] extract printed value from a function

2011-02-24 Thread Martin Maechler
PE == Peter Ehlers ehl...@ucalgary.ca on Thu, 24 Feb 2011 07:07:29 -0800 writes: PE On 2011-02-24 06:32, David Winsemius wrote: On Feb 24, 2011, at 7:22 AM, Peter Ehlers wrote: On 2011-02-24 03:26, Duarte Viana wrote: Hello all, This shouldn't be

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
HW == Hadley Wickham had...@rice.edu on Thu, 24 Feb 2011 10:14:35 -0600 writes: Note however that I've never seen evidence for a *practical* difference in simple cases, and also of such cases as part of a larger computation. But I'm happy to see one if anyone has an

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
MM == Martin Maechler maech...@stat.math.ethz.ch on Thu, 24 Feb 2011 18:34:36 +0100 writes: HW == Hadley Wickham had...@rice.edu on Thu, 24 Feb 2011 10:14:35 -0600 writes: Note however that I've never seen evidence for a *practical* difference in simple cases, and also

Re: [R] Removing elements ..., NO bug in which() function

2011-02-23 Thread Martin Maechler
RK == Rumen Kostadinov rkost...@gmail.com on Sun, 13 Feb 2011 12:46:52 -0500 writes: RK Thanks Sarah, RK Yes, the function behaves Exactly as documented: RK check this out: a = c(1,2,3,4,5) a[which(a!=6)] RK [1] 1 2 3 4 5 a[!which(a==6)] RK numeric(0)

Re: [R] Console output

2011-02-21 Thread Martin Maechler
Ted Harding ted.hard...@wlandres.net on Mon, 21 Feb 2011 11:08:19 - (GMT) writes: That doesn't produce quite what Antje asked for (since each line gets number [1]). The following does work: print(cbind(NULL,(1:10))) [,1] [1,]1 [2,]2 [3,]3

Re: [R] Revolution Analytics reading SAS datasets

2011-02-11 Thread Martin Maechler
R, and R-help has been about R as a Free (Libre) Software, for all its many years and hundreds of thousands of messages. Revolutions's product may be fine for some, in some situations, but supporting non-Free parts of it, really does not belong to R and R-help in my view. Martin Maechler, R Core

Re: [R] hubers function in R MASS library : problem and solution

2011-02-04 Thread Martin Maechler
ensures that in this limiting case, indeed all other observations are outliers. This last point is a somewhat interesting topic for robustniks, and hence I'm CC'ing the dedicated R + Robustness mailing list, R-SIG-robust. Martin Maechler, ETH Zurich With this change, the result is more

Re: [R] Preparing dataset for glmnet: factors to dummies

2011-02-01 Thread Martin Maechler
experimental -- functionality for fitting GLMs with sparse model matrices. We'd be glad to get feedback on your uses and observations with these sparse model matrices. Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] better way to iterate matrix multiplication?

2011-02-01 Thread Martin Maechler
powers than n=10'000 the cpu time needed is more comparable. Martin Maechler, ETH Zurich EV Am 01.02.2011 17:16, schrieb Ben Bolker: Eik Vettorazzi E.Vettorazzi at uke.uni-hamburg.de writes: if you have a homogeneous mc (= a constant transition matrix), your state

Re: [R] Positive Definite Matrix

2011-01-31 Thread Martin Maechler
I think the bottom line can be summarized as follows: 1. Give up on Cholesky factors unless you have a matrix you know must be symmetric and strictly positive definite. (I seem to recall having had problems with chol even with matrices that were

Re: [R] Meaning of pterms in survreg object?

2011-01-31 Thread Martin Maechler
or not are the mailing list archives proper, https://stat.ethz.ch/pipermail/r-help/ , and they are available directly from the https://stat.ethz.ch/mailman/listinfo/r-help url at the bottom of every posting ... Martin Maechler, ETH Zurich (= R-help list provider) JH Don't know what happened to the reply locally

Re: [R] Positive Definite Matrix

2011-01-29 Thread Martin Maechler
Prof Brian Ripley rip...@stats.ox.ac.uk on Sat, 29 Jan 2011 21:00:19 + (GMT) writes: On Sat, 29 Jan 2011, David Winsemius wrote: On Jan 29, 2011, at 12:17 PM, Prof Brian Ripley wrote: On Sat, 29 Jan 2011, David Winsemius wrote: On Jan 29,

Re: [R] Sparse matrix multiplication

2011-01-29 Thread Martin Maechler
on the context you may revert to traditional unclassed matrices ## via c2 - as(cc, matrix) Thanks in advance! you are welcome. Martin Maechler, ETH Zurich Feng -- Feng Li Department of Statistics Stockholm University 106 91 Stockholm, Sweden http://feng.li

Re: [R] agnes clustering and NAs

2011-01-28 Thread Martin Maechler
something else. Martin Maechler, ETH Zurich GS HTH GS G The part of the agnes documentation I was referring to is : In case of a matrix or data frame, each row corresponds to an observation, and each column corresponds to a variable. All variables must be numeric. Missing

Re: [R] cannot allocate vector of size ... in RHLE5 PAE kernel

2011-01-17 Thread Martin Maechler
MZ == Mauricio Zambrano hzambran.newsgro...@gmail.com on Mon, 17 Jan 2011 11:46:44 +0100 writes: MZ Dear R community, MZ I'm running R 32 bits in a 64-bits machine (with 16Gb of Ram) using a MZ PAE kernel, as you can see here: MZ $ uname -a MZ Linux mymachine

Re: [R] Problem with timeSequence {timeDate} - wrong end date

2011-01-07 Thread Martin Maechler
) } and res is the object returned in both cases (I believe). Thank you, Joshua. Note that R 2.12.1 patched and R 2.13.0 unstable have this fixed (since yesterday) and hence will no longer overshoot. Also, the next release of the timeDate package will have it fixed. Martin Maechler, ETH Zurich

Re: [R] defining a formula method for a weighted lm()

2011-01-06 Thread Martin Maechler
Regards, Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible

Re: [R] Any functions to manipulate (merge, cut, remove) hclust objects? (maybe through phylo?)

2010-12-29 Thread Martin Maechler
object. Why should you turn it back ? What do you want to use them for The intent of the dendrogram has been that it is more flexible (and more general) than hclust and can be printed, plotted, manipulated, ... better than hclust ones. Regards, Martin Maechler, ETH Zurich TG Are there any

Re: [R] R-code to generate random rotation matrix for rotation testing

2010-12-29 Thread Martin Maechler
vector mY must either be a matrix with constant columns or the result of as.vector()ing such a matrix. Regards, Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Any functions to manipulate (merge, cut, remove) hclust objects? (maybe through phylo?)

2010-12-29 Thread Martin Maechler
Tal Galili tal.gal...@gmail.com on Wed, 29 Dec 2010 13:32:26 +0200 writes: Hello Martin, Thank you for replying. I have two needs: 1) To merge two dendrograms into one. 2) To then run cutree on it (which works on hclust, but not on dendrogram). Well, but

Re: [R] Any functions to manipulate (merge, cut, remove) hclust objects? (maybe through phylo?)

2010-12-29 Thread Martin Maechler
in vacation at the moment, I may have some fun helping with these... Martin On Wed, Dec 29, 2010 at 1:49 PM, Martin Maechler maech...@stat.math.ethz.ch wrote: Tal Galili tal.gal...@gmail.com on Wed, 29 Dec 2010 13:32:26 +0200 writes: Hello Martin

Re: [R] Removing rows with earlier dates

2010-12-29 Thread Martin Maechler
Temp Month Day 31 37 279 7.4 76 5 31 61 NA 138 8.0 83 6 30 92 59 254 9.2 81 7 31 12385 188 6.3 94 8 31 15320 223 11.5 68 9 30 Regards, Martin Maechler, ETH Zurich I do suspect it requires

Re: [R] package survey

2010-12-20 Thread Martin Maechler
the original source ... which for good R programmers is typically better / easier to read and understand than the parsed+deparsed version. Martin Maechler, ETH Zurich (and R Core Team) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] sum with times

2010-12-20 Thread Martin Maechler
RRJ == Ronaldo Reis Junior chrys...@gmail.com on Sun, 19 Dec 2010 12:10:54 -0200 writes: RRJ Hi, Forget, the chron package work with this No, don't forget, rather solve the problem: Date / dateTime classes are native R entities; extension package 'chron' objects are not.

Re: [R] Numbers in a string

2010-12-17 Thread Martin Maechler
Petr Savicky savi...@cs.cas.cz on Wed, 15 Dec 2010 14:21:37 +0100 writes: On Wed, Dec 15, 2010 at 11:08:06AM -0200, Henrique Dallazuanna wrote: Try this: gsub([^0-9], , AB15E9SDF654VKBN?dvb.65) Consider also strsplit(AB15E9SDF654VKBN?dvb.65,

Re: [R] Perl cut equivalent in R

2010-12-10 Thread Martin Maechler
SL == Steve Lianoglou mailinglist.honey...@gmail.com on Mon, 6 Dec 2010 14:21:59 -0500 writes: if(FALSE) { stuff your don't want executed          } Switching a block of code off/on with editing a single character may be done using 0/1 instead of FALSE/TRUE. SL

Re: [R] How to catch both warnings and errors?

2010-12-09 Thread Martin Maechler
and errors ##' @param expr ##' @return a list with 'value' and 'warning', where ##' 'value' may be an error caught. ##' @author Martin Maechler tryCatch.W.E - function(expr) { W - NULL w.handler - function(w){ # warning handler W - w invokeRestart(muffleWarning) } list(value

Re: [R] robustbase problem [bug?] in adjbox function.

2010-12-08 Thread Martin Maechler
in the original codes and publications of the very first publications and papers. Thank you for your feedbacks! Martin Maechler, ETH Zurich (and maintainer of 'robustbase') __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Troubles using postscript(family = ComputerModern)

2010-12-01 Thread Martin Maechler
David Winsemius dwinsem...@comcast.net on Mon, 29 Nov 2010 09:46:08 -0500 writes: On Nov 29, 2010, at 9:00 AM, pilchat wrote: Hi guys, to make it easier, here is a simple case with the same issues. I use the short function below to make the attached PS file.

Re: [R] An empty grey diagram

2010-11-22 Thread Martin Maechler
, it springs into your eyes} how nicely the formula notation of graphics alings with the same in models. If the above two simple lines do not work correctly, then your R environment is broken in some way, and maybe first doing rm(list = ls()) may help. Martin Maechler, ETH Zurich and R Core

Re: [R] Rmpfr question

2010-10-16 Thread Martin Maechler
) (d - 173746*a + 94228*b - 78487*c) 1 'mpfr' number of precision 230 bits [1] -1.3418189578296195497042786842309588809452366232139762407816198747581278e-12 Best regards, Martin Maechler, ETH Zurich (Yes, I have reproduce the 'd' value from Ghazi et al. using 'gcc -lmpfr -lgmp

Re: [R] name ONLY one column // empty.dimnames() in 'sfsmisc'

2010-09-29 Thread Martin Maechler
by empty character strings. Author(s): Bill Venables / Martin Maechler, Sept 1993. and here the examples we provide: example(empty.dimnames) empty. empty.dimnames(diag(5)) # looks much nicer 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 empty. (a - matrix(-9:10, 4,5

Re: [R] Problem with cat() == A related question

2010-09-15 Thread Martin Maechler
(1:40, 5,8) ) 1 6 11 16 21 26 31 36 2 7 12 17 22 27 32 37 3 8 13 18 23 28 33 38 4 9 14 19 24 29 34 39 5 10 15 20 25 30 35 40 --- where the empty.dimnames() function is just one small reason to get the sfsmisc package ;-) Martin Maechler, ETH Zurich

Re: [R] approxfun-problems (yleft and yright ignored)

2010-09-11 Thread Martin Maechler
for the same data... what are the circumstances? Regards, Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] approxfun-problems (yleft and yright ignored)

2010-09-11 Thread Martin Maechler
MM == Martin Maechler maech...@stat.math.ethz.ch on Sat, 11 Sep 2010 16:04:37 +0200 writes: SW == Samuel Wuest wue...@tcd.ie on Thu, 26 Aug 2010 14:34:26 +0100 writes: SW Hi Greg, SW thanks for the suggestion: SW I have attached some small dataset that can be used

Re: [R] approxfun-problems (yleft and yright ignored)

2010-09-11 Thread Martin Maechler
Duncan Murdoch murdoch.dun...@gmail.com on Sat, 11 Sep 2010 10:32:38 -0400 writes: On 11/09/2010 10:04 AM, Martin Maechler wrote: SW == Samuel Wuest wue...@tcd.ie on Thu, 26 Aug 2010 14:34:26 +0100 writes: SW Hi Greg, SW thanks for the suggestion: SW I

Re: [R] approxfun-problems (yleft and yright ignored)

2010-09-11 Thread Martin Maechler
Duncan Murdoch murdoch.dun...@gmail.com on Sat, 11 Sep 2010 11:23:02 -0400 writes: On 11/09/2010 11:13 AM, Martin Maechler wrote: Duncan Murdoch murdoch.dun...@gmail.com on Sat, 11 Sep 2010 10:32:38 -0400 writes: On 11/09/2010 10:04 AM, Martin Maechler wrote

Re: [R] Why is vector assignment in R recreates the entire vector ?

2010-09-03 Thread Martin Maechler
in r-devel a few months ago. yes, thank you Norm, for the pointer. Indeed this whole topic really belongs to R-devel not R-help. Martin Maechler NM You can read my posting, NM and the various replies, at NM http://www.mail-archive.com/r-de...@r-project.org/msg20089.html NM Some

Re: [R] Using library and lib.loc

2010-09-03 Thread Martin Maechler
Rprofile and Renviron settings. Martin Maechler, ETH Zurich o Thanks, o Olivier __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Documenting S4 Methods

2010-08-25 Thread Martin Maechler
Dario Strbenac d.strbe...@garvan.org.au on Wed, 25 Aug 2010 13:00:03 +1000 (EST) writes: I'm in the process of converting some S3 methods to S4 methods. I have this function : setGeneric(enrichmentCalc, function(rs, organism, seqLen, ...){standardGeneric(enrichmentCalc)})

Re: [R] How to make 'step' faster?

2010-08-20 Thread Martin Maechler
this is possible at the moment in R, but several people, GS including Doug Bates and Martin Maechler, are working on bringing sparse GS model matrices and fitting code into R. Doug and Martin's efforts are in GS the unreleased MatrixModels package Thank you, Gavin, but note

Re: [R] Learning ANOVA

2010-08-17 Thread Martin Maechler
Liaw, Andy andy_l...@merck.com on Mon, 16 Aug 2010 08:22:33 -0400 writes: From: Stephen Liu Hi JesperHybel, Thanks for your advice. If you're trying to follow the youtube video you have a typing mistake here: InsectSprays.aov

Re: [R] Function to Define a Function

2010-08-10 Thread Martin Maechler
(and here you could even drop the last { .. } pair). Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] Confidence Intervals for logistic regression

2010-08-07 Thread Martin Maechler
-Donner phenomenon, which has been mentioned many times here, and notably in MASS (the book!), I think even in its first edition. Even more reliable (probably) would be to use the (recommended) 'boot' package and use bootstrap confidence intervals, i.e., boot.ci() there. Martin Maechler, ETH Zurich

Re: [R] Installing the Zoo *package*

2010-07-28 Thread Martin Maechler
in Windows) which in R is loaded by dyn.load() or library.dynam() -- typically implicitly when a package is loaded containing compiled code. As you declare yourself an R newbie, one of the early steps will be to use precise language. Hence, do watch your language :-) Martin Maechler, ETH Zurich

Re: [R] easy debugging

2010-07-28 Thread Martin Maechler
Note that for the particular question, pmin(120, equated) is more efficient than any of the other versions you've mentioned. Martin Maechler, ETH Zurich You should read up on 'indexing' in the R Intro paper. On Mon, Jul 26, 2010 at 1:26 PM, ying_chen wang

Re: [R] Documenting different OO-aproaches in R as a package?

2010-07-28 Thread Martin Maechler
alternatives. Everything else has been by contributed by R users who were not happy with S4 ... at the time at least ... Note that in the last several R releases, S3 - S4 interoparability has been greatly improved. Martin Maechler, ETH Zurich s Friedrich Schuster Dompfaffenweg 6 69123

Re: [R] [R-pkgs] New package list for analyzing list surveyexperiments

2010-07-14 Thread Martin Maechler
to propose and discuss changes to R. Martin Maechler, ETH Zurich RR R.Raubertas -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jeffrey J. Hallman Sent: Monday, July 12, 2010 10:09 AM To: r-h

Re: [R] A problem about the package lme4 in R-2.11.1

2010-07-14 Thread Martin Maechler
package, probably). Martin Maechler, ETH Zurich NC Sincerely, NC Joe __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] Matrix Column Names

2010-07-13 Thread Martin Maechler
, method=both.sides) or also vnames - abbreviate(vnames, 8, strict=FALSE) DN Many thanks! you're welcome! Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Fast String operations in R ? Cost of String operations

2010-07-06 Thread Martin Maechler
to the posting guide, see the footer of *every* R-help message, cited below... ((and then work, and may be then ask a more specific question)) Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] question concerning VGAM

2010-07-05 Thread Martin Maechler
-guide.html --- and provide commented, minimal, self-contained, reproducible code. Hmm, and which part of the two lines above did you not understand? example(vglm) already contains uses of coef() which do work fine; so it must be you, or your setup which breaks things. Martin Maechler, ETH

Re: [R] S4 classes and debugging - Is there a summary?

2010-07-02 Thread Martin Maechler
. Martin Maechler, ETH Zurich Is there an overview that actually explains how you get the information you're looking for without strolling through the complete source? Sorry if I sound frustrated, but this is costing me huge amounts of time, to that extent that I rather write

Re: [R] vlmc - In vlmc(traffic.clusters.stationary, cutoff = i) : alphabet with 1-letter strings; trying to abbreviate

2010-06-30 Thread Martin Maechler
. Computational and Graphical Statistics_ *2*, 435-455. That's good. The examples there all have a character vector (of strings with 1 letter/character) as input. Thanks for any feedback, You're welcome! Martin Maechler, ETH Zurich -- Constantinos Antoniou, Ph.D

Re: [R] R and LINGO?

2010-06-17 Thread Martin Maechler
would be appreciated. You are welcome! Martin Maechler, ETH Zurich b Brwin338 b [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Lattice: How to color the data points in splom() according to the panel they are plotted?

2010-06-14 Thread Martin Maechler
-enhancing lattice). Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

[R] R-help spam detection; please help the moderators

2010-06-01 Thread Martin Maechler
use a freemail account to please no longer post via nabble. Thank you for your support of R-help, *the* community mailing list of the R project since even before that project existed formally, namely since 1997-04-01, today 13 years and two months. Martin Maechler, ETH Zurich (and R-help creator

Re: [R] lme4 + R 2.11.0 + mac unavailable

2010-05-19 Thread Martin Maechler
Just a small correction to what I've said ... see below MM == Martin Maechler maech...@stat.math.ethz.ch on Tue, 18 May 2010 10:00:20 +0200 writes: David Winsemius dwinsem...@comcast.net on Mon, 17 May 2010 17:44:00 -0400 writes: On May 17, 2010, at 5:01 PM, Adam November wrote

[R] Accidental misuse of 'R-packages' list

2010-05-18 Thread Martin Maechler
rule is to not mention a pacakge more than once a year, and much less than that for all packages with only minor changes. Martin Maechler, ETH Zurich MY == Matt Young youngsan...@gmail.com on Wed, 12 May 2010 08:23:24 -0700 writes: MY Lot of examples for one way pipes, but I need

Re: [R] lme4 + R 2.11.0 + mac unavailable

2010-05-18 Thread Martin Maechler
of Unix and you can simply symlink Matrix (from the R standard library) into the library into which you want to install lme4 { cd mylibrary ln -s `R RHOME`/library/Matrix . } Martin Maechler, ETH Zurich Thanks, -Adam On Mon, May 17, 2010 at 1:51 PM, David Winsemius dwinsem

Re: [R] avoiding reinstall already installed *package*

2010-05-18 Thread Martin Maechler
install.packages() --- To answer the question you did want to ask: Do not be afraid: Depedencies are only installed when needed, i.e., no package will be downloaded and installed if it already is there. Martin Maechler, ETH Zurich mr cheers mr milton mr

Re: [R] avoiding reinstall already installed *package*

2010-05-18 Thread Martin Maechler
On Tue, May 18, 2010 at 12:49 PM, Martin Maechler maech...@stat.math.ethz.ch wrote: { I've modified the subject; I can't stand it hitting square into my face ... } mr == milton ruser milton.ru...@gmail.com on Tue, 18 May 2010 12:36:23 -0300 writes: mr Dear R-experts, mr I am

Re: [R] Cluster procedure using geographical neighborhood

2010-05-07 Thread Martin Maechler
list, as I think you could get more advice from there. Martin Maechler, ETH Zurich DS However if I do that the procedure hclust () does not work anymore. DS Moreover, even if it would work, after the first agglomeration any DS further agglomeration should take into account only pairs

Re: [R] 'matplot' for matrix with NAs: broken lines

2010-05-06 Thread Martin Maechler
differently here... Martin Maechler TS From: ggrothendi...@gmail.com Date: Wed, 5 May 2010 15:45:44 -0400 Subject: Re: [R] 'matplot' for matrix with NAs: broken lines To: shi...@hotmail.com CC: r-help@r-project.org

Re: [R] ecdf

2010-04-21 Thread Martin Maechler
DW == David Winsemius dwinsem...@comcast.net on Mon, 19 Apr 2010 10:49:51 -0400 writes: DW The OP wrote me privately to say that the errant documantation was at: http://lib.stat.cmu.edu/S/Harrell/help/Hmisc/html/ecdf.html DW That is a rather old bit of information. It dates

[R] logit() etc {was Re: glmer with non integer weights}

2010-04-19 Thread Martin Maechler
EC == Emmanuel Charpentier charp...@bacbuc.dyndns.org on Sun, 18 Apr 2010 11:29:29 +0200 writes: EC Le vendredi 16 avril 2010 à 00:15 -0800, Kay Cichini a EC écrit : thanks thierry, i considered this transformations already, but variance is not stabilized and/or

Re: [R] where do I send typos?

2010-03-26 Thread Martin Maechler
be of more general R developer interest. Thanks in advance, for your reports. Martin Maechler, ETH Zurich (and R Core) IG --- On Fri, 26/3/10, Xu Wang xuwang...@gmail.com wrote: From: Xu Wang xuwang...@gmail.com Subject: [R] where do I send typos? To: r-help@r-project.org

Re: [R] nice log-log plots

2010-03-15 Thread Martin Maechler
) library(sfsmisc) example(eaxis) ## and then ?eaxis I think this is what you need (in a more flexible way than a plot.loglog function). Regards, Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] r code to generate interaction columns

2010-03-10 Thread Martin Maechler
has quite a host of examples where glmnet methods perform better than Randomforest.}} can make use of Matrix sparse matrices like that. ] Read help(model.matrix) and also look at the examples there which you can run in R by examples(model.matrix) Regards, Martin Maechler, ETH Zurich

Re: [R] fisher.test gives p1

2010-03-04 Thread Martin Maechler
, min(1, PVAL)) in the one place it seems sensible. Martin Maechler, ETH Zurich sessionInfo() R version 2.10.1 (2009-12-14) x86_64-apple-darwin9.8.0 locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils

Re: [R] biclust package

2010-02-26 Thread Martin Maechler
UweL == Uwe Ligges lig...@statistik.tu-dortmund.de on Fri, 26 Feb 2010 17:24:43 +0100 writes: UweL On 26.02.2010 17:04, linda garcia wrote: Dear all, I am using biclust package for biclustering. I wanted to know how can I extract my clusters from the object?

Re: [R] R wiki link ?

2010-02-11 Thread Martin Maechler
can find http://rwiki.sciviews.org that works. PhGr Yes, the problem is known. I have to fix it. and it has been fixed, late yesterday, thanks to Stefan Theussl's kind and swift cooperation. Martin Maechler, ETH Zurich PhGr Best, PhGr Philippe Grosjean

Re: [R] Symmetric Matrix classes

2010-01-19 Thread Martin Maechler
Scanning for 'Matrix' in old R-help e-mail, I found GA == Gad Abraham gabra...@csse.unimelb.edu.au on Fri, 27 Nov 2009 13:45:00 +1100 writes: GA Hi, GA I'd like to store large covariance matrices using Matrix classes. GA dsyMatrix seems like the right one, but I want to

Re: [R] sparseM and kronecker product_R latest version

2010-01-12 Thread Martin Maechler
] 113289 36698 dim(Dk) [1] 453156 146792 Regards, Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] sparseM and kronecker product_R latest version

2010-01-11 Thread Martin Maechler
package (i.e., also part of every R distribution), I do wonder why you don't use 'Matrix' for sparse matrix computing in R. Best regards, Martin Maechler, ETH Zurich am 2010/1/11 David Winsemius dwinsem...@comcast.net: On Jan 11, 2010, at 7:55 AM, Peter Ehlers wrote: Do you

Re: [R] Strange behaviour of as.integer()

2010-01-11 Thread Martin Maechler
install.packages(Rmpfr, repos=http://R-Forge.R-project.org;) which -- thanks to Stefan Theussl as R-forge maintainer -- may even on Windows give a working version of Rmpfr. Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https

<    1   2   3   4   5   6   7   8   9   >