Re: [Rd] [EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments

2024-02-06 Thread Izmirlian, Grant (NIH/NCI) [E] via R-devel
org> Subject: [EXTERNAL] Re: [Rd] NOTE: multiple local function definitions for ?fun? with different formal arguments Thanks. Workarounds are interesting but... what's the point of the NOTE in the first place? H. On 2/4/24 09:07, Duncan Murdoch wrote: On 04/02/2024 10:55 a.m., Izmirlian, G

Re: [Rd] [EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments

2024-02-06 Thread Izmirlian, Grant (NIH/NCI) [E] via R-devel
function definitions for ?fun? with different formal arguments Thanks. Workarounds are interesting but... what's the point of the NOTE in the first place? H. On 2/4/24 09:07, Duncan Murdoch wrote: On 04/02/2024 10:55 a.m., Izmirlian, Grant (NIH/NCI) [E] via R-devel wrote: Well you can see that yeast

[Rd] NOTE: multiple local function definitions for ?fun? with different formal arguments

2024-02-04 Thread Izmirlian, Grant (NIH/NCI) [E] via R-devel
Well you can see that yeast is exactly weekday you have. The way out is to just not name the result toto <- function(mode) { ifelse(mode == 1, function(a,b) a*b, function(u, v, w) (u + v) / w) } From: Grant Izmirlian Date: Sun, Feb 4,