[Rd] as.roman upper limit

2024-02-13 Thread Jonathan Carroll
I was recently participating in a coding challenge which involved converting integers to Roman numerals. I knew R offers this functionality already via as.roman() and hoped to leverage that for a quick solution, but was surprised that one of the challenge's tests failed; conversion of the number

Re: [Rd] make.unique rbind examples

2019-02-20 Thread Jonathan Carroll
at.ethz.ch/pipermail/r-devel/2013-May/066727.html Regards, - Jonathan. On Mon, 11 Feb. 2019, 9:19 pm Jonathan Carroll, wrote: > The final two examples in ?make.unique do not appear to be relevant to > that function, namely > > rbind(data.frame(x = 1), data.frame(x = 2), data.frame(x = 3)) &g

[Rd] make.unique rbind examples

2019-02-11 Thread Jonathan Carroll
The final two examples in ?make.unique do not appear to be relevant to that function, namely rbind(data.frame(x = 1), data.frame(x = 2), data.frame(x = 3)) rbind(rbind(data.frame(x = 1), data.frame(x = 2)), data.frame(x = 3)) both producing x 1 1 2 2 3 3 (identically) on R 3.4.3 and 3.5.1.

[Rd] [patch] Documentation for list.files when no matches found

2019-01-06 Thread Jonathan Carroll
Apologies in advance if this is already known but a search of the r-devel archive did not immediately turn up any mentions. list.files() (and thus dir()) returns character(0) when no files are found in the requested path. This is useful and expected behaviour as length(dir()) can be tested for

Re: [Rd] RFC: (in-principle) native unquoting for standard evaluation

2017-03-18 Thread Jonathan Carroll
ect without use of substitute(). Kind of like how '*' in C declares a >> pointer and dereferences one. >> >> subset <- function(x, @subset, ...) { } >> >> This should make it easier to implement such functions, simplify >> compilation, and allow detection of potenti

Re: [Rd] RFC: (in-principle) native unquoting for standard evaluation

2017-03-17 Thread Jonathan Carroll
quoting errors through static analysis. Michael On Thu, Mar 16, 2017 at 5:03 PM, Jonathan Carroll <j...@jcarroll.com.au> wrote: (please be gentle, it's my first time) I am interested in discussions (possibly reiterating past threads -- searching didn't turn up much) on the possibilit

[Rd] RFC: (in-principle) native unquoting for standard evaluation

2017-03-16 Thread Jonathan Carroll
(please be gentle, it's my first time) I am interested in discussions (possibly reiterating past threads -- searching didn't turn up much) on the possibility of supporting standard evaluation unquoting at the language level. This has been brought up in a recent similar thread here [1] and on