Re: [R] sign() in R ?

2008-04-15 Thread Martin Maechler
. I'll post R code later, being busy for the next few hours. Martin >>>>> "MM" == Martin Maechler <[EMAIL PROTECTED]> >>>>> on Tue, 15 Apr 2008 18:13:43 +0200 writes: MM> I am looking for an algorithm (written in R (preferably) or C,

Re: [R] sign() in R ?

2008-04-16 Thread Martin Maechler
d as signCycLength(cycLengths2(p)) e.g., p <- sample(50) signCycLength(cycLengths2(p)) Thank you, again for all the feedback, and suggestions, Martin Maechler, ETH Zurich >>>>>> Peter Dalgaard wrote yesterday >> Martin Maechler wrote: >> > Ok, >>

Re: [R] pnbinom.c qnorm.c

2008-04-17 Thread Martin Maechler
; (I would use R in batch mode but I find the startup time prohibitive, unless ML> there is a way to speed it up) there definitely is, and I wonder why you haven't found it. E.g., Rscript --vanilla --slave --default-packages=stats -e 'pnorm(1.96)' [1] 0.9750021 i

Re: [R] Documentation General Comments

2008-04-24 Thread Martin Maechler
Hmm, > "KeBe" == Beck, Kenneth (STP) <[EMAIL PROTECTED]> > on Thu, 24 Apr 2008 10:12:19 -0500 writes: KeBe> OK I've spent a lot of time with the core KeBe> documentation, and I never found anything as simple as KeBe> their table 2.1, which elucidated the difference KeB

Re: [R] matrix from list

2008-04-26 Thread Martin Maechler
t understand why you want to throw away the dimnames of the resulting numeric matrix. Rather, in general you'd want to keep them. Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

Re: [R] ESS and Xemacs version 21.5.28

2008-05-03 Thread Martin Maechler
R-help is not at all the place to ask such a question. Please use ess-help (or an Xemacs mailing list). > "WS" == Werner Stanzl <[EMAIL PROTECTED]> > on Fri, 2 May 2008 20:41:21 -0400 writes: WS> Hi, WS> When I start Xemacs version 21.5.28 (in Unix), using the init.el:

Re: [R] MLE for noncentral t distribution

2008-05-08 Thread Martin Maechler
, df=1.66)? Where should I put m and s when I do simulation? m + s * rt(n, df= df) [I still hope this isn't a student homework problem...] Martin Maechler, ETH Zurich k> m s df k> 0.2340746 4.0447124 1.6614823 k> (0.3430796) (0.4158891) (0.263870

Re: [R] function in nls argument -- robust estimation

2008-05-10 Thread Martin Maechler
e at the moment to look at the example data and the model, and show you how to use it for nlrob(); if you find a way to you it for nls() , then the same should work for nlrob(). I'm CCing this to the specialists for "Robust Stats with R" mailing list, R-SIG-robust. Best re

Re: [R] The try() function with read.delim().

2008-05-14 Thread Martin Maechler
> "RT" == Rolf Turner <[EMAIL PROTECTED]> > on Wed, 14 May 2008 13:12:02 +1200 writes: RT> I have written a function which reads data from files using read.delim RT> (). RT> The names of these files are complicated and are built using arguments RT> to the wrapper funct

Re: [R] The try() function with read.delim().

2008-05-14 Thread Martin Maechler
Oops, there where some typos / thinkos in my post, in the "more sophisticated" tryCatch() example. I append the full message with corrected example. -- Martin --- > "RT" == Rolf Turner <[EMAIL PROTECTED]> > on Wed, 14 Ma

Re: [R] R benchmarking program

2008-05-14 Thread Martin Maechler
le with R 2.7.0, David? I'll not really rewrite it (to make it "nice" in my eyes), but I'm fixing the problems with the fact that the 'Matrix' package you were using back then has been much changed in the mean time. Expect a corrected benchmark R script within a day or s

Re: [R] R benchmarking program

2008-05-14 Thread Martin Maechler
>>>>> "MM" == Martin Maechler <[EMAIL PROTECTED]> >>>>> on Wed, 14 May 2008 12:05:00 +0200 writes: >>>>> "PhGr" == Philippe Grosjean <[EMAIL PROTECTED]> >>>>> on Tue, 13 May 2008 16:10:15 +0200 w

Re: [R] 64-bit R and cache memory

2008-05-17 Thread Martin Maechler
t;R" > gc() used (Mb) gc trigger(Mb) max used(Mb) Ncells1570998.4 3518.7 35 18.7 Vcells 537027103 4097.2 1409694707 10755.2 1342332915 10241.2 ## after GC, we are back to 4 GB : > sfsmisc::Sys.ps() pid pcpu t

Re: [R] Converting Data Types

2008-05-21 Thread Martin Maechler
: Do use data.matrix(dd) instead of as.matrix(dd) if dd is a data frame ... it will also produce a numeric matrix when dd contains factor (and similar) columns. Martin Maechler, ETH Zurich EW> - Edward EW> On Wed, May 21, 2008 at 11:31 AM, Peter Alspach E

Re: [R] diagonal LDA

2007-11-20 Thread Martin Maechler
ntioned below, I found it useful to add dDA() diagDA() to package 'sfsmisc' ---> install.packages("sfsmisc") library(sfsmisc) ?diagDA and that help page mentions that these are just improvements of earlier code of Sandrine Dudoit and Jane Fri

Re: [R] print " character

2007-11-20 Thread Martin Maechler
;, what's your name? or equivalently > cat("My name is \"Luis\", what's your name? \n") My name is "Luis", what's your name? Pay close attention to both single and double quotes used above and to the use of '\&#x

Re: [R] Logarithmic axis -- now in new version of 'sfsmisc'

2007-11-21 Thread Martin Maechler
added the following to the 'ChangeLog' of my package "sfsmisc" : 2007-10-13 Martin Maechler <[EMAIL PROTECTED]> * R/prettylab.R (eaxis): new function for nice (log) axis labeling. (pretty10exp): drop.1: -10^k instead of -1*10^k Here is the code -- which a

Re: [R] Packages - a great resource, but hard to find the right one

2007-11-23 Thread Martin Maechler
> "JH" == Johannes Huesing <[EMAIL PROTECTED]> > on Thu, 22 Nov 2007 22:14:57 +0100 writes: JH> Antony Unwin <[EMAIL PROTECTED]> [Thu, Nov 22, JH> 2007 at 12:43:07PM CET]: >> There have been several constructive responses to John >> Sorkin's comment, but none of them ar

Re: [R] generating .Rd files

2007-11-27 Thread Martin Maechler
> "GaGr" == Gabor Grothendieck <[EMAIL PROTECTED]> > on Mon, 26 Nov 2007 23:25:45 -0500 writes: GaGr> See ?package.skeleton GaGr> ?prompt Yes, indeed. And I think that was the only pertinent answer to Edna's question. GaGr> On Nov 26, 2007 6:59 PM, Edna Bell GaG

Re: [R] coloring leaves in clustering

2007-11-29 Thread Martin Maechler
hc <- hclust(...) X <- as.dendrogram(hc) and then "work with that" (add 'nodePar' properties to certain nodes). example(plot.dendrogram) gives you a glimpse of the possibilities. Someone else will have to give you details, or provide you with utility functions

Re: [R] Data sets with usage in documentation object but not in code

2007-11-30 Thread Martin Maechler
.r-project.org/incoming That's a place NOBODY can get it - but the CRAN maintainers, and they are not very pleased to see a package there which does not pass R CMD check. Please use a different place! If you cannot, please copy-paste one of the *.Rd files into an e-mail (reply to this). Martin M

Re: [R] color palette from red to blue passing white

2007-12-04 Thread Martin Maechler
other color space functionality in R all of which deserve more usage in my oppinion and also in my own code ! ;-) Package 'vcd' (and others) use package 'colorspace', and I have wondered in the past if these color space computations should not be merged into to standard R (package &

Re: [R] Calculating large determinants

2007-12-05 Thread Martin Maechler
D() in package 'Matrix' (based on a donation from Jens Oehlschlaegel) provides a more sophisticated algorithm for this problem. If you really only need the eigenvalues of the "corrected" matrix, you might want to abbreviate the nearPD() function by just returning the final &#x

Re: [R] R function for percentrank

2007-12-05 Thread Martin Maechler
s all of approxfun(), splinefun() or ecdf() } You can also use ecdf(x)(x) and indeed check that it is identical to the convoluted percentrank() function above : > ecdf(x)(0.48742905) [1] 0.52 > ecdf(x)(x) [1] 0.20 0.44 0.12 1.00 0.48 0.16 0.56 0.72 0.60 0.28 0.96 0.52 0.24 0.04 0.92

Re: [R] about color palettes, colorRamp etc

2007-12-05 Thread Martin Maechler
ve just posted about to R-help as well]. Please say example(colorRamp) in R and slowly watch the output, and I expect you will never ever want to use the horrible "Matlab-like" color palette again.. Regards, Martin Maechler, ETH Zurich Earl> efg Earl&g

Re: [R] R function for percentrank

2007-12-06 Thread Martin Maechler
> "MS" == Marc Schwartz <[EMAIL PROTECTED]> > on Wed, 05 Dec 2007 12:43:50 -0600 writes: [] MS> Martin, MS> Thanks for the corrections. In hindsight, now seeing the intended use of MS> ecdf() in the fashion you describe above, it is now clear that my MS> a

Re: [R] R help mailing system configuration change?

2007-12-07 Thread Martin Maechler
is one imprecise citation). And that's not counting the hacker's attempt to break into mail servers, notably if they are at "prestigious" places, DNS attacks, etc. Currently, we *must* use blacklist services, or our servers would crumble. The exact set of blacklist services o

[R] Decent R code does NOT end lines in ';' !

2007-12-11 Thread Martin Maechler
Dir) for(i in grep(paste("^", pfnStub,".*\\.RData$", sep = ""), cvListFiles)) { load(paste(fnDir, cvListFiles[i], sep = "/")) myFunction(rliObject) rm(rliObject) } Something many readers on this list will much prefer to your original, and hen

Re: [R] Function built with segments

2007-12-15 Thread Martin Maechler
2) ## using plot() method for functions or simpler to understand: xx <- seq(0,1, length=100) lines(xx, myF(xx), col=2) t> Thank you very much t> TDB you're welcome. Martin Maechler, ETH Zurich __ R-help@r-project.org mail

Re: [R] calculating the number of days from dates

2007-12-15 Thread Martin Maechler
> "KK" == Knut Krueger <[EMAIL PROTECTED]> > on Sat, 15 Dec 2007 08:39:02 +0100 writes: KK> Bob Green schrieb: >> >> > dates <- read.csv("c:\\dates.csv",header=T) >> > dates >> v1 v2 >> 1 12/12/1978 12/12/2005 >> 2 23/01/1965 23/09/2001 >> 3 24/

Re: [R] Efficient way to find consecutive integers in vector?

2007-12-21 Thread Martin Maechler
Its definition is currently inv.seq <- function(i) { ## Purpose: 'Inverse seq': Return a short expression for the 'index' `i' ## ## Arguments: i: vector of (usually increasing) integers. ## --

Re: [R] Efficient way to find consecutive integers in vector?

2007-12-22 Thread Martin Maechler
>>>>> "TP" == Tony Plate <[EMAIL PROTECTED]> >>>>> on Fri, 21 Dec 2007 18:17:18 -0700 writes: TP> Martin Maechler wrote: >>>>>>> "MS" == Marc Schwartz <[EMAIL PROTECTED]> >>>>>>

Re: [R] Diagonal matrix with off diagonal elements

2007-12-24 Thread Martin Maechler
ith sparse matrices: > library(Matrix) > m <- Matrix(0,6,6) > diag(m[-1,]) <- 1:5 > m 6 x 6 sparse Matrix of class "dgCMatrix" [1,] . . . . . . [2,] 1 . . . . . [3,] . 2 . . . . [4,] . . 3 . . . [5,] . . . 4 . . [6,] . . . . 5 . - - - - - - - - - - - M

Re: [R] using solve.qp without a quadratic term

2007-12-24 Thread Martin Maechler
> "ML" == Mark Leeds <[EMAIL PROTECTED]> > on Fri, 21 Dec 2007 19:38:19 -0600 (CST) writes: ML> I was playing around with a simple example using solve.qp ( function is in the quadprog package ) and the code is below. ( I'm not even sure there if there is a reasonable solution bec

Re: [R] Error: Bad value

2008-01-11 Thread Martin Maechler
> "SG" == Sven Garbade <[EMAIL PROTECTED]> > on Fri, 11 Jan 2008 09:47:39 +0100 writes: SG> Hi list, SG> from time to time I got an "Error: bad value" and must restart R. The SG> mail archives suggests memory corruption, but I do not run "special" C SG> code, only base

Re: [R] Error on distance matrix

2008-01-14 Thread Martin Maechler
> "GS" == Gavin Simpson <[EMAIL PROTECTED]> > on Thu, 10 Jan 2008 14:16:36 + writes: GS> On Thu, 2008-01-10 at 10:48 +, Marc Moragues wrote: >> Hi, >> >> I am trying to calculate a distance matrix on a binary >> data frame using dist.binary() {ade4}. This i

Re: [R] EMACS and ESS

2008-01-15 Thread Martin Maechler
aster, the Fedora-maintainer of its ESS package) that it was only for Fedora-devel; maybe my misunderstanding. For that reason I had only updated the web page http://ESS.r-project.org/ without making a "big" announcement [ which would have been to the ESS-help mailing list, --&g

Re: [R] Different results in calculating SD of 2 numbers

2008-01-16 Thread Martin Maechler
95)/2 RM> [1] 0.15 >> sd(c(1.25, 0.95)) RM> [1] 0.2121320 # why it is different from 0.15? because 1 is different from 2 ! If 2 was 1, than sqrt(2) == 1 as well, but actually I don't think the universe and we all would exist in that case Martin Maechler, ETH

Re: [R] Trouble receiving messages from the mailing list

2008-01-18 Thread Martin Maechler
ed spam rate on r-help. I have to tell you (or rather the R-help audience) that I've spent too much time (again!) during this week trying to fight spam. Maybe the time of "free" (unauthorized) posting to mailing lists is approaching its end... Martin Maechler, ETH Zurich _

Re: [R] Trouble receiving messages from the mailing list

2008-01-18 Thread Martin Maechler
ed spam rate on r-help. I have to tell you (or rather the R-help audience) that I've spent too much time (again!) during this week trying to fight spam. Maybe the time of "free" (unauthorized) posting to mailing lists is approaching its end... Martin Maechler, ETH Zurich _

Re: [R] ESS (was "changing color scheme in R in UNIX")

2008-01-21 Thread Martin Maechler
g/ - which is slightly preferred. BTW: I've been looking for a (or a few) volunteer to rewriting that web page using things like CSS and/or PHP but not using a CMS with data base back end). Martin Maechler, ETH Zurich ChuckB>

Re: [R] ODE's in R

2008-01-22 Thread Martin Maechler
er seeing a few particularly nasty orbits. As we know ``from Chaos theory'', there can be delicate inhereent and numerical problems in ODE solving.. Regards, Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.eth

Re: [R] Plotting the complex fft in 3D?

2008-09-06 Thread Martin Maechler
etc etc (because the so-called *raw* periodgram is *in*consistent as an estimate fo the underlying true spectrum). The Time-Series chapter/section of the MASS book is very helpful here, IIRC. Martin Maechler, ETH Zurich >>>>> "OB" == Oliver Bandel <[EMAIL PROTECTED]> &

Re: [R] request

2008-09-06 Thread Martin Maechler
n/listinfo/r-help {please, Ram, also do read the above web page carefully ..} Regards, Martin Maechler, ETH Zurich (provider of all the @r-project.org mailing lists) ss> On Sat, Sep 6, 2008 at 4:48 AM, Ram Kumar Basnet <[EMAIL PROTECTED]> wrote: >> hi >> I am expecti

Re: [R] Hopefully an easy error bar question

2008-09-06 Thread Martin Maechler
nge the code to the following but it didnt work, any suggestions? >> >> labels<-as.character(levels(list(sex,Age))) >> ybar<-as.vector(tapply(ConditionIndex,sex,Age,mean)) >> error.bars(ybar,se,labels) FEH> See http://biostat.mc.vanderbilt.edu/Dy

[R] code of an R function {"probably easy methods question"}

2008-09-10 Thread Martin Maechler
al to the 2.7.2 one: https://svn.r-project.org/R/trunk/src/library/stats/R/t.test.R Note that most people would want to *search* in the R sources, and therefore still get the complete R sources (either by subversion or from a *.tar.gz file, from CRAN). Yes, Uwe Ligges wrote an R News (2006

Re: [R] How to load functions in R

2008-09-11 Thread Martin Maechler
functions as ASCII files or YX> even write a package are also good solutions :-) ^ "also good..." baahh... *THE* good! I'd strongly second Adai's view here: *DO* use *.R source files --- together with an R-syntax aware editor, there are many

Re: [R] making spearman correlation cor() call fail with log(0) as input

2008-09-13 Thread Martin Maechler
hank you again TS> for the help! So you now have understood that R's behavior of handling +/- Inf in this respect is rather excellent than bogous ? Martin Maechler, ETH Zurich (and R-core team) __ R-help@r-project.org mailing list https

Re: [R] Scatterplot with data grouped by color

2008-09-13 Thread Martin Maechler
> "JIV" == Jorge Ivan Velez <[EMAIL PROTECTED]> > on Fri, 12 Sep 2008 18:39:04 -0400 writes: JIV> Dear Amanda, JIV> Try this: JIV> # Data set JIV> set.seed(123) JIV> DF=data.frame(A=rnorm(10),B=rpois(10,10),C=sample(1:3,10,replace=T)) JIV> attach(DF) JIV>

Re: [R] Oja median

2008-09-18 Thread Martin Maechler
r robust "location+scatter" [aka "(mu , Sigma)"] from packages 'rrcov', 'robustbase' and/or 'robust', e.g., robustbase::covMcd If you need to know more, please divert to the SIG (special interest group) mailling list R-SIG-robust to which I CC this. M

Re: [R] Symmetric matrix

2008-09-22 Thread Martin Maechler
DR> a Yes, indeed, it needs the t(.) trick. Note that 'Matrix' package has a function forceSymmetric(.) to do this for you (faster, using C code): A <- forceSymmetric(Matrix(rnorm(36), 6)) is all you'd need {if can afford to trash half of the random numbers

Re: [R] Bug in "is" ?

2008-09-24 Thread Martin Maechler
notably since in R we had introduced the explicit long (= long integer) constants, using the 'L' suffix, i.e., 7L is "integer" 7 is "double" Note however that for both, is.numeric(.) is fulfilled and class(.) and mode(.) return "numeric". Only t

[R] R Foundation adopts Certification/Validation document

2008-09-25 Thread Martin Maechler
tatistical Computing, Martin Maechler ETH Zurich Note: As an exception, we are announcing this through R-announce. ___ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-announce _

Re: [R] Conversion to Binary (base2)

2008-09-26 Thread Martin Maechler
0 0 [3,]001100110 0 1 [4,]01010101 0 1 0 But really look at the examples in help(digitsBase) for more. Martin Maechler, ETH Zurich >> Since I have to teach number base conversion within 2 wee

Re: [R] Converting shell("cd") to a string

2008-09-26 Thread Martin Maechler
> "AR" == Arthur Roberts <[EMAIL PROTECTED]> > on Fri, 26 Sep 2008 01:54:59 -0700 writes: AR> Hi, all, AR> Is there an R-command that will convert shell("cd") to a string, so AR> that I can use it in the paste() command? I'm pretty sure that for the specific case, you sh

Re: [R] Bug in "is" ?

2008-09-27 Thread Martin Maechler
I'm replying to this on the R-devel mailing list and the Subject "On modes, types and R documentation" Martin __ 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/po

[R] Planned mailing list "timeout" of several hours

2008-09-30 Thread Martin Maechler
gs as normal. The mails should be kept in a secondary/substitute mail server and be forwarded to ours as soon as that "gets up" again. But you will notice that your message is not posted to the lists for several hours. We are sorry for the inconvenience to the R community. Martin Maech

[R] Missing basic understanding of classes, generic functions and methods

2008-10-03 Thread Martin Maechler
> <[EMAIL PROTECTED]> > on Thu, 2 Oct 2008 10:02:04 -0700 writes: > Sorry, I must be looking at a different section but when I look at 3.4 in r-intro.pdf I see: > 3.4 The class of an object > All objects in R have a class, reported by the function class. For simple vect

Re: [R] possible bug in function 'var' in R 2.7.2?

2008-10-03 Thread Martin Maechler
Yes masking var() is a bad idea; a much better (and much less error-prone) idea would be to install R 2.8.0 alpha even now. It will become 'beta' early next week. We are asking the R community to please install and use pre-release versions of R (if you can / are allowed to) at least fro

Re: [R] help about how can R compute AIC?

2008-10-14 Thread Martin Maechler
> "AMT" == Arnau Mir Torres <[EMAIL PROTECTED]> > on Tue, 14 Oct 2008 17:13:01 +0200 writes: > "AMT" == Arnau Mir Torres <[EMAIL PROTECTED]> > on Tue, 14 Oct 2008 17:13:01 +0200 writes: AMT> Hello. AMT> I need to know how can R compute AIC when I study a regression

Re: [R] Select only cases with negative values

2008-10-20 Thread Martin Maechler
c(-1,2,-3,-4,5,6,-7,8,-9,10) f <- cbind(c,d) dat <- data.frame(f) rm(c,d,f) ## << check to make sure 'c' or 'd' are not picked up from GlobalEnv [MM] ## daN.lm <-lm(c ~ d, data = dat, subset = d < 0) summary(daN.lm) Does this really not work for

Re: [R] pdf creation error

2008-10-22 Thread Martin Maechler
"")) : cannot open 'pdf' file argument SK> 'Pictures/full_map.pdf' SK> Just close the Acrobat Reader or whatever. or even better: Close your OS (MS Windows) and start using a better one. E.g., on all Linux versions I know I can write to files open in ac

Re: [R] bug (?!) in "pam()" clustering from fpc package ?

2008-12-20 Thread Martin Maechler
at this would still not be equivalent to "kmeans with manhattan distance". In particular, pam() should be more robust than any kmeans incantation, since pam() does not use any (non-robust) mean. Martin Maechler, ETH Zurich TG> On Wed, Dec 17, 2008 at 1:25 PM, Christian Hennig

Re: [R] Memory Efficiency of Symmetric Matrix

2009-01-07 Thread Martin Maechler
a co-maintainer of the package, I'm biased of course, but also extremely interested in feedback / questions from users like you, about missing features, unclear documentation, possible bugs, ... Regards, Martin Maechler, ETH Zurich >>> >>>

Re: [R] Duplicated messages

2009-01-07 Thread Martin Maechler
> "BertG" == Bert Gunter > on Tue, 6 Jan 2009 10:13:29 -0800 writes: BertG> Folks: I am getting duplicate messages on BertG> posts. Please correct my details if I'm wrong, but I BertG> believe it's because folks are posting to **both** BertG> the addresses, r-help@r-p

Re: [R] R "Threatens" SAS According to The NYT

2009-01-07 Thread Martin Maechler
illing to fulfill a New Year's wish for me, I'd be very grateful for a (digital scan) copy of that page. Martin Maechler, ETH Zurich [..] >> Thought you might be interested in reading this article, >> which appears in the 1/6/9 online edition of T

Re: [R] R "Threatens" SAS According to The NYT

2009-01-07 Thread Martin Maechler
>>>>> "MM" == Martin Maechler >>>>> on Wed, 7 Jan 2009 14:18:24 +0100 writes: [..] MM> At the bottom of the page it says MM> __ A version of this article appeared in print on MM> January 7, 2009, __ on page B6 of

Re: [R] Dendrogram with the UPGMA method

2009-01-20 Thread Martin Maechler
or those in the S / R tradition you already go a traditional one... but to finally help you: use ag <- agnes(...) dg <- as.dendrogram(as.hclust(ag)) plot(dg) and if you read and look at the examples of help(plot.dendrogram) you'll see that you have many more option

Re: [R] Creating a Sparse Matrix from a Sparse Vector

2009-01-20 Thread Martin Maechler
do rocket science (:-) I've solved this exercise for you: require("Matrix") repRow <- function(m, i, times) { ## Purpose: return a sparse matrix containing row m[i,] 'times' times ## -- ## Arguments: m: sparseMatrix; i: row index; time

Re: [R] pdf() and pch problems

2009-01-22 Thread Martin Maechler
r text above could be read differently) this bug ... quite long standing! ... seems to be much wider spread than just (Open)SuSE. I have seen and still see it on Redhat (RHEL 5) and many Ubuntu versions too. And indeed, the workaround recommended (somewhere) in the above URL is working for me too: A

Re: [R] Problems in Recommending R

2009-02-09 Thread Martin Maechler
s) maintainable by SVN" but *not* restricting it to "no-server-side modules required". Martin Maechler, ETH Zurich Ao> - I volunteer in both cases :) Ao> Winner of Design Contest should get Ao> some bragging rights in a small hyperlink (with nofollow t

Re: [R] cumsum vs. sum

2009-02-18 Thread Martin Maechler
precision x now use a long double accumulator where available and so more closely match sum() and prod() in potentially being more accurate. and indeed, in R-devel, sum(x) - cumsum(x)[length(x)] gives 0 for your example. Martin Maechler, ETH Zurich and R-core team GaGr&g

Re: [R] cumsum vs. sum

2009-02-18 Thread Martin Maechler
probably yes, platform-dependently; However I vaguely remember that I didn't see one such case in the few experiments I did. Martin SM> On Wed, Feb 18, 2009 at 8:03 AM, Martin Maechler SM> wrote: SM> ... >> o cumsum(x) and cumprod(x) for double precision x no

Re: [R] Matrix package: band matrix

2009-02-20 Thread Martin Maechler
onality of such a function, bandMatrix(.) say ? It probably should have an option for specifying symmetric vs. "general" band matrices, something that the "corresponding" Matlab function [ spdiags() ] does not. Martin Maechler, ETH Zurich TL> -thom

Re: [R] Matrix package: band matrix

2009-02-20 Thread Martin Maechler
# Arguments: (n,m) : Matrix dimension ##k : integer vector of "diagonal numbers", with identical ##meaning as in band(*, k) ## listDiag: list of (sub)diagonals ## symmetric: if TRUE, specify only upper or lower triangle;

Re: [R] are arithmetic comparison operators binary?

2009-02-23 Thread Martin Maechler
7;d seen that they really are supposed to be binary only. A very small change in the sources does accomplish this, passes the standard checks (and I cannot imagine reasonable code that would have relied on the more lenient behavior), so this will have changed in one of the next versions of R-deve

Re: [R] are arithmetic comparison operators binary?

2009-02-24 Thread Martin Maechler
>>>>> "WK" == Wacek Kusnierczyk >>>>> on Mon, 23 Feb 2009 19:29:31 +0100 writes: WK> Martin Maechler wrote: >>>>>>> "WK" == Wacek Kusnierczyk >>>>>>> on Mon, 23 Feb 2009 12:06:32 +0

Re: [R] Inference for R Spam

2009-02-24 Thread Martin Maechler
me to provide something "uniformly better" (i.e., for those who want, it *must* work via e-mail exclusively, not via compulsory web-browser clicking). Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailm

Re: [R] R parser for If-else

2009-02-25 Thread Martin Maechler
'else' to avoid a syntax error in entering a 'if ... else' > construct at the keyboard or via 'source'. For that reason, one > (somewhat extreme) attitude of defensive programming is to always > use braces, e.g., for 'if' clauses. Regar

Re: [R] R parser for If-else

2009-02-25 Thread Martin Maechler
>>>>> "WK" == Wacek Kusnierczyk >>>>> on Wed, 25 Feb 2009 09:46:19 +0100 writes: WK> Martin Maechler wrote: >> >> I think this is FAQ (or should become one): >> >> ?if [the help page you really shou

Re: [R] Package download problem {was "Help_Unable to run glmer"}

2009-03-16 Thread Martin Maechler
http://cran.uk.r-project.org/bin/windows/contrib/2.8/Matrix_0.999375-21.zip' >> cannot open: HTTP status was '404 Not Found' "Further" (well, maybe the reason for the whole thread): Matrix has recently been upgraded, so the above URL indeed should no

Re: [R] plot lines at 0,0 axis

2009-03-17 Thread Martin Maechler
n negative values for x and y axis >> >> i can plot point using points(0,0) but if i want to draw lines >> along it, can't seem to get it right PaCo> ?abline PaCo> maybe abline(h = 0) PaCo> abline(v = 0

Re: [R] which.na

2009-03-20 Thread Martin Maechler
for large x with only few NAs. But this now has *REALLY* changed into a topic belonging to R-devel, not R-help ~~~ --> hence I've diverted the thread to there. Martin Maechler, ETH Zurich CAPE> Charles Annis, P.E. CAPE> charles.an...@statisticalengineering.com

Re: [R] sending the same e-mail many times (was "no subject")

2008-01-26 Thread Martin Maechler
[.] the footer here tells us that you still don't follow the posting guide (namely, not sending HTML) even though you may have started doing so by trying to produce reproducible code. Regards, Martin Maechler, ETH Zurich aw>

Re: [R] KM estimation for interval censoring?

2008-01-28 Thread Martin Maechler
ommenges is pretty active in this area. Further, Marloes Maathuis is active in this field, too. Her (CRAN) R package is 'MLEcens' which computes the (nonparametric!) MLE for (bivariate or univariate) interval censored data, which -- I think -- is what the KM estimator is for the one-

Re: [R] matrix creation -- answer: data.matrix()

2008-01-29 Thread Martin Maechler
> "GS" == Gavin Simpson <[EMAIL PROTECTED]> > on Tue, 29 Jan 2008 00:09:05 + writes: GS> hits=-2.6 tests=BAYES_00 GS> X-USF-Spam-Flag: NO GS> On Mon, 2008-01-28 at 12:17 -0700, Michelle DePrenger-Levin wrote: >> I was asked for the following information and hope it

[R] R-help going to become "subscriber-only"

2008-01-30 Thread Martin Maechler
cribers, these latter decision coming later. Consequence: Please subscribe to R-help __ at least in digest mode __ now, and ``spread the word'' so that you will be able to continue asking questions and getting advice here. Martin Maechler, ETH Zurich ... a sad list administrato

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 stat.math.ethz.ch> writes: >> >> The consequence of this will be that .. before the weekend

Re: [R] Bug with hist() ?

2008-01-31 Thread Martin Maechler
> "NS" == Ng Stanley <[EMAIL PROTECTED]> > on Thu, 31 Jan 2008 16:56:26 +0800 writes: NS> Hi, NS> Is this a bug from hist() ? The total density is greater than 1. no, the bug is in your thinking... Hint: 2 * 1/2 = 1 >> test NS> [1] 0.05077802 -0.50585520 -0.980536

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

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 gmail.com> writes: >> >> Dear All, >> >> Take this code: >> >> > f <- function(x) exp(-x)*x-0.05 >> > g <- function(x) 0 >> > curve(f,0,5)

[R] Looking for volunteer moderators for R-help

2008-02-02 Thread Martin Maechler
ole R-help list) if you are volunteering for the above, not later than Monday, Feb.4 (any timezone). Martin Maechler, for the R-core team __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] silhouette plot for kmeans result

2008-03-03 Thread Martin Maechler
#-> large (!) 3000 x 3000 / 2 sk <- silhouette(km$cl, dissE) plot(sk) ## but kmeans 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 welco

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

2008-03-03 Thread Martin Maechler
s / functions in R, I'm very strongly convinced that using GNUplot for plotting is ``the wrong'' approach by almost all definitions of "wrong". Martin Maechler, ETH Zurich __ R-help@r-project.org mailing list https://stat.ethz

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>

Re: [R] Overloading %*%

2008-03-17 Thread Martin Maechler
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, ETH Zurich __

Re: [R] setAs vs setIs

2008-03-17 Thread Martin Maechler
s = ) and setAs(.) much more frequently. That may well depend on the kind of your classes of course. For the 'Matrix' package at least, our experience and use testing has resulted in almost no use of setIs() but rather hierarchical class definitions, i.e., the above setClass(

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'

Re: [R] Variance generic function:

2008-10-30 Thread Martin Maechler
x27;) not an "error" !) > Attaching package: '' > > > The following object(s) are masked from package:stats : > > var Are you? In any case, package 'circular' is one CRAN package example that uses a NAMESPACE and redefines var(),

Re: [R] Suppressing internal grid in filled.contour

2008-10-30 Thread Martin Maechler
for this listserv indicated JG> that PDFs were fine): Yes, indeed, PDFs *are* fine (and I don't know exactly what Dieter's problem was with it; he was right that you should include self-contained code). Martin Maechler, ETH Zurich __ R-h

<    3   4   5   6   7   8   9   >