Re: [R] arima/fixed

2021-01-30 Thread Martin Maechler
> Rolf Turner > on Sat, 30 Jan 2021 16:11:32 +1300 writes: > On Fri, 29 Jan 2021 12:47:25 + > Nasia Petsa wrote: >> Dear all, >> >> I have the following problem with determining the argument fixed in >> arima function. What is the length of argument

Re: [R] random numbers with constraints

2021-01-28 Thread Martin Maechler
> Abby Spurdle > on Thu, 28 Jan 2021 08:48:06 +1300 writes: > I note that there's a possibility of floating point errors. > If all values have one digit after the decimal point, you could replace: > qexp (p, rate) with round (qexp (p, rate), 1). > However, sometimes

Re: [ESS] Next steps [OT] Best Practices Emacs / ESS Mini-Webinars

2021-01-28 Thread Martin Maechler via ESS-help
> Liz Hare via ESS-help writes: > Hello, > Going back to our earlier conversation about ensuring the accessibility > of Mini Webinars, I'm able to share MiR's Accessibility Workbook > (attached). > This is of particular interest to blind R users because the RStudio IDE > is

Re: [R] Error when calling (R 4.0.x on Windows) from Python

2021-01-27 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Tue, 26 Jan 2021 12:37:58 +0100 writes: >>>>> Marcel Baumgartner >>>>> on Tue, 26 Jan 2021 08:55:48 +0100 writes: >> Dear all, my colleague posted our issue on stackove

Re: [R] Error when calling R from Python

2021-01-26 Thread Martin Maechler
> Marcel Baumgartner > on Tue, 26 Jan 2021 08:55:48 +0100 writes: > Dear all, my colleague posted our issue on stackoverflow: > Calling R script from Python does not save log file in > version 4 - Stack Overflow >

Re: [R] Meta: R-Help reply-to

2020-12-17 Thread Martin Maechler
> Jeff Newmiller > on Tue, 15 Dec 2020 10:54:00 -0800 writes: > For the record: this is not nearly as cut-and-dried as you > imply. The current settings actually make replying > off-list rather tricky for some mail clients... I have > tried and failed a few times to

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-09 Thread Martin Maechler
> Bert Gunter > on Tue, 8 Dec 2020 14:54:10 -0800 writes: > R and RStudio are separate products developed and > supported by separate organizations, although obviously > there is a large intersection between the > two. Nevertheless, if you think this is an RStudio

Re: [R] Small R documentation bug in ?anyDuplicated

2020-12-07 Thread Martin Maechler
> Bert Gunter > on Sun, 6 Dec 2020 08:23:44 -0800 writes: > All: I did not want to bother R folks for an R Bugzilla > account, so I'll just note what appears to be a > documentation bug here > In R version 4.0.3, ?anyDuplicated says: "anyDuplicated(.) > is a

Re: [ESS] Emacs can find R-devel and R-newest, but not R-4.0.x

2020-11-26 Thread Martin Maechler via ESS-help
s been that the *.Rnw *.Rmd (Sweave, knitr, Rmarkdown, ..) support ("*noweb") in ESS has been deprecated in favor of the new poly-mode based emacs lisp packages. ... and the plan has been that an "ESS+" bundle should be have been ready when ESS is released, where the ESS+ "

Re: [R] [External] Re: unable to access index for repository...

2020-10-09 Thread Martin Maechler
newer version of R and vice verso) and tell us about it. Thank you in advance on being careful and rational about such findings. With regards, Martin Maechler ETH Zurich and R core team > Not knowing how different your versions of maxLik are > between, I will try as I said I wo

Re: [R] how to get a numeric vector?

2020-10-05 Thread Martin Maechler
> Avi Gross via R-help > on Sun, 4 Oct 2020 19:50:43 -0400 writes: > Always hard to tell if THIS is a homework project. As with > most things in R, if you can not find at least a dozen > ways to do it, it is not worth doing. > The question (way below) was how to take

Re: [ESS] Latest Emacs distributions out!

2020-09-18 Thread Martin Maechler via ESS-help
y for ESS to again enable M-x R on Windows (finding the latest released version of R that's available on the machine where I also typically have a dozen versions of R installed). Best regards, Martin Martin Maechler ETH Zurich and R Core team __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [R] find number of consecutive days in NC files by R

2020-09-04 Thread Martin Maechler
Indeed. In addition: Do *not* use suppressWarnings( . ) lightly ! Warnings are there for a good reason, and you should think hard and may be ask for help before "blindly" using suppressWarnings(). Whoever told you to do that routinely has not been a good teacher of R .. Best regar

Re: [R] Odd Results when generating predictions with nnet function

2020-09-02 Thread Martin Maechler
~ ...' and then only has classification examples. So, indeed, the ?nnet help page could improved. In his case, y are counts, so John Tukey's good old "first aid transformation" principle would suggest to model sqrt(y) ~ .. in a *regression* model which nnet() can do. Martin Mae

Re: [R] [FORGED] Dependent Variable in Logistic Regression

2020-08-03 Thread Martin Maechler
> Abby Spurdle > on Sun, 2 Aug 2020 15:13:51 +1200 writes: > That's a bit harsh. Isn't the best advice here, to post a > reproducible example... Which I believe has been > mentioned. > Also, I'd strongly encourage people to use > package+function name, for this

Re: [R] Axis with inverse logarithmic scale

2020-07-28 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Tue, 28 Jul 2020 15:56:10 +0200 writes: >>>>> John Fox >>>>> on Mon, 27 Jul 2020 12:57:57 -0400 writes: >> Dear Dileepkumar R, >> As is obvious from the tick marks, t

Re: [R] Axis with inverse logarithmic scale

2020-07-28 Thread Martin Maechler
> John Fox > on Mon, 27 Jul 2020 12:57:57 -0400 writes: > Dear Dileepkumar R, > As is obvious from the tick marks, the vertical axis is not log-scaled: >> log10(99.999) - log10(99.99) > [1] 3.908865e-05 >> log10(99) - log10(90) > [1] 0.04139269 > That

Re: [R] How to create a readable plot in R with 10000+ values in a dataframe

2020-07-24 Thread Martin Maechler
idea must be easily transferable to grid-based graphics such as ggplot2): help(sunflowerplot) 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 po

Re: [R] how to view and edit this RData file

2020-07-22 Thread Martin Maechler
> Ivan Indeed. An -- underused and not much known -- alternative is to use attach("data.rda") in my view *the only* "legitimate" use of attach() nowadays. Martin Maechler ETH Zurich and R Core team __ R-help@r-project.org m

Re: [R] Unintended behaviour (possibly bugs)

2020-07-02 Thread Martin Maechler
leased more than a month later than my e-mail above... Martin > With best wishes, > Alexey Shipunov > пт, 13 мар. 2020 г. в 18:56, Alexey Shipunov : >> >> Dear Martin, >> >> Great news, thanks! >> >> If you wish, please als

Re: [R] version plot problem

2020-06-30 Thread Martin Maechler
er columns to factors and from this to integers. and this contains the answer to your question, as plot(mok) |-> plot.data.frame(mok) |-> pairs(data.matrix(mok)) and data.matrix(mok) in R 3.6.3 gives 4 warnings and ends in a character matrix. -- And yes, the above new feature

Re: [R] smoothScatter() and the KernSmooth package

2020-06-19 Thread Martin Maechler
> Duncan Murdoch > on Fri, 19 Jun 2020 10:14:19 -0400 writes: > On 19/06/2020 9:59 a.m., Jeffrey Dick wrote: >> Hi Witold, >> >> See also this thread on R-pkg-devel. Quoting Duncan Murdoch, "That >> looks like a bug in grDevices." > Yes, and the bug is still

Re: [R] R 4.0.1/R-devel 2020-06-16-r78702 built with Intel Composer 19.1.1, error in R CMD make check on CentOS 7.7

2020-06-18 Thread Martin Maechler
to me it does not look like Free / Open Source Software so why should I care} In any case, such issues belong more to the R-devel mailing list than R-help. Best regards, Martin Maechler ETH Zurich and R Core team > > || \\UTGERS, |---*O*--

Re: [R] Rstudio does not run on ubuntu 20

2020-06-15 Thread Martin Maechler
> Luigi Marongiu > on Mon, 15 Jun 2020 14:46:38 +0200 writes: > Hello, > all of a sudden rstudio stopped working on ubuntu 20.04. I > re-installed from `rstudio-1.3.959-amd64.deb` but it does not launch > even if there is an icon. On terminal I got: > ``` > $

Re: [R] How to convert European short dates to ISO format?

2020-06-11 Thread Martin Maechler
>>>>> Rich Shepard >>>>> on Thu, 11 Jun 2020 06:29:13 -0700 writes: > On Thu, 11 Jun 2020, Martin Maechler wrote: >> > Look at Hadley Wickham's 'tidyverse' collection as > >> described in R for Data Science. There are date,

Re: [R] How to convert European short dates to ISO format?

2020-06-11 Thread Martin Maechler
for them correctly most of the time. How should they find out at all in the rare cases the automatic guess will be wrong ? Martin Maechler ETH Zurich and R Core team __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

Re: [R] all.equal and use.names

2020-05-28 Thread Martin Maechler
Note: all.equal() with all its S3 methods is implemented entirely in R code, so it should not be hard to find out where things happen and how. > John Harrold > on Wed, 27 May 2020 21:52:16 -0700 writes: > Is there a way to compare t1 and t2 above such that the

Re: [R] Problem with checks on R/4.0.0

2020-05-22 Thread Martin Maechler
e may be differences in how NaN are treated between GNU and MKL >> that >> caused this. Yes, there are such differences. This one is indeed new bug in that version of Lapack which in the mean time has been fixed AFAIK... definitely has been fixed in R's builtin version of Lapack. Martin

Re: [ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-21 Thread Martin Maechler via ESS-help
I've also had 'nowait as my personal default for many years.I find it also more appropriate when showing ESS to others, e.g. when teaching etc. Very importantly in practice: Keep in mind that prefixing i.e. C-u <...> switches to visible (momentarily) which is also handy when demo-ing,

Re: [R] A stopifnot() nastiness, even if not a bug

2020-05-09 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Mon, 13 Apr 2020 22:30:35 +0200 writes: >>>>> William Dunlap >>>>> on Mon, 13 Apr 2020 09:57:11 -0700 writes: >> You can avoid the problem in Martin's example by only giving scalars to

Re: [R] Error in summary.warnings?

2020-05-09 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 8 May 2020 17:37:29 +0200 writes: >>>>> Allison Meisner >>>>> on Thu, 7 May 2020 19:32:36 + writes: > I believe there is an error in the summary.warnings function (typically

Re: [R] Error in summary.warnings?

2020-05-08 Thread Martin Maechler
-- I think you are perfect and I was very imperfect ;-) when I created and tested the function .. This will be fixed in the next versions of R. Thank you very much for the report and the nice concise reproducible example! Best regards, Martin > Allison > -- > A

Re: [R] Warning in install.packages : converting NULL pointer to R NULL

2020-05-08 Thread Martin Maechler
> Rui Barradas > on Fri, 8 May 2020 14:46:45 +0100 writes: > Hello, You are right, > Rscript -e 'install.packages("car")' > doesn't give that message, I will ask RStudio support. > And sorry to spam the list with something I should have > checked, I'm so used to

Re: [ESS] Anyone tried Emacs 27.1 pretest with Windows 10 ?

2020-05-06 Thread Martin Maechler via ESS-help
> Stephen Eglen via ESS-help > on Wed, 06 May 2020 12:23:23 +0100 writes: > Good idea Phil. Also, Kevin -- does it crash with earlier > versions of R? R 4.0.0 just came out so wondering if that > is an additional degree of freedom for bugs to creep in. > Stephen

Re: [R] stats:: spline's method could not be monoH.FC

2020-05-04 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Mon, 4 May 2020 16:25:02 +0200 writes: >>>>> Abby Spurdle >>>>> on Sun, 3 May 2020 16:15:17 +1200 writes: >>> and just today a colleague asked me about spline interpolation

Re: [R] stats:: spline's method could not be monoH.FC

2020-05-04 Thread Martin Maechler
> Abby Spurdle > on Sun, 3 May 2020 16:15:17 +1200 writes: >> and just today a colleague asked me about spline interpolation >> with general 2nd derivative boundary conditions >> s''(x_1) = s2_1, s''(x_n) = s2_2 actually I was wrong... I *read* it as the above, but what

Re: [R] 'closure' (was "stats:: spline's method could not be monoH.FC")

2020-05-04 Thread Martin Maechler
uter function's call). Now the remaining few functions with non-trivial environments that you see in "base R" are those returned by splinefun(), approxfun(), ecdf(), or stepfun() where the last two actually are implemented via approxfun(). -- -- -- I hope this has been useful "

Re: [R] stats:: spline's method could not be monoH.FC

2020-05-02 Thread Martin Maechler
on is fast for larger 'n', thanks to using sparse matrices)... which seems partly a generalization of 'kubik' as it's not only (just) for interpolation and still allows many shape and bound constraints. > citation("cobs") To cite the cobs package in publications use: Pin T. Ng and

Re: [R] [FORGED] Re: pair correlation function of 3D points

2020-05-01 Thread Martin Maechler
k out of a "real" > library (bibliothèque en français, just in case there is any confusion, > "library" and "libraire" being false cognates). But I'm sure you knew that. > I know that insisting on this distinction is being pedantic --- but it

Re: [R] Changes to stats::glm function between R versions 3.4.0 and 3.5.1

2020-04-18 Thread Martin Maechler
both grave and simple to fix enough, and so a change would be for R 4.0.1 Best regards, Martin Maechler ETH Zurich and R Core team __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r

Re: [ESS] R 4.0

2020-04-18 Thread Martin Maechler via ESS-help
> Vitalie Spinu via ESS-help > on Fri, 17 Apr 2020 14:32:50 +0200 writes: > I think we could stick to capital `R-`. A few false positives, if any, > are probably harmless. > Vitalie But on that most-used (non-)operating system, lowercase and uppercase are mostly

Re: [R] A stopifnot() nastiness, even if not a bug

2020-04-13 Thread Martin Maechler
ot this close before releasing R 4.0.0) Martin > Bill Dunlap > TIBCO Software > wdunlap tibco.com > On Mon, Apr 13, 2020 at 9:28 AM Hervé Pagès wrote: >> >> >> On 4/13/20 05:30, Martin Maechler wrote: >>

Re: [R] A stopifnot() nastiness, even if not a bug

2020-04-13 Thread Martin Maechler
>>>>> peter dalgaard >>>>> on Mon, 13 Apr 2020 12:00:38 +0200 writes: > Inline... >> On 13 Apr 2020, at 11:15 , Martin Maechler wrote: >> >>>>>>> Bert Gunter >>>>>>> on Sun, 1

Re: [R] A stopifnot() nastiness, even if not a bug

2020-04-13 Thread Martin Maechler
> Bert Gunter > on Sun, 12 Apr 2020 16:30:09 -0700 writes: > Don't know if this has come up before, but ... >> x <- c(0,0) >> length(x) > [1] 2 > ## but >> stopifnot(length(x)) > Error: length(x) is not TRUE > Called from: top level > ## but >>

Re: [R] Having trouble understanding the sapply/vapply documentation and behaviour of USE.NAMES

2020-04-11 Thread Martin Maechler
> Rolf Turner > on Fri, 10 Apr 2020 12:23:49 +1200 writes: > On 10/04/20 10:59 am, petr smirnov wrote: >> I am having trouble parsing the documentation for sapply >> and vapply, and I cannot understand if it explains the >> different behaviour of USE.NAMES between

Re: [R] Same results but different functions ?

2020-03-23 Thread Martin Maechler
> Michael Dewey > on Mon, 23 Mar 2020 13:45:44 + writes: > The documentation suggests that the rlm method for a formula does not > have psi as a parameter. Perhaps try using the method for a matrix x and > a vector y. > Michael or use lmrob() from pkg

Re: [R] Unintended behaviour (possibly bugs)

2020-03-12 Thread Martin Maechler
", main = "Death Rates in Virginia - 1940", xlab = "rate [ % ]", ylab = "Grouping: Age x Urbanity . Gender") par(op) Thank you, Alexey, for your report and bug fix suggestion! Best regards, Martin Maechler ETH Zurich and R Core team

Re: [R] Strange behaviour of R?

2020-01-17 Thread Martin Maechler
> Sigbert Klinke > on Fri, 17 Jan 2020 09:21:59 +0100 writes: > Hi, > Am 17.01.20 um 08:42 schrieb Rainer M Krug: >> Not for me - macOS, R 3.6.2 > Sorry, I forgot to add: Ubuntu 18.04.3 LTS, R 3.6.2 Sorry but that's very hard to believe, i.e., that such fundamental

Re: [R] date

2019-12-19 Thread Martin Maechler
> John Kane > on Tue, 17 Dec 2019 20:28:17 -0500 writes: > library(lubridate) > gs$dat1 <- mdy(gs$date) there's really no reason for going beyond base R. Using the proper format as per Patrick and Peter's advice (below) is perfectly clear and actually more robust (for the

Re: [R] Help to write the R-code, please

2019-12-06 Thread Martin Maechler
> Richard O'Keefe > on Fri, 6 Dec 2019 12:18:50 +1300 writes: > This particular task is not a problem about R. > It is a problem n combinatorics. > Start with the obvious brute force algorithm > (1) Let S be the union of all the sets > (2) For each K in 0 .. |S|

Re: [R] Global curve fitting/shared parameters with nls() alternatives

2019-11-08 Thread Martin Maechler
rt of every (non-handicapped) R installation. Best, Martin Maechler ETH Zurich and R Core Team > On Tue, 5 Nov 2019 at 20:28, Bert Gunter > wrote: >> A simplified example of what you wish to do might help to >> clarify here. >> >> Here's

[R] "chi-square" | "chi-squared" | "chi squared" | "chi square" ?

2019-10-18 Thread Martin Maechler
even in "R base" package help files (which of course I now could quite quickly change (using Emacs M-x grep, plus a script); but ... "as it is Friday" ... I'm interested to hear what others think, notably if you are native English (or "American" ;-) speaking and/or ha

Re: [R] stats::power.t.test error

2019-10-15 Thread Martin Maechler
> Bert Gunter > on Tue, 15 Oct 2019 07:41:35 -0700 writes: > "...plausible sample sizes i.e. integers." > ?? > f(...) = function that returns a real. > ceiling(f(...)) = function that returns an integer. > The problem is the "plausible" part. Actually,

Re: [R] The "--slave" option ==> will become "--no-echo"

2019-09-27 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Mon, 23 Sep 2019 16:14:36 +0200 writes: >>>>> Richard O'Keefe >>>>> on Sat, 21 Sep 2019 09:39:18 +1200 writes: >> Ah, *now* we're getting somewhere. There is something >> t

Re: [R] The "--slave" option

2019-09-23 Thread Martin Maechler
t;< other alias to --slave, say --subprocess (or --quieter ? or ???) and one could make that the preferred use some time in the future. Well, these were another two hours of time *not* spent improving R technically, but spent reading e-mails, source code, and considering. Maybe well spent

Re: [R] R_BATCH_OPTIONS not respected?

2019-09-10 Thread Martin Maechler
> Marius Hofert > on Mon, 9 Sep 2019 22:38:38 +0200 writes: > Hi, > I typically start R with "--no-restore --no-save" (to avoid .RData > files being written) and would like to have the same behavior under 'R > CMD BATCH'. I use R_BATCH_OPTIONS="--no-restore --no-save"

Re: [R] Cannot load vegan and vcd, "object vI not found"

2019-08-20 Thread Martin Maechler
, when importing from other packages]. I think the error message is not really useful, and indeed I think should *not* happen at this time: 'vI' is not defined here, because earlier the 'pkgInfo' result was not really valid. So I think you may have touched on a "buglet" in R in the sense that fo

Re: [R] R 3.6.1

2019-07-18 Thread Martin Maechler
problem. The last sentence suggests, you did have 3.6.0 installed and you are sure to not have seen such problems ?? In that case even more, we (R core, notably) would be interested to see a minimal repr.ex triggering the problem. (and what is '00UNLOCK' ?) JG> Thanks, JG> -

Re: [R] hist{graphics}

2019-07-15 Thread Martin Maechler
ot; or categorical. We (the R user community, notably the graphically oriented subset) should really strive to keep these concepts and the corresponding visualizations separate as well as possible [and educate the consumers of our graphics if necessary ..] Martin Maechler ETH Zurich and R Core T

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Martin Maechler
t;> multiplication would be a more efficient way to obtain this answer than >> repeated use of a power operator. Of course! .. I was not suggesting it for this case where all powers are needed ! >> On June 18, 2019 8:01:09 AM CDT, Martin Maechler <

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Martin Maechler
> peter dalgaard > on Tue, 18 Jun 2019 11:45:39 +0200 writes: > Sounds like this is isomorphic to reachability in graph > theory. I wonder if > (sum_1^n M^i) > 0 > would suffice? neat! (and I guess correct) > -pd Which reminds me that in the relatively

[R] R-help mailing list archives

2019-06-11 Thread Martin Maechler
rtunately... Should probably remove that link from the R-help info page; it has gone for several years now AFAIK. Martin Maechler ETH Zurich and R Core Team > Nabble returned 2 hits for variations on the search terms > "rgui high dpi 4k"     > http://r.789695.n4.n

Re: [R] Pasting R code lines into labels

2019-06-07 Thread Martin Maechler
itional tweaks that could be made, as Nick may require. > Regards, > Marc ... tweaks which may already be available in curve() / plot.function(). At the time, I had invested many many man hours to tweak them to become as versatile as seemed feasible ... Martin Maechler ETH Zuri

Re: [R] debug only top level function

2019-06-06 Thread Martin Maechler
> Duncan Murdoch > on Thu, 6 Jun 2019 07:38:40 -0400 writes: > On 06/06/2019 6:00 a.m., PIKAL Petr wrote: >> Thanks Duncan. >> >> I think you found it. I have an object called s within my function. I wanted to check it, so I hit "s". This did not bring the object

Re: [R] error in duplicated() man page

2019-05-09 Thread Martin Maechler
> Bert Gunter > on Thu, 9 May 2019 08:46:15 -0700 writes: > Juan: > No, I think there may be a bug: >> duplicated(array(c(1,2,3,2,5,6),c(3,2)), MARGIN=1:2) > [,1] [,2] > [1,] FALSE TRUE > [2,] FALSE FALSE > [3,] FALSE FALSE > ## This is wrong >

Re: [R] approx with NAs

2019-05-08 Thread Martin Maechler
Dear Robert, this is really not asking for help about R but rather wishing for new features of a (very long) existing R function. Hence this is a topic for the 'R-devel' mailing list (https://stat.ethz.ch/mailman/listinfo/R-devel ) rather than 'R-help'; see also

Re: [R] Can't rsync extsoft/3.6 when compiling R 3.6

2019-05-02 Thread Martin Maechler
able browser (such as Emacs), you see Dec 22 2014 3.2 Jun 16 2016 3.3 Jul 6 2016 3.4 -> 3.3 May 8 2017 3.5 -> 3.3 So it seems the CRAN team (or the R Core release master?) forgot to make that symbolic link there. As workaround get the 3.5 version and "call it"

Re: [R] Bug in R 3.6.0?

2019-04-30 Thread Martin Maechler
ta, and RC versions) have *not* seen the bug as they are intuitively smart not to mess with R's working directory in a global R profile file ... For now you definitively have to work around by not doing what's the problem : do *NOT* setwd() in your ~/.Rprofile or other such R init files. Best, Mar

Re: [R] Message produced under R 3.6.0.

2019-04-30 Thread Martin Maechler
> Duncan Murdoch > on Mon, 29 Apr 2019 21:54:47 -0400 writes: > On 29/04/2019 9:44 p.m., Rolf Turner wrote: >> >> On 30/04/19 1:31 PM, Duncan Murdoch wrote: >> >>> On 29/04/2019 9:25 p.m., Duncan Murdoch wrote: On 29/04/2019 8:43 p.m., Rolf Turner

Re: [R] Limiting the scope of RNGkind/set.seed

2019-04-16 Thread Martin Maechler
> Elizabeth Purdom > on Tue, 16 Apr 2019 09:45:45 -0700 writes: > Hi Bert, Thanks for your response. What you suggest is > more or less the fix I suggested in my email (my second > version of .rcolors). I writing more because I was > wondering if there was a better

Re: [R] problem with nls....

2019-03-22 Thread Martin Maechler
the author of that function and its submethods: https://www.rdocumentation.org/packages/robustbase/versions/0.93-4/topics/nlrob Martin Maechler ETH Zurich > -- > Best regards, > Ivan > __ > R-help@r-project.org mai

Re: [R] [FORGED] Re: Issue with t.test

2019-03-21 Thread Martin Maechler
> Rolf Turner > on Wed, 13 Mar 2019 09:38:24 +1300 writes: > On 13/03/19 9:06 AM, Greg Snow wrote: > >> The only time I have seen t.test give a p-value of 1 is when the >> data mean exactly equals the null hypothesis mean and the alternative >> is the default of

Re: [R] Which dependency list to build first?

2019-02-26 Thread Martin Maechler
> Rich Shepard > on Sun, 24 Feb 2019 11:08:43 -0800 writes: > I apologize for the ambiguous subject; I could not think of a more accurate > one. > Updating packages reported that 'later' did not build, but I did not see > which dependency needs updating. Looking at

Re: [R] Unexpected errors in sparse Matrix arithmetic with zero-length dimensions

2019-02-15 Thread Martin Maechler
> Aaron Lun > on Sun, 10 Feb 2019 15:22:17 + writes: > Dear list, > The Matrix package exhibits some unexpected behaviour in its arithmetic > methods for the edge case of a sparse matrix with a dimension of zero > length. The example below is the most

Re: [R] Spacing around \cdot (%.%) unequal in pdf

2019-02-08 Thread Martin Maechler
eaxis(2, at = ypos, labels = pretty10exp(ypos, drop.1=TRUE)) gives a nice plot for me, not using 'cdot' but rather > pretty10exp(ypos, drop.1=TRUE) expression(10^6, 2 %*% 10^6, 3 %*% 10^6) > > Thanks for any hint > Pascal You are welcome! Martin Maechler ETH Zuri

Re: [R] load.wave q

2019-02-01 Thread Martin Maechler
ntained, reproducible code. In both of the above URLs it is mentioned that R-help is archived (in many places): Questions and their answers are there for the R community (of the future) who will find and be able to learn from them. Best, Martin Maechler ETH Zurich and R Core team _

Re: [R] I can't get seq to behave how I think it should

2019-01-18 Thread Martin Maechler
tation. Your example here works because the rounding typically happens to end up with the same binary repr ... this all relies on too many details to be recommendable. Martin Maechler ETH Zurich and R Core team >> -Original Message- >> From: R-help On Beha

Re: [R] Issues with R3.5.2

2018-12-23 Thread Martin Maechler
> Jeff Newmiller > on Sat, 22 Dec 2018 22:31:54 -0800 writes: > You could delete your 3.5 personal package library (using > the File Explorer with Run as Admin if necessary) and > re-install your packages without running as Admin. If that > does not work try

Re: [R] Webshot failed to take snapshot in Ubuntu machine

2018-12-20 Thread Martin Maechler
) will then try to use and somehow fails. I'd recommend you run webshot::install_phantomjs() which then should install a "better" version of the 'phantomjs' executable that then *should* work .. Let us know if this helped (or why not). Best, Martin Maechler ETH Zurich > Le 18/12/20

Re: [R] R plot split screen in uneven panels

2018-12-13 Thread Martin Maechler
> Bert Gunter > on Wed, 12 Dec 2018 08:51:04 -0800 writes: > Incidentally, here is another way to do what (I think) you asked using > layout(): > m <- matrix(c(1,2,2), nrow =1) > layout(m) > plot(1:10, type = "p", main ="The First Plot") > plot(10:1, type =

Re: [R] which() function help page precision

2018-11-16 Thread Martin Maechler
> peter dalgaard > on Fri, 16 Nov 2018 13:39:27 +0100 writes: > Well, "Basically, " is an excuse for not being > accurate. Making the code more complex doesn't really help > the explanation. It could be better to just add "(except > for NA handling)" or so. > -pd

Re: [R] which element is duplicated?

2018-11-13 Thread Martin Maechler
> PIKAL Petr > on Tue, 13 Nov 2018 08:42:22 + writes: > Hi > similar result (with different numerical values) could > be achieved by making v a factor. > > v <- letters[c(2,2,1,2,1,1)] > > vf<-factor(v) > > as.numeric(vf) > [1] 2 2 1 2 1 1 > > Cheers > Petr Yes, as

Re: [R] saveRDS() and readRDS() Why? [solved, kind of]

2018-11-08 Thread Martin Maechler
> Patrick Connolly > on Thu, 8 Nov 2018 20:27:24 +1300 writes: > Many thanks to Berwin, Eric, Robert, and Jan for their input. > > I had hoped it was as simple as because I typed > > saveRDS("rawData", file = "rawData.rds") on the Windows side. > but that wasn't the case. > >

Re: [R] R command prompt newline treatment

2018-11-06 Thread Martin Maechler
> Jeff Newmiller > on Mon, 5 Nov 2018 18:47:00 -0800 writes: > Well, you may or may not have ruled out the Putty settings > (your hand waving is a bit hard for me to interpret), and > there may still be host side terminal settings involved, > or if you compiled R

Re: [ESS] Building 18.10-1 from source

2018-11-01 Thread Martin Maechler via ESS-help
cause MELPA is limited to need that), to be done "real soon". I hope it should happen within a week. Martin Maechler ETH Zurich (and ESS core release manager) __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [R] OT: R version 1.0.1 is still a success.

2018-11-01 Thread Martin Maechler
> Rui Barradas > on Thu, 1 Nov 2018 07:05:54 + writes: > Hello, This has nothing to do with R-help and I apologize > in advance but this is really, really strange. > A SO user is still using R 1.0.1: >

[ESS] ESS 18.10-1 patch released

2018-10-23 Thread Martin Maechler via ESS-help
'ess-eval-region-or-line-visibly-and-step' ('C-RET') which behave as the old versions of 'ess-eval-line-and-step' and 'ess-eval-region-or-line-and-step'. In the name of the ESS core team, Martin Maechler >>>>> Martin Maechler via ESS-help >>>>> on Sat, 20

[ESS] ESS 18.10 released

2018-10-20 Thread Martin Maechler via ESS-help
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 Maechler, ETH Zurich 1 ANNOUNCING ESS The ESS Developers proudly announce the release of ESS

Re: [R] Project in emacs + ess

2018-10-19 Thread Martin Maechler
d issues are tracked here: https://github.com/emacs-ess/ESS/issues/ Last but not least : Welcome to the world of Emacs and ESS ! -- Martin Maechler ETH Zurich (and ESS core team) > Cheers, Bert > Bert Gunter > "The trouble with having an open mind is that people ke

[ESS] Upcoming ESS release 18.10 -- please (beta)test prerelease

2018-10-10 Thread Martin Maechler via ESS-help
/ESS/issue both to see if your issue has already been reported and to open a new issue there. If you are unsure about new philosophy etc, please use this mailing list to ask for help etc. For the ESS core team, Martin Maechler ETH Zurich --- (1) After download, if you want to check the

[ESS] Upcoming ESS release 18.10 -- please (beta)test prerelease

2018-10-10 Thread Martin Maechler via ESS-help
/ESS/issue both to see if your issue has already been reported and to open a new issue there. If you are unsure about new philosophy etc, please use this mailing list to ask for help etc. For the ESS core team, Martin Maechler ETH Zurich --- (1) After download, if you want to check the

Re: [R] For Loop

2018-09-25 Thread Martin Maechler
> Wensui Liu > on Sun, 23 Sep 2018 13:26:32 -0500 writes: > what you measures is the "elapsed" time in the default > setting. you might need to take a closer look at the > beautiful benchmark() function and see what time I am > talking about. > I just provided

Re: [ESS] Stopping "Save workspace image?" prompt

2018-09-23 Thread Martin Maechler via ESS-help
emacs > file should do it. Yes, indeed. I have that set for > 10 years. Actually, I have '(inferior-R-args "--no-restore-history --no-save ") in my (custom-set-variables ... ) list at the end of my ~/.emacs Martin Maechler > > Best regards, > > Jeremie >

Re: [R] Link from vignette to package documentation

2018-09-22 Thread Martin Maechler
package (*.Rmd or *.Rnw) vignettes to help pages of the same package is also not easily and portably possible AFAICS. Both would be desirable quite desirable for improved R documentation and ideally so in a way that could also work with an internet connection. [and if we continue this,

Re: [R] Smallest Space Analysis (SSA) in R

2018-09-21 Thread Martin Maechler
> Eric Berger > on Thu, 20 Sep 2018 23:28:27 +0300 writes: > Hi Andrew, > I don't have any experience in this area but I was intrigued by your > question. Here is what I learned. > 1, A bit of poking around turned up a thread on stats.stackexchange that >

Re: [R] Account for a factor variability in a logistic GLMM in lme4

2018-09-04 Thread Martin Maechler
by that mistake: Only considering the '1's and not considering the '0's in the data (visualised and shown to the decision making experts). See, e.g., https://priceonomics.com/the-space-shuttle-challenger-explosion-and-the-o/ (couldn't easily find a more academic / reliable source wh

Re: [R] Prevent Printing Function's Environment

2018-08-14 Thread Martin Maechler
> Abs Spurdle > on Tue, 14 Aug 2018 15:16:08 +1200 writes: > Hi All > When you print a function constructed within a function, R > prints it's environment. For example: > > myfunction = function () > + { f = function () NULL > + attributes (f) =

Re: [R] Fwd: Help with finalfit and knitr

2018-08-08 Thread Martin Maechler
> Bert Gunter > on Wed, 8 Aug 2018 08:21:05 -0700 writes: > (From Jeff Newmiller) "My advice is to enter one line of > each example at a time and study what it does before > proceeding to the next line. Copying whole swathes of code > and marveling at the result is

Re: [R] loop over matrix: subscript out of bounds

2018-08-08 Thread Martin Maechler
> Eric Bergeron Wed, 8 Aug 2018 12:53:32 +0300 writes: > You only need one "for loop" > for(i in 2:nrow(myMatrix)) { >myMatrix[i-1,i-1] = -1 >myMatrix[i-1,i] = 1 > } > > HTH, > Eric and why are you not using Enrico Schumann's even nicer solution (from August 6) that I had

Re: [R] loop over matrix: subscript out of bounds

2018-08-07 Thread Martin Maechler
> Thanks for help! > However, changing the index from i to j for the column vector changes the > output. I would like the matrix to be the following: > -1 1 0 0 0 0 0 > 0 -1 1 0 0 0 0 > 0 0 -1 1 0 0 0 > . > etc. > How to code it? as Enrico Schumann showed you: Without any loop, a very

<    1   2   3   4   5   6   7   8   9   >