Re: [R] Plot Rect Transparency

2018-07-27 Thread Martin Maechler
> Duncan Murdoch > on Thu, 28 Jun 2018 20:57:19 -0400 writes: > On 28/06/2018 5:29 PM, Jeff Reichman wrote: >> R-Help >> >> >> >> Is there a way to make a rectangle transparent (alpha=0.1??) >> >> >> >> plot(c(100, 200), c(300, 450),

Re: [R] SQL Database

2018-07-26 Thread Martin Maechler
> Doran, Harold > on Wed, 25 Jul 2018 14:57:13 + writes: > I'm doing some work now to learn which SQL database > package is the most optimal for the task I am working on. Hmm... we would have a problem with optimize() and optim() if this was optimal << more

Re: [R] Do there need to be the same number of y-values for each x-value when using tapply?

2018-07-08 Thread Martin Maechler
The answer to your Q is surely a "no": That's exaxtly the point of tapply that the number of y values may vary. The msg tells you that the x & y full vectors must have the same length. Hoping that helps. Martin [[alternative HTML version deleted]]

Re: [R] verInd= and HorInd= arguments to pairs() function

2018-06-08 Thread Martin Maechler
>>>>> Gerrit Eichner >>>>> on Fri, 8 Jun 2018 12:55:31 +0200 writes: > Am 08.06.2018 um 12:02 schrieb Martin Maechler: >>>>>>> Martin Maechler >>>>>>> on Fri, 8 Jun 2018 11:13:24 +0200 writes:

Re: [R] verInd= and HorInd= arguments to pairs() function

2018-06-08 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 8 Jun 2018 11:13:24 +0200 writes: [..] >> Thank you, Chris, for the report and >> Gerrit for your proposed fix !! >> >> It looks good to me, but I will test some more (

Re: [R] verInd= and HorInd= arguments to pairs() function

2018-06-08 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Thu, 7 Jun 2018 18:35:48 +0200 writes: >>>>> Gerrit Eichner >>>>> on Thu, 7 Jun 2018 09:03:46 +0200 writes: >> Hi, Chris, had the same problem (and first thought it was >> my

Re: [R] verInd= and HorInd= arguments to pairs() function

2018-06-07 Thread Martin Maechler
labels[i], cex = cex.labels, > font = font.labels) > } > } > else if (i < j) > localLowerPanel(as.vector(x[, j]), as.vector(x[, >i]), ...) > else localUpperPanel(as.vector(x[,

Re: [R] mysterious rounding digits output

2018-05-31 Thread Martin Maechler
> Ted Harding > on Thu, 31 May 2018 07:10:32 +0100 writes: > Well pointed out, Jim! > It is infortunate that the documentation for options(digits=...) > does not mention that these are *significant digits* > and not *decimal places* (which is what Joshua seems to

Re: [R] par(mfrow=c(3,4)) problem

2018-05-30 Thread Martin Maechler
> Sarah Goslee > on Wed, 30 May 2018 05:03:56 -0400 writes: > Hi, > You're mixing base plot and ggplot2 grid graphics, which as you've > discovered doesn't work. > Here's av strategy that does: >

Re: [R] Comparing figures?

2018-05-07 Thread Martin Maechler
.pdf.save (with := reg-plot in this case) Martin Maechler R Core Team > On Mon, 7 May 2018 16:49 Ramiro Barrantes, > <ram...@precisionbioassay.com> wrote: >> Hello, >> >> I am working on tests to compare figures. I have been >> using I

Re: [R] Converting a list to a data frame

2018-05-03 Thread Martin Maechler
ize with a 10 out 10 grade: Beautiful use of do.call() and lapply(), two of the most versatile and important functions from the base R toolbox. Congratulations! Martin Maechler R Core Team > -Original Message- > From: R-help <r-help-boun...@r-project.org> On Behalf Of David L

Re: [R] How would I color points conditional on their value in a plot of a time series

2018-05-02 Thread Martin Maechler
uot;)) > Eivind K. Dovik > Bergen, NO yes, indeed, or -- even nicer for a time series: using 'type = "c"' which many people don't know / have forgotten about: ttt <- ts(rpois(12, lambda = 8), start = c(2000, 1), freq = 4) plot (ttt, type = "c") points(t

Re: [ESS] ess-dump-object-into-edit-buffer

2018-04-25 Thread Martin Maechler
rse.max.lines = NA)` do the trick? >> Martin fixed this for R 3.5 btw. > Fixed in what sense? `dump` should not be abiding that option. It has it's own > control with .deparseOpts. Well, did you try? .. That's why it was a bug .. which was never reported at all, till Lionel me

Re: [R] Error : 'start' contains NA values when fitting frank copula

2018-04-21 Thread Martin Maechler
wn above for the next release of the copula package... but am a bit hesitant to complicate (and slowdown) the current code by adding an extra check for this situation. Martin Maechler ETH Zurich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Question "breakdown point" --> robust statistics

2018-04-20 Thread Martin Maechler
e remaining 5% can be anything (-> arbitrary extreme outliers). There's the CRAN task view on robust statistical methods: https://cran.r-project.org/web/views/Robust.html Martin Maechler ETH Zurich > -- > Olivier Crouzet > Assistant Professor > @LLING UMR

Re: [R] Hacked

2018-04-18 Thread Martin Maechler
ddress that gave no "mailer daemon" error b) it probably did go to the spammers: a legitimate user would have replied to me. Martin Maechler ETH Zurich (= provider of all the r-*@r-project.org mailman mailing lists) > On Tue, Apr 17, 2018 at 11:37

Re: [R] Fwd: the same function returning different values when called differently..

2018-03-14 Thread Martin Maechler
e a good start to find differences between R objects 'obj1' and 'obj2', as all.equal() is generic and has a list method (which works recursively) the "output may be huge, but then if there is huge number of differences you would have found yourself anyway, and will not need all.equal() Marti

Re: [R] Possible Improvement to sapply

2018-03-14 Thread Martin Maechler
ual check, but if I use the above grep from Emacs (via 'M-x grep') or even better via a TAGS table and M-x tags-query-replace I should be able to do the changes pretty quickly... and will start looking into that later today. Interestingly and to my great pleasure, the first part of the 'Subject' o

Re: [R] Possible Improvement to sapply

2018-03-13 Thread Martin Maechler
capacities of R core are underestimated. Of course, nobody is perfect, but the bugs we produce are really more subtle than that ... ;-) Martin Maechler R core > On Tue, Mar 13, 2018 at 6:23 AM, Doran, Harold <hdo...@air.org<mailto:hdo...@air.org>> wrote: > While working

Re: [R] Problem with geterrmessage()

2018-02-23 Thread Martin Maechler
w): Learn to use tryCatch() instead of try() and then such things can be done considerably less obscurely. Best, Martin Maechler, ETH Zurich -- *) Using 'T' instead of 'TRUE' (of 'F' instead of 'FALSE' *is* unsafe): a previous 'T <- 0' will change what you really wanted. TRUE and FALSE are

Re: [R] max and pmax of NA and NaN

2018-01-15 Thread Martin Maechler
e that for these reasons, often NaN and NA should not be differentiated, and that's reason why using is.na(*) is typically sufficient and "best" -- it gives TRUE for both NA and NaN. Martin Maechler ETH Zurich __ R-help@r-project.org

Re: [ESS] ess-17.11-tgz is not compressed

2017-12-08 Thread Martin Maechler
>>>>> Martin Maechler <maech...@stat.math.ethz.ch> >>>>> on Fri, 8 Dec 2017 09:57:08 +0100 writes: >>>>> Ulrich Mueller <u...@gentoo.org> >>>>> on Fri, 8 Dec 2017 09:34:52 +0100 writes: >>>>> On T

Re: [ESS] ess-17.11-tgz is not compressed

2017-12-08 Thread Martin Maechler
>>>>> Ulrich Mueller <u...@gentoo.org> >>>>> on Fri, 8 Dec 2017 09:34:52 +0100 writes: >>>>> On Thu, 7 Dec 2017, Martin Maechler wrote: >> well, I'm managing the ess.r-project.org server and I >> have actually moun

Re: [ESS] ess-17.11-tgz is not compressed

2017-12-07 Thread Martin Maechler
>>>>> Martin Maechler <maech...@stat.math.ethz.ch> >>>>> on Thu, 7 Dec 2017 17:37:23 +0100 writes: >>>>> Neil Shephard <nsheph...@gmail.com> >>>>> on Tue, 5 Dec 2017 08:18:08 + writes: >> Hi, I've only

Re: [ESS] ess-17.11-tgz is not compressed

2017-12-07 Thread Martin Maechler
t;see" if it needs to uncompress or not; so for practical purposes, you nowadays can use tar xf and it will do the right thing if the file is compressed or not. Martin Maechler ETH Zurich > ~/tmp/ess $ gunzip ess-17.11.tgz > gzip: ess-17.11.tgz: not in gzip format > ~/tmp/ess $ tar x

Re: [R] ggtern and bquote...

2017-12-04 Thread Martin Maechler
the i-th element of x, the R syntax for indexing/subsetting is used here, i.e. x[i] for LaTeX x_i Last but not least, if Levent really needs bquote() [i.e. substitute()] then, a final as.expression(.) may be needed : identical(as.expression(quote(a == 1)), expression(

[ESS] ESS 17.11 released

2017-11-13 Thread Martin Maechler
be particularly important. For the complete list of (documented) new features and bug fixes, read the following (beginning of file 'ANNOUNCE') to the end. In the name of the ESS core team, with thanks to all helpers, notably by github pull requests, Martin -- Martin Maechler, ETH Zurich 1

Re: [R] [R-pkgs] Release of ess 0.0.1

2017-11-10 Thread Martin Maechler
rg and last but not least we have thought of 'reserving' ESSR as the name of a CRAN package that we'd consider using for the R part of ESS (there are others, considerably less used, notably Julia, Stata and SAS). Martin Maechler, ETH Zurich for ESS core developers _

Re: [R] run r script in r-fiddle

2017-11-01 Thread Martin Maechler
Github repos alone is _no_ guarantee for that, and unfortunately I think there's much software there where authors don't care (or don't want) to use a "truly" free software licence such as (*) https://github.com/datacamp/datacamp-light/blob/master/LICENSE.md Best, Martin Maechle

Re: [R] run r script in r-fiddle

2017-10-31 Thread Martin Maechler
install a current version of R, and not waste any more bandwidth and R-help readers' time, wouldn't we ? > On 30 October 2017 at 15:51, Martin Maechler > <maech...@stat.math.ethz.ch> wrote: >>>>>>> Suzen, Mehmet <msu...@gmail.com> on Mon, 30 Oc

Re: [R] run r script in r-fiddle

2017-10-30 Thread Martin Maechler
> Suzen, Mehmet > on Mon, 30 Oct 2017 11:16:30 +0100 writes: > Hi Frank, You could upload your R source file to a public > URL, for example to github and read via RCurl, as source > do not support https as far as I know. well... but your knowledge is

Re: [R] read.table(..., header == FALSE, colClasses = )

2017-10-24 Thread Martin Maechler
(and understood) the above part of the help page, it becomes, easy, no? > tt <- read.table(textConnection("a 3.14"), colClasses = > c("character","numeric")) > t2 <- read.table(textConnection("a 3.14"), > c

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-23 Thread Martin Maechler
> Sorkin, John > on Sun, 22 Oct 2017 22:56:16 + writes: > David, > Thank you for responding to my post. > Please consider the following output (typeregional is a factor having two levels, "regional" vs. "general"): > Call: >

Re: [R] What exactly is an dgCMatrix-class. There are so many attributes.

2017-10-21 Thread Martin Maechler
>>>>> David Winsemius <dwinsem...@comcast.net> >>>>> on Sat, 21 Oct 2017 09:05:38 -0700 writes: >> On Oct 21, 2017, at 7:50 AM, Martin Maechler <maech...@stat.math.ethz.ch> wrote: >> >>>>>>> C

Re: [R] What exactly is an dgCMatrix-class. There are so many attributes.

2017-10-21 Thread Martin Maechler
Fri, Oct 20, 2017 at 3:22 PM, David Winsemius <dwinsem...@comcast.net> >> wrote: >> >>> >>> > On Oct 20, 2017, at 11:11 AM, C W <tmrs...@gmail.com> wrote: >>> > >>> > Dear R list, >&

Re: [R] nls() and loop

2017-10-21 Thread Martin Maechler
e nice model-visualizing plot, you already now get in R when you run example(SSasymp) or example(SSasympOrig) (but unfortunately, they currently use 'lwd = 0' to draw the asymptote which shows fine on a PDF but not on a typical my screen graphics device.) Martin Maechler ETH Zurich and R C

Re: [R] What exactly is an dgCMatrix-class. There are so many attributes.

2017-10-21 Thread Martin Maechler
s indeed: In principle all these matrices should work like regular numeric matrices, just faster with less memory foot print if they are really sparse (and not just formally of a sparseMatrix class) ((and there are quite a few more niceties in the package)) Martin Maechler (here, maintainer of '

Re: [R] Error messages using nonlinear regression function (nls)

2017-10-20 Thread Martin Maechler
code I showed.) Martin > Cheers > Petr >> -Original Message- >> From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] >> Sent: Friday, October 20, 2017 1:04 PM >> To: PIKAL Petr <petr.pi...@precheza.cz> >> Cc: Wall, W

Re: [R] Error messages using nonlinear regression function (nls)

2017-10-20 Thread Martin Maechler
library/stats/R/zzzModels.R also defines the SSfpl() == 4-parameter logistic model and there, the 'init' function needs to do the same scaling to (0, 1) and does it much nicer, indeed (anti)symmetrically. I'm looking into using that in SSlogis() as well, fixing this bug. Martin Maechler

Re: [R] Optimize code to read text-file with digits

2017-09-08 Thread Martin Maechler
> peter dalgaard > on Fri, 8 Sep 2017 16:12:21 +0200 writes: >> On 8 Sep 2017, at 15:51 , Martin Møller Skarbiniks >> Pedersen wrote: >> >> On 8 September 2017 at 14:37, peter dalgaard >> wrote: >>>

Re: [R] Fwd: Find maxima of a function

2017-08-29 Thread Martin Maechler
converge-correctly EM algorithm. After install.packages("nor1mix") require("nor1mix") ?norMixMLE Martin Maechler, ETH Zurich > On Sun, 27 Aug 2017 16:01:59 +0300 Ismail SEZEN > <sezenism...@gmail.com> wrote: >> Dear Niharika, &

Re: [R] Help creating the IBM Randu function

2017-08-15 Thread Martin Maechler
> Richard M Heiberger > on Mon, 14 Aug 2017 14:36:40 -0400 writes: > Please look at ?datasets::randu > for David Donoho's translation of RANDU into R. Thanks a lot, Rich, for pointing to this: Indeed, the RANDU aka 'randu' data set has been part of R

Re: [R] define a list with names as variables

2017-08-04 Thread Martin Maechler
I had provided it for R (in package 'stats') just to help people to write more nicely readable code: Your function f() below then becomes a simple one-liner: f <- function(foo, bar) setNames(list(bar), foo) Martin Maechler ETH Zurich and R Core > Giovanni > On Fri, Aug 4,

Re: [R] Generating samples from truncated multivariate Student-t distribution

2017-08-02 Thread Martin Maechler
tted plain text rather than ___> in a formatted document (pdf in your case) >> I am posting plain text here: good .. and please do always on these lists Martin Maechler, ETH Zurich & R Core >> >>> library(tmvtnorm) >>> meann = c(55, 40, 50, 3

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Martin Maechler
>>>>> PIKAL Petr <petr.pi...@precheza.cz> >>>>> on Mon, 31 Jul 2017 09:11:18 + writes: > Hi Martin see in line >> -----Original Message- From: Martin Maechler >> [mailto:maech...@stat.math.ethz.ch] Sent: Monday, Ju

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Martin Maechler
> Hi Rosa > something like > plot(1,1, sub=expression(lambda^"2")) > So with your example, do you want something like > plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) , > xlab="Day in ICU", > ylab="CRP (mg/dL)", > sub = mtext(expression(lambda^2))) OOps!

Re: [R] axis() after image.plot() does not work except if points() is inserted between

2017-07-25 Thread Martin Maechler
, and then re-reading parts of the help page, I see that there is a 'graphics.reset' argument which you can set to TRUE in such a case: image.plot(D, col=rev(heat.colors(128)),bty="n", xlab="Lines", ylab="Columns", cex.lab = 0.5, zlim= range(D, na.rm=TRU

Re: [R] readLines without skipNul=TRUE causes crash

2017-07-18 Thread Martin Maechler
i?id=17311> >>> hopefully i am not doing something remarkably stupid. the text file itself >>> is 4GB >>> so cannot upload it to bugzilla, and from the >>> R_AllocStringBugger error >>> in the previous message, i think most or

Re: [ESS] working directory lost when R session closes

2017-07-17 Thread Martin Maechler
> Paul Johnson > on Fri, 14 Jul 2017 09:31:31 -0500 writes: > Do you notice this: > cd into a folder, say "~/tmp/project/R" and start emacs with a file in > there. The working directory correctly shows "~/tmp/project/R". > Then launch an R

Re: [R] [Rd] setReplaceMethod creates 'object' in the userworkspace

2017-06-27 Thread Martin Maechler
> Jonathan Fritzemeier > on Fri, 23 Jun 2017 16:15:30 +0200 writes: > Hi, > I recognized that the function 'setReplaceMethod' is creating a > character vector in the user workspace having the name (e.g. "newClass") > of

Re: [R] getting error while trying to make dendogram based on gene expression

2017-06-23 Thread Martin Maechler
> Yogesh Gupta > on Wed, 21 Jun 2017 13:42:15 +0900 writes: > I am trying to make dendogram based on gene expression matrix , but getting > some error: > I > countMatrix = read.table("count.row.txt",header=T,sep='\t',check.names=F) >

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Martin Maechler
> David Winsemius > on Wed, 21 Jun 2017 18:04:13 -0700 writes: >> On Jun 21, 2017, at 1:39 PM, Conklin, Mike (GfK) wrote: >> >> I have a Ubuntu server with an R installation that has 384 packages installed. We are trying

[R] Error in readRDS(dest) (was Re: Error with installed.packages with R 3.4.0 on Windows)

2017-05-23 Thread Martin Maechler
> Patrick Connolly > on Tue, 23 May 2017 20:47:22 +1200 writes: > On Mon, 22-May-2017 at 05:43AM -0400, Martin Morgan wrote: > |> On 05/22/2017 05:10 AM, Patrick Connolly wrote: > |> >Apparently it isn't harmless. > |> > > |>

Re: [R] [FORGED] Logical Operators' inconsistent Behavior

2017-05-20 Thread Martin Maechler
> Ramnik Bansal > on Sat, 20 May 2017 08:52:55 +0530 writes: > Taking this question further. > If I use a complex number or a numeric as an operand in logical > operations, to me it APPEARS that these two types are first coerced to > LOGICAL

Re: [R] The effect of tolerance in all.equal()

2017-04-25 Thread Martin Maechler
> Ashim Kapoor > on Tue, 25 Apr 2017 14:02:18 +0530 writes: > Dear all, > I am not able to understand the interplay of absolute vs relative and > tolerance in the use of all.equal > If I want to find out if absolute differences between 2

Re: [R] R-3.4.0 and survival_2.41-3 ..

2017-04-25 Thread Martin Maechler
g "R-x.y.0") release of R and **not** re-use packages {inside R-x.y.z} that were installed with R-x.(y-1).z' .. and of course Uwe is right: We should ask others to do it _and_ do it ourselves. Anyway it _is_ considerably more important for the 3.4.0 release. Martin Maechler ETH Zurich (

Re: [R] Safeguarded Newton method for function minimization

2017-04-19 Thread Martin Maechler
> J C Nash > on Tue, 18 Apr 2017 13:32:52 -0400 writes: > Recently Marie Boehnstedt reported a bug in the nlm() > function for function minimization when both gradient and > hessian are provided. Indeed, on R's Bugzilla here :

Re: [R] Why is options(digits = 1) displays two digits?

2017-03-21 Thread Martin Maechler
> Gerrit Eichner > on Tue, 21 Mar 2017 10:45:13 +0100 writes: > Hi, Tal, > in print.default it says: > digits: > a non-null value for digits specifies the __minimum__ > number of __significant__ digits to be printed in values.

Re: [R] Quantiles with ordered categories

2017-03-16 Thread Martin Maechler
"factors are not allowed" you now get "'type' must be 1 or 3 for ordered factors" > It is probably a little thing to fix, but I lack the skills to do this myself. (Really? -- After seeing the change you will agree it was easy .. ?) Thank you for the suggestion. Best

Re: [R] Principal Coordinate Analysis of unweighted UniFrac distances on R

2017-03-14 Thread Martin Maechler
eers, Bert Bert Gunter [] and *PLEASE* do spell it correctly : "principal", *NOT* 'principle' (I've corrected it in the 'Subject' as I don't want to create another google hit for the wrong spelling ...) Martin Maechler __ R-help@r-proje

Re: [ESS] Ess in emacs on mac

2017-02-27 Thread Martin Maechler
On Mon, Feb 27, 2017 at 7:04 PM, Vitalie Spinu wrote: > > I would agree with that. I think it's pretty safe to make that silent. I don't think that safety is the issue here. Rather "transparency". If ESS changes relatively important options() in R, as an R user I'd rather

Re: [R] Reading S-plus data in R

2017-02-27 Thread Martin Maechler
> Richard M Heiberger > on Sun, 26 Feb 2017 15:46:07 -0500 writes: > Bill, > this looks good. Can you add it to the splus2R package? Well, the natural place would rather be the foreign package, and some of use R core members would be happy with maintaining

Re: [R] RStudio: Place for Storing Options

2017-02-22 Thread Martin Maechler
d (zip and) send along with your e-mail to the experts for diagnosis. > On Thu, 9 Feb 2017, Martin Maechler wrote: >> >>>>>>> Ulrik Stervbo <ulrik.ster...@gmail.com> on Thu, 9 >>>>>>> Feb 2017 14:37:57 + writes:

Re: [R] R scripts attached to e-mails - correct MIME type ?!

2017-02-21 Thread Martin Maechler
> peter dalgaard > on Mon, 20 Feb 2017 19:45:18 +0100 writes: > Not by the mail server as such, no, at least not for that > reason. However, T-bird likely sends .txt as text/plain > and .R as application/octet-stream (or so) and _therefore_ > the

[R] R scripts attached to e-mails - correct MIME type ?!

2017-02-20 Thread Martin Maechler
ld *teach* about the mime type, e.g., for all files ending with extension '.R'... Martin Maechler ETH Zurich, Seminar fuer Statistik, == the provider of all the (standard) R mailing lists. > Em 17-02-2017 17:20, Allan Tanaka escreveu: >> >> See attached for R sc

Re: [R] Is a list an atomic object? (or is there an issue with the help page of ?tapply ?)

2017-02-20 Thread Martin Maechler
> Hervé Pagès > on Tue, 14 Feb 2017 17:10:05 -0800 writes: > Hi, tapply() will work on any object 'X' that has a length > and supports single-bracket subsetting. These objects are > sometimes called "vector-like" objects. Atomic vectors, > lists,

Re: [ESS] FW: Help in compiling ESS

2017-02-20 Thread Martin Maechler
> Sparapani, Rodney > on Wed, 15 Feb 2017 16:59:44 + writes: > Hi Paola: > That is correct. You can’t get around a missing feature > by just not compiling ;o) yes, indeed. {and the other advice, "do not compile it", is actually not such a

Re: [R] RStudio: Place for Storing Options

2017-02-09 Thread Martin Maechler
-help, thank you in advance. We would like to be able to *save*, or sometimes *set* / *reset* such options "in a scripted manner", e.g. for controlled exam sessions. Martin Maechler, ETH Zurich > On Thu, 9 Feb 2017 at 12:35 <g.maub...@weinwolf.de> wrote: >> Hi

Re: [R] graphical behavior of a table of numbers

2017-01-30 Thread Martin Maechler
be less appropriate for the following example. > ## The current behavior of Axis.table makes sense in this example > tt <- as.table(array(c(10,20,30), dimnames=list(c(100, 120, 200)))) > tt > plot(tt) Indeed. I doubt we would want to change Axis.table() just becaus

Re: [R] graphical behavior of a table of numbers

2017-01-30 Thread Martin Maechler
> Duncan Murdoch > on Sun, 29 Jan 2017 06:32:27 -0500 writes: > On 29/01/2017 12:05 AM, Jim Lemon wrote: >> Hi Richard, I think there may be something amiss in the >> plot.table function. As you note, changing the class of >> fr to array

Re: [R] runmed {stat}

2017-01-23 Thread Martin Maechler
re as many odd numbers as integers, so odd numbers should be sufficient ;-) ;-)) Martin Maechler ETH Zurich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Problem installing R 2.12.1 on Mac OS X Yosemite 10.10.5

2017-01-12 Thread Martin Maechler
> David Winsemius > on Wed, 11 Jan 2017 22:45:38 -0800 writes: >> On Jan 11, 2017, at 10:20 PM, David Winsemius wrote: >> >> >>> On Jan 11, 2017, at 4:15 PM, Florence Lui wrote: >>>

Re: [ESS] ess-16.10 / Error 2

2017-01-09 Thread Martin Maechler
the bootstrap. +(list 'progn (list 'defvar var val docstring) + (list 'make-variable-buffer-local (list 'quote var) + + + (provide 'ess-compat) I hope this helps further! Best regards, Martin Maechler ETH Zurich > make[1]: *** [ess-custom.elc] Error 255 > make[1]: Leaving directory

Re: [ESS] feature request : completion of available packages name

2017-01-04 Thread Martin Maechler
the least thanks to all the R-side completion work by Deepayan Sarkar!! Martin > Le mer. 4 janv. 2017 à 08:09, Deepayan Sarkar <deepayan.sar...@gmail.com> a > écrit : >> On Wed, Jan 4, 2017 at 1:52 AM, Martin Maechler >> <maech...@stat.math.ethz.c

Re: [ESS] feature request : completion of available packages name

2017-01-03 Thread Martin Maechler
details about the kind of completion.. notably as emacs / ESS have quite a few different completion possibilities, as we have been told recently here. Martin Maechler ETH Zurich > > Thanks ! > Samuel Barreto > __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [R] histogram first bar wrong position

2016-12-23 Thread Martin Maechler
ted the data for a histogram yourself already; so I personally would again prefer not to use hist(), but to write my own "3 line" function that returns an "histogram" object which I'd call plot(.) on. So, maybe providing such a short function maybe useful, notably on the ?hist hel

Re: [R] histogram first bar wrong position

2016-12-22 Thread Martin Maechler
r data. N <- rpois(100, 5) plot(table(N), lwd = 4) Histograms should be only be used for continuous data (or discrete data with "many" possible values). It's a pain to see them so often "misused" for data like the 'N' above. Martin Maechler, ETH Zurich __

[R] Tomas Kalibera joins the R core team

2016-12-22 Thread Martin Maechler
Foundation in early November, https://stat.ethz.ch/pipermail/r-announce/2016/000609.html For the R core team, Martin Maechler, ETH Zurich ___ r-annou...@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-announce

Re: [R] R studio Problem

2016-12-15 Thread Martin Maechler
> Amelia Marsh via R-help > on Thu, 15 Dec 2016 08:05:44 + writes: > Sorry Mr Gunter. I didn't realize it. > Regards > Amelia In this case, however, it was only the 'Subject' of Amelia's posting and her own "feeling about" the problem which

Re: [ESS] Can't load libraries after upgrading to R 3.3.2

2016-12-13 Thread Martin Maechler
I'm sure this is unrelated to ESS. You did post to R-help, too, right? I suspect the problem is entirely a Mx OS X problem. The error message points to /usr/local/lib/libjags.4.dylibdoes that file exist ? On Tue, Dec 13, 2016 at 5:58 PM, Gonçalo Ferraz wrote: > Hi,

Re: [R] Log plus one transformation in R

2016-12-12 Thread Martin Maechler
> Faradj Koliev > on Mon, 12 Dec 2016 17:23:20 +0100 writes: > Hi all, How do I perform log(x+1) in R? > log1p_trans() from the package ”scales" doesn’t seem to > work for me. amazing that you did not find log1p() in base R.

Re: [ESS] Curly brace indentation

2016-12-08 Thread Martin Maechler
> Jan T Kim via ESS-help > on Tue, 6 Dec 2016 01:11:20 + writes: > Hello All, > since some time, I get the following indentation behaviour: If I type > f <- function(x) > { > return(x * x); > } > > this gets indented as > > f

Re: [ESS] how to edit openbugs model file?

2016-12-03 Thread Martin Maechler
;file local variables" in emacs.. Emacs manuals and also Google "Emacs file local variables" should help. Martin Maechler, ETH Zurich On Fri, Dec 2, 2016 at 8:35 PM, Simon Bonner <sbonn...@uwo.ca> wrote: > Hi Paul, > > An easy way to do this is to rename your f

Re: [R] using conditionals to select rows in data.table

2016-11-22 Thread Martin Maechler
Dear Carl, this came through fine, as text only ... but then I did not see any question anymore. Best regards, Martin Maechler (R core and mailing list "operator") >>>>> Carl Sutton via R-help <r-help@r-project.org> >>>>> on Tue, 22 No

Re: [ESS] trouble with interactive SAS mode in ESS 13.09-1

2016-11-11 Thread Martin Maechler
the trouble you've mentioned, I'm pretty sure that people on this list who do have SAS may be much more motivated to help you. Best regards, Martin Maechler >>>>> Boylan, Ross <ross.boy...@ucsf.edu> >>>>> on Thu, 10 Nov 2016 21:18:28 + writes: > I do

Re: [R] Dealing with -Inf in a maximisation problem.

2016-11-07 Thread Martin Maechler
> William Dunlap via R-help > on Sun, 6 Nov 2016 20:53:17 -0800 writes: > Perhaps the C function Rf_logspace_sum(double *x, int n) would help in > computing log(b). It computes log(sum(exp(x_i))) for i in 1..n, avoiding > unnecessary under- and

Re: [R] Rmpfr into data.frame

2016-11-07 Thread Martin Maechler
-17) [1] TRUE > identical(asNumeric(Pi), as.numeric(Pi)) [1] TRUE > and your case data.frame(a=as.numeric(a), b=as.numeric(b)) As author and maintainer of Rmpfr, I'm curious why you'd be interested to use high-precision numbers in plots, because even double precision is usually far from

Re: [ESS] wget/curl and DOWNLOAD make variable customization ...

2016-11-01 Thread Martin Maechler
> Sparapani, Rodney > on Tue, 25 Oct 2016 17:22:46 + writes: > I haven’t tried it recently. But, at one point, you could > build ESS with DOWNLOAD = true to circumvent the > julia-mode.el download and build ESS without it. Of > course, you

Re: [R] cdf in R give probability of random variable

2016-10-22 Thread Martin Maechler
you do >> >> names(px) <- x >> barplot(px) > Um, unless of course you want the cdf as a step function, > in which case check the help page for plot for possible > values of the type= argument. and if it is

Re: [R] install R in relative path

2016-10-19 Thread Martin Maechler
-3.0.0, R-3.0.1, ..., R-3.2.5 R-3.3.0 R-3.3.1 all in my PATH and all via symbolic links (and ESS = Emacs Speaks Statistics finds all these automagically, so I can each start easily from within Emacs). Martin Maechler ETH Zurich >  The reason I need to do this is to > send R along to

Re: [R] sort()ing strings

2016-10-13 Thread Martin Maechler
> Bob O'Hara > on Thu, 13 Oct 2016 11:55:04 +0200 writes: > Yes, thanks. That seems to be it: > thing <- c("M1", "M2", "M.1", "M.2") >> sort(thing) > [1] "M1" "M.1" "M2" "M.2" which I do find strange, indeed, given your sessionInfo which contains

Re: [R] about data problem

2016-09-21 Thread Martin Maechler
> Joe Ceradini > on Tue, 20 Sep 2016 17:06:17 -0600 writes: > read.csv("your_data.csv", stringsAsFactors=FALSE) > (I'm just reiterating Jianling said...) If you do not have very many columns, and want to become more efficient and knowledgeable, I

Re: [R] Have help list filters changed recently

2016-09-09 Thread Martin Maechler
> Marc Schwartz > on Thu, 8 Sep 2016 22:29:38 -0500 writes: >> On Sep 8, 2016, at 7:35 PM, Bert Gunter wrote: >> >> To all: >> >> r-help has been holding up a lot of my recent messages: Have there >> been any

Re: [R] Fitting Mixture distributions

2016-09-08 Thread Martin Maechler
os 'starting value': The help page shows how to use kmeans() for "somewhat" reliable starts; alternatively, I'd recommend using cluster::pam() to get a start there. I'm glad to hear about experiences using these / comparing these with other approaches. Martin -- Martin Maechler, ETH Z

Re: [R] loading .rda file

2016-08-30 Thread Martin Maechler
> Jeff Newmiller > on Tue, 30 Aug 2016 09:36:05 -0700 writes: > You cannot. However, you can load the file into a dedicated environment to keep those names separated from your global environment. e.g. [1] yes, that's my "famous" only-allowed use of

Re: [R] Error while fitting gumbel copula

2016-08-23 Thread Martin Maechler
mmented and augmented version here: ------ ## From: Isaudin Ismail <isau...@gmail.com> ## To: Martin Maechler <maech...@stat.math.ethz.ch> ## CC: <r-help@r-project.org> ## Subject: Re: [R] Error while fitting gumbel copul

Re: [R] Error while fitting gumbel copula

2016-08-10 Thread Martin Maechler
e examples, e.g., from here http://bit.ly/MRE_R (nice to remember: MRE = Minimal Reproducible Example) or here http://adv-r.had.co.nz/Reproducibility.html then we will be glad to help you, notably I as maintainer of the package 'copula' which you are using (without saying so). With regards, Mar

[R] Diethelm Wuertz (founder 'Rmetrics')

2016-08-10 Thread Martin Maechler
on, Fabian, and their daughter-in-law Viktoria. Our thoughts are with them. Sincerely, Martin Maechler, ETH Zurich (Seminar for Statistics) Adrian Trapletti, Uster Metrics __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://s

Re: [R] No "number of days" format for 'difftime'?

2016-08-08 Thread Martin Maechler
> Loris Bennett > on Mon, 8 Aug 2016 14:12:47 +0200 writes: > Loris Bennett writes: >> Thanks for the link, John. However, there is a hyphen missing. It >> should be: >> >>

Re: [R] lm() silently drops NAs

2016-07-30 Thread Martin Maechler
>>>>> peter dalgaard <pda...@gmail.com> >>>>> on Tue, 26 Jul 2016 23:30:31 +0200 writes: >> On 26 Jul 2016, at 22:26 , Hadley Wickham >> <h.wick...@gmail.com> wrote: >> >> On Tue, Jul 26, 2016 at

<    1   2   3   4   5   6   7   8   9   >