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] 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] 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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] else if statement error

2009-10-05 Thread Martin Maechler
}. Martin Maechler, ETH Zurich (*) almost if (ini==1) { a=3 } else if (ini1 and b2 ) { DW The error is probably being thrown because and is not a valid DW conjunction operator in R. 1 and 1 DW Error: syntax error 1 1 DW [1] TRUE a=5

Re: [R] Creating a sparse matrix from a file

2009-10-27 Thread Martin Maechler
PP Hi all, PP I used sparseM package for creating sparse Matrix and PP followed below commands. I'd strongly recommend to use package 'Matrix' which is part of every R distribution (since R 2.9.0). PP The sequence of commands are: ex - read.table('fileName',sep=',')

Re: [R] Creating a sparse matrix from a file

2009-10-27 Thread Martin Maechler
))) They were just for illustrative purposes, to show how and that you can work with the created sparse matrix 'M'. Regards, Martin Maechler, ETH Zurich PP Kindly let me know if I missed something. PP Thanks PP Pallavi PP On Tue, Oct 27, 2009 at 4:12 PM, Martin Maechler maech

Re: [R] operations on sparse matrices, and dense intermediary steps

2009-10-27 Thread Martin Maechler
;-) {{ A less nice alternative to moving it to C, might be to special case M[i,] , M[i,j] etc for the special case where i (and j) is just of length 1. }} Thank you for the reproducible code, and thanks in advance for your improvement patches or other propositions... Best regards, Martin

Re: [R] User input when running R code in batch mode

2009-10-27 Thread Martin Maechler
--vanilla -e 'cat(a string please: ); a - readLines(stdin,n=1); str(a)' input a string please: Foobar chr Foobar (Note that here I use -e 'expression' instead of an R script file which of course is possible too). Martin Maechler, ETH Zurich Is there any way to make R stop for the user

Re: [R] Creating a sparse matrix from a file

2009-10-28 Thread Martin Maechler
the result of sessionInfo() ! Martin Maechler, PP Thanks PP Pallavi PP On Tue, Oct 27, 2009 at 8:34 PM, Martin Maechler maech...@stat.math.ethz.ch wrote: PP == Pallavi P pallavip...@gmail.com on Tue, 27 Oct 2009 18:13:22 +0530 writes: PP Hi Martin

Re: [R] Problem building R 2.10.0 - Matrix package

2009-11-12 Thread Martin Maechler
TA == Thomas Adams thomas.ad...@noaa.gov on Mon, 02 Nov 2009 11:04:30 -0500 writes: TA All: TA Attached is the output file from building R 2.10.0 on RedHat Linux. I TA have never previously experienced any problems when building R from TA source with new releases. But, now

Re: [R] Problem building R 2.10.0 - Matrix package

2009-11-13 Thread Martin Maechler
Thank you, Russ, but ... RPH == R P Herrold herr...@owlriver.com on Thu, 12 Nov 2009 14:13:26 -0500 (EST) writes: TA == Thomas Adams thomas.ad...@noaa.gov TA Attached is the output file from building R 2.10.0 on RedHat Linux. I TA have never previously experienced any

Re: [R] Relase positive with log and zero of negative with 0

2009-11-18 Thread Martin Maechler
) curve(u.log(x, c=0.5), add=TRUE, col=3) ?u.log 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

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

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] 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

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

Re: [R] Bessel function with large index value

2009-11-20 Thread Martin Maechler
DS == David Scott d.sc...@auckland.ac.nz on Sat, 21 Nov 2009 02:29:38 +1300 writes: DS This is a reply to my own question. I thought I had found an answer but DS it seems not so (some analysis follows below). Maybe Martin Maechler or DS Robin Hankin or Duncan Murdoch may have

Re: [R] How to display an image on RGL plot?

2009-11-26 Thread Martin Maechler
use regular subscriptions and regular e-mail for posting to the R mailing lists. Martin Maechler, ETH Zurich, provider of the major R mailing lists Barry __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] shorten str() output for long list

2009-12-04 Thread Martin Maechler
://svn.r-project.org/R/trunk/src/library/utils/R/str.R *and* the help file man/str.Rd I'll incorporate these into str() , not anymore for R 2.10.1 though. With regards, Martin Maechler, ETH Zurich x=split(1:10,1:10) str(x) DW List of 10 DW $ 1 : int 1

Re: [R] Regularized gamma function/ incomplete gamma function

2009-12-12 Thread Martin Maechler
+ c(-e,e), sh = 1.25))/(2*e)) [1] 1.675105 1.675103 1.675103 1.675103 1.675103 1.675103 1.675103 1/dgamma(qgamma(0.2, sh = 1.25), sh = 1.25) [1] 1.675103 Martin Maechler, ETH Zurich RV Alternatively, a good numerical integration package/ or RV simply a function that could

Re: [R] fast matrix-vector multiplication

2009-12-14 Thread Martin Maechler
) you get a few (small sample) examples. Martin Maechler, ETH Zurich GC -Gray GC On Monday, December 14, 2009, parkbomee bbom...@hotmail.com wrote: Hi all, Is there a way to do a matrix multiplication in a faster way? I am making a product of a matrix

Re: [R] Odp: Loop counter used in variable

2009-12-15 Thread Martin Maechler
PP == Petr PIKAL petr.pi...@precheza.cz on Tue, 15 Dec 2009 09:03:11 +0100 writes: PP Hi PP r-help-boun...@r-project.org napsal dne 15.12.2009 00:25:10: Hi All, I need to run muliple lm functions. My independent variables are called dataset$x1, x2, x3,

Re: [R] Problem with expand.grid

2009-12-23 Thread Martin Maechler
=4.75587 y=4.84510 y=5.04139 y=4.85733 ... .. ..$ t: chr t= 0 t= 48 t=144 t=192 ... .. ..$ Batch: chr Batch=1 .. ..$ T: chr T=2 .. ..$ pH : chr pH=4.6 .. ..$ S: chr S=0 .. ..$ N: chr N= 0 N=80 --- may be that helps? Regards, Martin Maechler, ETH Zurich

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

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

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

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] 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] 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] 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] 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] 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] 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] sprucing up the R homepage

2007-09-27 Thread Martin Maechler
a reproducible image there; we can live with using non-R code for post processing (did I correctly get that you used Imagemagick derived utilities).. Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Error loading DCluster

2007-10-03 Thread Martin Maechler
107 CH-8008 Z�rich Switzerland Ph: BL +41 (0)44 634 8351 [EMAIL PROTECTED] Best regards from about 2km's away. Martin Maechler, ETH Zurich (close to main building). BL [[alternative HTML version deleted]] Birgit, can you please read the posting guide and consequently make sure

Re: [R] Matrix package installation problem

2007-10-05 Thread Martin Maechler
JMB == Jean Marie Beduin [EMAIL PROTECTED] on Fri, 05 Oct 2007 09:10:11 +0200 writes: JMB I need some help yes JMB I try to install the following package: Matrix_0.999375-2.tar.gz JMB I have the needed package and R version. JMB My operating sytem is linux suse 10.1.

Re: [R] Is it possible to modify the position of the graphic window ?

2007-11-07 Thread Martin Maechler
RT == Rolf Turner [EMAIL PROTECTED] on Wed, 7 Nov 2007 09:57:12 +1300 writes: RT On 7/11/2007, at 9:12 AM, Prof Brian Ripley wrote: 1) Did you merge the resources or restart X? You need to in order to get new resources to be recognized. xrdb -merge ~/.Xresources

Re: [R] strange `nls' behaviour

2007-11-12 Thread Martin Maechler
*some* feedback about my findings. It may well be that we find that nls() should give an (intelligible) error message in such eval() cases - rather than only in one case... Martin Maechler DM Duncan Murdoch DM so I try it here. sory for the lengthy explanation

Re: [R] R-help going to become subscriber-only

2008-01-31 Thread Martin Maechler
DM == Dieter Menne [EMAIL PROTECTED] on Thu, 31 Jan 2008 08:58:54 + (UTC) writes: DM Martin Maechler maechler at stat.math.ethz.ch writes: The consequence of this will be that .. before the weekend .. only __e-mail addresses__ subscribed to R-help will be allowed

Re: [R] R-help going to become subscriber-only

2008-01-31 Thread Martin Maechler
DM == Duncan Murdoch [EMAIL PROTECTED] on Thu, 31 Jan 2008 08:07:06 -0500 writes: DM On 1/31/2008 6:48 AM, Martin Maechler wrote: DM == Dieter Menne [EMAIL PROTECTED] on Thu, 31 Jan 2008 08:58:54 + (UTC) writes: DM Martin Maechler maechler at stat.math.ethz.ch

Re: [R] Bug with curve?

2008-02-01 Thread Martin Maechler
BB == Ben Bolker [EMAIL PROTECTED] on Fri, 1 Feb 2008 14:03:15 + (UTC) writes: BB Paul Smith phhs80 at gmail.com writes: Dear All, Take this code: f - function(x) exp(-x)*x-0.05 g - function(x) 0 curve(f,0,5) curve(g,add=T)

Re: [R] silhouette plot for kmeans result

2008-03-03 Thread Martin Maechler
is rather equivalent to work with {D_ij}^2, ## hence this better corresponds: dE2 - dissE^2 sk2 - silhouette(km$cl, dE2) plot(sk2) LS Many thanks! LS Linda you're welcome. Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-03-03 Thread Martin Maechler
inferior to R -- just talking about the graphics possibilties and the quality / thoughtfulness in the high-level plotting. If you have your data / objects / functions in R, I'm very strongly convinced that using GNUplot for plotting is ``the wrong'' approach by almost all definitions of wrong. Martin

Re: [R] Latex (computer modern) fonts, pdfcairo etc. {was ... GNUplot}

2008-03-03 Thread Martin Maechler
BDR == Prof Brian Ripley [EMAIL PROTECTED] on Mon, 3 Mar 2008 14:16:15 + (GMT) writes: [] BDR In a later message Louise mentioned the desire to use TeX fonts for BDR annotation, to match a LaTeX document. Paul Murrell has pointed out his BDR and my article

Re: [R] Overloading %*%

2008-03-17 Thread Martin Maechler
the S4 methods (possibly none). and so has a link to 'showMethods'. Since it seems that is overlooked, I'll add it to 'See also' as well. Adding an example to 'Examples' is a bit more awkward, since it needs to load the methods package; but I'll add a don't run example. Martin Maechler

Re: [R] setAs vs setIs

2008-03-17 Thread Martin Maechler
( ..., contains=), and many setAs(...). 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

Re: [R] ls() and classes

2008-03-19 Thread Martin Maechler
GaGr == Gabor Grothendieck [EMAIL PROTECTED] on Tue, 18 Mar 2008 23:50:28 -0400 writes: GaGr Try: GaGr eapply(.GlobalEnv, class) GaGr or perhaps GaGr unlist(eapply(.GlobalEnv, class)) GaGr or GaGr str(eapply(.GlobalEnv, class)) nice! {and we've also seen the

Re: [R] S4 : dumpMethod

2008-03-19 Thread Martin Maechler
with anything dumped... But of course, it's still a bug that dumpMethod() and dumpMethods() are currently not working at all. Do you want to submit a (legitimate (!)) bug report to R-bugs ? Thank you for your reproducible example and subsequent questions! Martin Maechler, ETH Zurich

Re: [R] Inverse t-distribution(TINV function in Excel)

2008-03-25 Thread Martin Maechler
FC == Felipe Carrillo [EMAIL PROTECTED] on Mon, 24 Mar 2008 18:42:36 -0700 (PDT) writes: FC Thanks everyone for your help the qt function worked FC like a dream. I ended up using it like this; T - FC qt((1-0.05/2),7) to estimate 95% intervals divided by FC 2. 7 would be the

[R] [R-pkgs] The Matrix is approaching version 1.0-0

2008-03-28 Thread Martin Maechler
to announce that release 1.0-0 is imminent. In the DESCRIPTION of the package we say -- Title: A Matrix package for R Author: Douglas Bates and Martin Maechler Maintainer: Doug and Martin [EMAIL PROTECTED] Description: Classes

Re: [R] S4 : the list of all the object

2008-03-31 Thread Martin Maechler
CG == Christophe Genolini [EMAIL PROTECTED] on Sat, 29 Mar 2008 16:20:41 +0100 writes: CG Hi the list, Is it possible to get the list of all the CG S4 user define classes? do you mean those in .GlobalEnv? If you have written a package using S4 classes, these are also user defined

Re: [R] hsv2rgb in R

2008-03-31 Thread Martin Maechler
DM == Dieter Menne [EMAIL PROTECTED] on Mon, 31 Mar 2008 08:06:39 + (UTC) writes: DM I noted that there is a hsv2rgb in the C-API, but no DM corresponding function in R, while rgb2hsv is available DM in R. DM Does the functionality of hsv2rgb hide under some other

Re: [R] Roxygen vs Sweave for S4 documentation

2009-06-22 Thread Martin Maechler
TobiasV == Tobias Verbeke tobias.verb...@openanalytics.be on Sun, 21 Jun 2009 08:25:07 +0200 writes: TobiasV Hi Ken, I have been using R for a while. Recently, I have begun converting my package into S4 classes. I was previously using Rdoc for documentation. Now, I am

Re: [R] Roxygen vs Sweave for S4 documentation

2009-06-22 Thread Martin Maechler
DM == Duncan Murdoch murd...@stats.uwo.ca on Mon, 22 Jun 2009 09:41:12 -0400 writes: DM On 6/22/2009 9:23 AM, Tobias Verbeke wrote: On Mon, Jun 22, 2009 at 2:18 PM, Douglas Batesba...@stat.wisc.edu wrote: On Mon, Jun 22, 2009 at 7:12 AM, Martin

Re: [R] lokern package

2009-07-02 Thread Martin Maechler
RV == Ravi Varadhan rvarad...@jhmi.edu on Thu, 2 Jul 2009 10:51:03 -0400 writes: RV Dear Martin, I have been playing a lot with the RV glkerns() function in the lokern package for RV automatic smoothing of time-series data. This kernel RV smoothing approach of Gasser and

Re: [R] Question regarding package submission to CRAN

2009-07-18 Thread Martin Maechler
VG == Vikneswaran Gopal vikn...@stat.ufl.edu on Fri, 17 Jul 2009 08:51:55 -0700 writes: VG It usually gets uploaded within a day if it passes all VG the checks run by Kurt Hornik. Then the Windows version VG gets built within the next 24 hours as well. Vik Jim usually, yes

Re: [R] S4 method dispatch with inheritance

2009-07-20 Thread Martin Maechler
MH == Michael Hahsler mich...@hahsler.net on Mon, 20 Jul 2009 08:57:28 -0500 writes: MH Hi, I'm trying to create a new S4 class (myMatrix) which MH for now just extends dgCMatrix (from package MH Matrix). Then I want to use [ which is defined in MH Matrix. MH Out of the

Re: [R] class export in package creation / setClass / namespace?

2009-07-21 Thread Martin Maechler
MartinMo == Martin Morgan mtmor...@fhcrc.org on Mon, 20 Jul 2009 18:57:33 -0700 writes: MartinMo L L lmla...@gmail.com writes: Ok, I could solve also the latter problem by defining show.myclass function in the zzz.R file and adding the line 'S3method(show,myclass)' into

Re: [R] Searching for specific values in a matrix

2009-07-28 Thread Martin Maechler
or a character vector. In sum, I'd strongly suggest you use %~% - function(x,y) isTRUE(all.equal(x,y)) Martin Maechler, ETH Zurich and R Core Team BertG Bert Gunter Genentech Nonclinical Biostatistics BertG -Original Message- From: BertG r-help-boun...@r-project.org BertG

Re: [R] dumping data objects

2009-07-29 Thread Martin Maechler
) [1] 128 as you had demonstrated in your first message. Can you propose an amendment to the help page for dump(), source at https://svn.r-project.org/R/trunk/src/library/base/man/dump.Rd which helps the user more clearly? Martin Maechler, ETH Zurich

Re: [R] A hiccup when using anova on gam() fits.

2009-07-29 Thread Martin Maechler
-- Martin Maechler, ETH Zurich -- RT Is this evidence of a ``bug''? Or am I being terribly young and RT naive to RT expect anova() to work at all in such circumstances? RT The error thrown is: RT Error in anova.glmlist(list(object, ...), test = test) : RT (list

Re: [R] check for new files in a given directory

2009-07-30 Thread Martin Maechler
, one flavor of Solaris}, and from recent experience with file.access() {not working reliably on some Windows-version x file-system combination}, this doesn't seem easy to get right. I think R core would be very grateful for patches (particularly if from someone as qualfied as you). Martin Maechler

Re: [R] Which CRAN mirror is the fastest ?

2009-07-30 Thread Martin Maechler
Barry Rowlingson b.rowling...@lancaster.ac.uk on Thu, 30 Jul 2009 09:59:47 +0100 writes: 2009/7/30 Uwe Ligges lig...@statistik.tu-dortmund.de: Hard to lee, you have to try out, I fear. The speed you see highly depends on the connection from your country to others,

Re: [R] How to stop an R script when running JGR on a Linux/SuSE system

2009-08-03 Thread Martin Maechler
-To: and mails sender PD instead). The logical consequence would seem to be to PD unsubscribe mailingli...@versanet.de. I've done that now. Sorry I hadn't been around earlier. Martin Maechler, ETH Zurich PD -p PD -- PD Hi. This is the qmail-send program at PD

Re: [R] .... running JGR on a Linux/SuSE system

2009-08-03 Thread Martin Maechler
), see, e.g., all the projects (listed on the left hand side) of http://www.r-project.org/GUI [...] BK Bernd Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] diagonal LDA and QDA

2009-08-03 Thread Martin Maechler
not support this. IIRC, this in several packages, e.g., function diagDA() in package 'sfsmisc'. 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

Re: [R] Rank of matrix

2009-08-04 Thread Martin Maechler
), has a function rankMatrix() whose options {and implementation; just type 'rankMatrix' !} show you a bit about the problematics. Regards, Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] R User Group listings

2009-08-06 Thread Martin Maechler
FrL == Friedrich Leisch friedrich.lei...@stat.uni-muenchen.de on Thu, 6 Aug 2009 11:38:03 +0200 writes: On Sat, 01 Aug 2009 08:30:50 -0400, Prof John C Nash (PJCN) wrote: Better ideas should prevail. There is now a wiki page at

Re: [R] Why is 0 not an integer?

2009-08-07 Thread Martin Maechler
. I'm going to discuss this -- it's about technical details and future changes to R in the appropriate mailing list : --- R-devel Martin Maechler, ETH Zurich Bill Dunlap TIBCO Software Inc - Spotfire Division wdunlap tibco.com By the way

Re: [R] plotting huge data

2009-08-07 Thread Martin Maechler
for such cases, but also for cases that are closer to huge: E.g. still working fast for n - 1e6 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] source a script file straight from a subversion repository

2008-08-04 Thread Martin Maechler
information can be misused to break in. *and* you can use source(...)! 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

Re: [R] Long Range Dependence: Hurst exponent estimation

2008-08-05 Thread Martin Maechler
fArma -- reimplementation (from the Rmetrics suite) of fracdiff and much more o longmemo -- has FEXPest () of Beran Martin Maechler, ETH Zurich tiu Thanks in advance, Tolga tiu Generally, this communication is for informational tiu purposes only

Re: [R] ecdf manipulation

2008-08-16 Thread Martin Maechler
and its methods. Martin Maechler, ETH Zurich If not then does anyone have any suggestions? Thanks Harry Venables __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] bug in lme4?

2008-08-20 Thread Martin Maechler
[EMAIL PROTECTED] on Wed, 20 Aug 2008 03:03:29 +0100 writes: Dear all, I found a problem with 'lme4'. Basically, once you load the package 'aod' (Analysis of Overdispersed Data), the functions 'lmer' and 'glmer' don't work anymore: library(lme4) (fm1 -

Re: [R] permutation cycles

2008-08-26 Thread Martin Maechler
of permutation vector p[]: cycles - function(p) { ## From: Barry Rowlingson at Lancaster ac UK ## To: Martin Maechler at ETH Zurich ## Subject: Re: [R] sign(permutation) in R ? ## Date: Tue, 15 Apr 2008 18:15:19 +0100 ## with minor tweaks by MM cycles - list() ii - seq_along(p

  1   2   3   4   5   6   7   8   9   >