Re: [R] Integer division

2022-12-21 Thread Martin Maechler
ding versions of div() and mod() functions, I'd say, and I'd guess these would already exist somewhere. Yesterday, I've updated the ?Arithmetic help page which now does mention (more clearly if it was really already derivable from the previous doc) what happens, also mentioning

Re: [R] Printing special characters

2023-01-16 Thread Martin Maechler
> Rui Barradas > on Mon, 16 Jan 2023 08:46:43 + writes: > Às 08:31 de 16/01/2023, Jeff Newmiller escreveu: >> Use the Cairo PDF device? >> >> On January 16, 2023 12:18:48 AM PST, Dennis Fisher >> wrote: >>> R 4.2.2 OS X >>> >>> Colleagues >>>

Re: [R] Flickering when scrolling in R graphics windows

2023-01-24 Thread Martin Maechler
> Ziyun Tang > on Sat, 21 Jan 2023 15:14:15 -0500 writes: > Hello, I have been experiencing some issues regarding scrolling with > the mouse or trackpad in R graphics windows (from the base graphics > package), which sometimes results in flickering, and wanted to see if

Re: [R] "prob" package alternative

2023-04-06 Thread Martin Maechler
> peter murage > on Tue, 4 Apr 2023 06:24:56 + writes: > Which package in R replaced package prob? Well, if you google that you should quickly be lead to (something I even think makes sense to memorize as "rule" package= ) : https://CRAN.R-project.org/package=prob which

Re: [R] Regex Split?

2023-05-05 Thread Martin Maechler
"w" "o" "; " "t" "h" "r" "e" "e" "!" >> gsub(pattern="[[:<:]]", "#", "One, two; three!", perl=TRUE) > [1] "#One, #two; #three!" [...] [...] Maybe this should

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 wrote:

Re: [R] Bug in R 3.6.0?

2019-04-30 Thread Martin Maechler
ms all R core (and other R expert users who have tried R 3.6.0 alpha, beta, 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 p

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] 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 https://www.r-project.org/mail.h

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

Re: [R] Pasting R code lines into labels

2019-06-07 Thread Martin Maechler
are likely additional 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 Ma

[R] R-help mailing list archives

2019-06-11 Thread Martin Maechler
22 page from GMANE. Yes, unfortunately... 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"    

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 dista

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Martin Maechler
ith >> 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] hist{graphics}

2019-07-15 Thread Martin Maechler
er-like" 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 an

Re: [R] R 3.6.1

2019-07-18 Thread Martin Maechler
no one knows about this 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' ?)

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

2019-08-20 Thread Martin Maechler
recursively, 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 &quo

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] The "--slave" option

2019-09-23 Thread Martin Maechler
in the future ?) So, all those who want to restrict their language could use '-s' for now. In addition, we could add >> one << other alias to --slave, say --subprocess (or --quieter ? or ???) and one could make that the preferred use some time in the future. Well, th

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

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, power.t.

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

2019-10-18 Thread Martin Maechler
squared"; but as I mentioned, I still find all 4 variants 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

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

2019-11-08 Thread Martin Maechler
ages and hence is part 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. >>

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|

[R] Asking about R "Security" ..

2023-05-17 Thread Martin Maechler
> Ivan Krylov > on Wed, 17 May 2023 11:52:27 +0300 writes: > В Tue, 16 May 2023 13:47:19 + > "MAJID, Ayesha \(NHS ENGLAND - X26\) via R-help" [ . ] [ . ] [ .. helpful & useful answers / pointers to public information .. ] [ . ] [ .

Re: [R] error in arfima...

2023-06-01 Thread Martin Maechler
wrapper. In other words arfima() calls fracdiff::fracdiff() and the error happens there --- for you, but not for me, if I try to use the same data as you. I see that you must have found that too, because you mentioned View(environment(fracdiff)$.fdcov) Maybe you need to

Re: [R] error in arfima...

2023-06-05 Thread Martin Maechler
rms typically memory protection/allocation/... bugs] fracdiff itself has also been updated (to 1.5-2) but that was really only a compiler warning, not a bug fix, and I cannot imagine that that makes the difference. I think you should consider let your 'Windows Server' provider update R

Re: [R] error in arfima...

2023-06-09 Thread Martin Maechler
should I raise a bug report? If yes, how( I never raised one)? We don't know yet if there is any bug, see above. Martin > THanking you, > Yours sincerely, > AKSHAY M KULKARNI > > From: Martin Maechler > S

Re: [R] warnng to an error....

2023-06-19 Thread Martin Maechler
> akshay kulkarni > on Sat, 17 Jun 2023 18:35:53 + writes: > Dear Bert, Duncan's theory is workingprobably the same > as yours... "theory" .. well *truth*. Note that I wrote a blog post I had hope would be read more ( --> and be cited more .. when helping peopling

Re: [R] printCoefmat() and zap.ind

2023-07-07 Thread Martin Maechler
> Shu Fai Cheung > on Thu, 6 Jul 2023 17:14:27 +0800 writes: > Hi All, > I would like to ask two questions about printCoefmat(). Good... this function, originally named print.coefmat(), is 25 years old (in R) now: --

Re: [R] printCoefmat() and zap.ind

2023-07-07 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 7 Jul 2023 18:12:24 +0200 writes: >>>>> Shu Fai Cheung >>>>> on Thu, 6 Jul 2023 17:14:27 +0800 writes: >> Hi All, >> I would like to ask two questions about prin

Re: [R] Variable and value labels

2023-07-12 Thread Martin Maechler
> Anupam Tyagi > on Wed, 12 Jul 2023 09:18:55 +0530 writes: > Hello, > is there an easy way to do variable and value labels (for > factor variables) in base-R, without using a package. Yes, there are many. How many help pages (in R , i.e. base-R) did you consult? Very

Re: [R] change language at console

2023-07-19 Thread Martin Maechler
compatíveis" ru "несовместимые размерности" tr "uyumsuz boyutlar" zh_CN "维度不相配" zh_TW "維度不符合" > (nTrans <- length(unique(txts))) [1] 12 > (not_translated <-

Re: [R] Style guide when using "R" in a title

2023-07-27 Thread Martin Maechler
> Bert Gunter > on Wed, 26 Jul 2023 16:05:32 -0700 writes: > https://www.r-project.org/logo/ > Cheers, Bert Well, I tend to disagree. He did not say he'd want to use the R logo and there is really nobody saying that "you should". Using the letter 'R' as are regular word (n

Re: [R] Numerical stability of: 1/(1 - cos(x)) - 2/x^2

2023-08-16 Thread Martin Maechler
> Iris Simmons > on Wed, 16 Aug 2023 02:57:48 -0400 writes: > You might also be able to rewrite > log(1 - cos(x)) > as > log1p(-cos(x)) > On Wed, Aug 16, 2023, 02:51 Iris Simmons wrote: >> You could rewrite >> >> 1 - cos(x) >> >> as >

Re: [R] Numerical stability of: 1/(1 - cos(x)) - 2/x^2

2023-08-17 Thread Martin Maechler
> Leonard Mada > on Wed, 16 Aug 2023 20:50:52 +0300 writes: > Dear Iris, > Dear Martin, > Thank you very much for your replies. I add a few comments. > 1.) Correct formula > The formula in the Subject Title was correct. A small glitch swept into > the last f

Re: [R] MASS::mvrnorm() on MKL may produce different numbers even when the seed is the same?

2023-08-18 Thread Martin Maechler
high desideratum for all scientists and I hope also for all data "wranglers" etc.. Martin -- Martin Maechler ETH Zurich and R Core team > On Wed, Aug 16, 2023 at 8:11 PM Shu Fai Cheung > wrote: >> Hi All, >> >> When addressing an error in

Re: [R] [Pkg-Collaboratos] BioShapes Almost-Package

2023-09-04 Thread Martin Maechler
> Jeff Newmiller > on Sun, 03 Sep 2023 19:47:32 -0700 writes: > Leonard... the reason roxygen exists is to allow markup in > source files to be used to automatically generate the > numerous files required by standard R packages as > documented in Writing R Extensions.

Re: [R] [Pkg-Collaboratos] BioShapes Almost-Package

2023-09-04 Thread Martin Maechler
> Duncan Murdoch > on Mon, 4 Sep 2023 04:51:32 -0400 writes: > On 03/09/2023 10:47 p.m., Jeff Newmiller wrote: >> Leonard... the reason roxygen exists is to allow markup >> in source files to be used to automatically generate the >> numerous files required by standard

Re: [R] Time out error while connecting to Github repository

2023-09-04 Thread Martin Maechler
> siddharth sahasrabudhe via R-help > on Sun, 3 Sep 2023 09:54:28 +0530 writes: > I want to access the .csv file from my github > repository. While connecting to the Github repository I am > getting the following error: > Error in curl::curl_fetch_memory(file) : Timeo

Re: [R] Regarding error in RStudio

2023-09-06 Thread Martin Maechler
utside RStudio, you definitely need to get help from the RStudio community. Hoping that helps some steps further. Best regards, Martin -- Martin Maechler ETH Zurich and R Core team __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] save() and load(): *prefer* saveRDS() and readRDS()

2023-09-26 Thread Martin Maechler
> Jeff Newmiller via R-help > on Mon, 25 Sep 2023 18:46:02 -0700 writes: > You never created any object in R called irisdataTest. Objects in the global environment have names that are unrelated to the names of files on disk. > The load function modifies an environment to crea

Re: [R] stopping R emails

2023-10-19 Thread Martin Maechler
e the msg copied there before you manage > to unsubscribe. > With condolences, > John Nash >From me, as well. Jim Lemon has been one of the frequent really *friendly* and patient "helpers" to many who have searched for support and help on the R mailing lists (R-h

Re: [R] running crossvalidation many times MSE for Lasso regression

2023-10-23 Thread Martin Maechler
> Jin Li > on Mon, 23 Oct 2023 15:42:14 +1100 writes: > If you are interested in other validation methods (e.g., LOO or n-fold) > with more predictive accuracy measures, the function, glmnetcv, in the spm2 > package can be directly used, and some reproducible examples are

Re: [R] The argument 'eps.Pvalue' of `printCoefmat()`

2023-10-30 Thread Martin Maechler
> Duncan Murdoch > on Sun, 29 Oct 2023 04:45:19 -0400 writes: > On 29/10/2023 3:48 a.m., Shu Fai Cheung wrote: >> Hi all, >> >> Just a minor issue that I am not sure whether this is >> considered a "bug." It is about the help page. >> >> In the help page

Re: [R] Dynamically create a (convenience) function in a package

2023-10-30 Thread Martin Maechler
> Iris Simmons > on Mon, 30 Oct 2023 06:37:04 -0400 writes: > If you don't know the name of the attributes in advance, > how can you know the function name to be able to call it? > This seems like a very flawed approach. > Also, I would discourage the use of eval(pars

Re: [R] strptime with +03:00 zone designator

2023-11-06 Thread Martin Maechler
> Richard O'Keefe > on Mon, 6 Nov 2023 18:37:34 +1300 writes: > Thanks to all who replied. On Mon, 6 Nov 2023 at 18:37, > Richard O'Keefe wrote: >> OK, so the consensus is (1) One cannot make strptime >> accept ISO8601-compliant zone designators (2) The >> lubri

Re: [R] Concordance and Kendall's tau in copula

2023-11-07 Thread Martin Maechler
x27;useR! Springer series book, as it's the only "real" book, I've been a coauthor.. https://copula.r-forge.r-project.org/book/ } -- Martin Maechler ETH Zurich and R Core team __ R-help@r-project.org mailing list -- To UNSUBSCRIBE a

Re: [R] Dependency errors for package pracma

2023-11-09 Thread Martin Maechler
> Hans W > on Thu, 9 Nov 2023 12:22:52 +0100 writes: > What really interests me: > With all those strict checking procedures, how is it possible that the > new 'Matrix' version got accepted on CRAN? There > 2000 reverse dependencies for Matrix. We have had some (in thems

Re: [R] Convert character date time to R date-time variable.

2023-12-08 Thread Martin Maechler
> Ebert,Timothy Aaron > on Thu, 7 Dec 2023 16:29:09 + writes: > Look at the lubridate package in R. Regards, Tim Absolutely *un*needed here !! - as others mention in this thread. Very simple with base R: > strptime("2020-09-17_00:00:00", format = "%Y-%m-%d_%H:%M:%S") [

Re: [R] Use of geometric mean .. in good data analysis

2024-01-22 Thread Martin Maechler
> Rich Shepard > on Mon, 22 Jan 2024 07:45:31 -0800 (PST) writes: > A statistical question, not specific to R. I'm asking for > a pointer for a source of definitive descriptions of what > types of data are best summarized by the arithmetic, > geometric, and harmonic m

Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-14 Thread Martin Maechler
> Berwin A Turlach > on Wed, 14 Feb 2024 11:47:41 +0800 writes: > Berwin A Turlach > on Wed, 14 Feb 2024 11:47:41 +0800 writes: > G'day Philipp, > On Tue, 13 Feb 2024 09:59:17 +0100 gernophil--- via R-help > wrote: >> this question is related to this

Re: [R] converting MATLAB -> R | element-wise operation

2024-03-01 Thread Martin Maechler
> Berwin A Turlach > on Wed, 28 Feb 2024 17:42:27 +0800 writes: > On Tue, 27 Feb 2024 13:51:25 -0800 Jeff Newmiller via > R-help wrote: >> The fundamental data type in Matlab is a matrix... they >> don't have vectors, they have Nx1 matrices and 1xM >> matrices.

Re: [R] Building Packages.

2024-03-21 Thread Martin Maechler
> "Duncan Murdoch on Wed, 20 Mar 2024 13:20:12 -0400 writes: > On 20/03/2024 1:07 p.m., Duncan Murdoch wrote: >> On 20/03/2024 12:37 p.m., Ben Bolker wrote: >>> Ivan, can you give more detail on this? I've heard this >>> issue mentioned, but when I open RStudio and run >>>

Re: [R] Building Packages.

2024-03-21 Thread Martin Maechler
> Ben Bolker > on Wed, 20 Mar 2024 13:25:33 -0400 writes: >Hmm, looks platform-specific. Under Linux both RStudio > and external R console return > a0b52513622c41c11e3ef57c7a485767 > for digest::digest(install.packages) Well, platform-specific maybe, notably pr

Re: [R] x[0]: Can '0' be made an allowed index in R?

2024-04-23 Thread Martin Maechler
> Ben Bolker > on Sun, 21 Apr 2024 10:23:50 -0400 writes: > Also https://cran.r-project.org/package=Oarray (which is older and > hence possibly more stable) also maintained and written by a careful and really good person. I do recommend Oarray as well. Martin BB> On

Re: [R] error when trying to install {rgdal} on Windows

2024-04-30 Thread Martin Maechler
[I have fixed your subject: "text" is really on of the most unuseful subjects we've ever seen on this list ... ] > Farzad Ghooshi on Sun, 28 Apr 2024 12:17:34 +0330 writes: > Hi dear friend I use rgdal package for shape files. > When installing the package, it gives me the following > error

Re: [R] Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?

2024-05-06 Thread Martin Maechler
> DynV Montrealer > on Fri, 3 May 2024 10:39:10 -0400 writes: > It's exactly what I was looking for, thanks. I'm replying > to the whole list so others can skip this question, to not > waste time on it. good. > Bonne fin de journée de Montréal (nous sommes le matin

[R] Altrep and translations (was " Description of error is untranslated when ....")

2024-05-14 Thread Martin Maechler
de R-core *and* at first just in a separate branch before being merged in to the main (r-devel) branch. OTOH: There may be good reasons for translations lookup being brittle in case of altrep error messages .. and hence left off purposely? Martin -- Martin Maechler ETH Zurich and R Core Te

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Martin Maechler
ly think that in June 2024 you (Ogbos) should not run "productively" an R version that is older than May 2021 (where R 4.1.0 was released) : $ R-4.1.0 --version | head 1 R version 4.1.0 (2021-05-18) -- "Camp Pontanezen" $ R-4.1.0 --vanilla -s -e '1:10|>sum()'

Re: [R] "--" < 0

2024-06-25 Thread Martin Maechler
> Adrian Dusa > on Tue, 25 Jun 2024 10:56:07 +0300 writes: > Dear R fellows, >> From time to time, just when I thought I knew my R, I get >> bitten by some > small things that reminds one to constantly return to the > basics. > I knew for instance that "-1" <

Re: [R] Automatic Knot selection in Piecewise linear splines

2024-07-16 Thread Martin Maechler
> Anupam Tyagi > on Tue, 9 Jul 2024 16:16:43 +0530 writes: > How can I do automatic knot selection while fitting piecewise linear > splines to two variables x and y? Which package to use to do it simply? I > also want to visualize the splines (and the scatter plot) with a

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Martin Maechler
> Ivan Krylov via R-help > on Fri, 9 Aug 2024 15:23:58 +0300 writes: > В Thu, 8 Aug 2024 12:43:23 +0530 > Anupam Tyagi пишет: >> In open.connection(con, "rb") : >> URL >> 'https://api.worldbank.org/v2/en/country/OED/indicator/NY.ADJ.NNAT.GN.ZS?format=json&date=1

Re: [R] fixed set.seed + kmeans output disagree on distinct platforms

2024-09-04 Thread Martin Maechler
> Bert Gunter > on Tue, 3 Sep 2024 23:32:25 -0700 writes: > I have no clue, but I did note that you are using different versions of > BLAS/LAPACK on the different platforms. Could that be (part) of the issue? Good catch! My gut feeling would say "yes!" that is almost surely

Re: [R] effects() extractor for a quantile reqression object: error message

2024-09-06 Thread Martin Maechler
x27;rq.object' help page) and it was "predict" that was meant there, as indeed there is a predict method (actually there are even 3 different predict() methods in package 'quantreg', and they are well documented on the ?predict.qr help page. {OTOH my guess is that there o

Re: [R] BUG: atan(1i) / 5 = NaN+Infi ?

2024-09-06 Thread Martin Maechler
st messing with infinities... use atan2() if you don't actually need complex arithmetic. >> >> On September 5, 2024 3:38:33 PM PDT, Bert Gunter wrote: >> >> complex(real = 0, imaginary = Inf) >> >[1] 0+Infi >> > >> >>

Re: [R] BUG: atan(1i) / 5 = NaN+Infi ?

2024-09-06 Thread Martin Maechler
> Duncan Murdoch > on Fri, 6 Sep 2024 05:54:23 -0400 writes: > On 2024-09-06 12:44 a.m., Richard O'Keefe wrote: >> I expect that atan(1i) = (0 + infinity i) and that atan(1i)/5 = (0 + >> infinity i)/5 = (0 + infinity i). >> Here's what I get in C: >> (0,1) = (0, 1)

Re: [R] BUG: atan(1i) / 5 = NaN+Infi ?

2024-09-07 Thread Martin Maechler
n > What really annoys me is that I wrote an entire technical > report on (some of the) problems with complex arithmetic, > and this whole "just treat x as (x, +0.0)" thing > completely failed to occur to me as something anyone might &g

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

Re: [R] Unintended behaviour (possibly bugs)

2020-03-12 Thread Martin Maechler
, bg = "skyblue", 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

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 robustbas

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 the

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] 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, 12 Apr

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

2020-04-13 Thread Martin Maechler
bly not 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: &g

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

2020-04-18 Thread Martin Maechler
hange is 4.0.0, but almost surely your problem would not be 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,

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

2020-05-01 Thread Martin Maechler
a book 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 ---

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

2020-05-02 Thread Martin Maechler
so ask for monotonicity, convexity, concavity of s() and for bound constraints in different regions (and the implementation 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

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

2020-05-04 Thread Martin Maechler
inside other functions which are very short lived (during the evaluation of the outer 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 t

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] 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] 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: [R] Error in summary.warnings?

2020-05-08 Thread Martin Maechler
thing? No -- 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 > -- &

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

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

2020-05-22 Thread Martin Maechler
;> There 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

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] How to convert European short dates to ISO format?

2020-06-11 Thread Martin Maechler
g software that does guess it 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 UNSUBSCRI

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

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: > ``` > $ r

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
oser', and 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, |-

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] version plot problem

2020-06-30 Thread Martin Maechler
onverts character 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 ab

Re: [R] Unintended behaviour (possibly bugs)

2020-07-02 Thread Martin Maechler
0.0 was released 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,

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

2020-07-22 Thread Martin Maechler
; Best regards, > 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-

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

2020-07-24 Thread Martin Maechler
nflower plot (base graphics, but the 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/mail

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 is

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

<    1   2   3   4   5   6   7   8   9   >