similar to: R-help Digest, Vol 46, Issue 27

Displaying 20 results from an estimated 50000 matches similar to: "R-help Digest, Vol 46, Issue 27"

2024 Feb 06
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
Because functions get called and therefore, the calling sequence matters. It?s just protecting you from yourself, but as someone pointed out, there?s a way to silence such notes. G From: Herv? Pag?s <hpages.on.github at gmail.com> Sent: Tuesday, February 6, 2024 2:40 PM To: Izmirlian, Grant (NIH/NCI) [E] <izmirlig at mail.nih.gov>; Duncan Murdoch <murdoch.duncan at gmail.com>;
2024 Feb 06
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
Here's a dummy example that I think illustrates the problem: toto <- function() { if (runif(1) < 0.5) function(a) a else function(a,b) a+b } > fcn <- toto() > fcn(1,2) [1] 3 > fcn <- toto() > fcn(1,2) [1] 3 > fcn <- toto() > fcn(1,2) Error in fcn(1, 2) : unused argument (2) How can you use the returned function, if you get different arguments?
2024 Feb 04
1
NOTE: multiple local function definitions for ?fun? with different formal arguments
On 04/02/2024 10:55 a.m., Izmirlian, Grant (NIH/NCI) [E] via R-devel wrote: > Well you can see that yeast is exactly weekday you have. The way out is to just not name the result I think something happened to your explanation... > > toto <- function(mode) > { > ifelse(mode == 1, > function(a,b) a*b, > function(u, v, w) (u + v) / w) > } It's
2024 Feb 06
2
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, Grant (NIH/NCI) [E] via R-devel > wrote: >> Well you can see that yeast is exactly weekday you have.? The way out >> is to just not name the result > > I think something happened to your
2024 Feb 04
1
NOTE: multiple local function definitions for ?fun? with different formal arguments
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 <izmirlidroid at gmail.com> Date: Sun, Feb 4, 2024, 10:44 AM To: "Izmirlian, Grant (NIH/NCI) [E]"
2024 Feb 07
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
I put the idea below into a function that gives nicer looking results. Here's the new code: dupnames <- function(path = ".") { Rfiles <- pkgload:::find_code(path) allnames <- data.frame(names=character(), filename=character(), line = numeric()) result <- NULL for (f in Rfiles) { exprs <- parse(f, keep.source = TRUE) locs <-
2024 Jan 29
0
DescTools::Quantile
It looks like a homework assignment. It also looks like you didn't read the documentation carefully enough. The 'len.out' argument in seq is solely for specifying the length of a sequence. The 'quantile' function omputes the empirical quantile of raw data in the vector 'x' at cumulative probabilit(y)(ies) given in the weights' argument, with interpolation I'm
2020 Oct 05
1
R-help Digest, Vol 212, Issue 4
Hi -- there are lots of replies --I have not read them all, if someone else suggested this, sorry for duplication. This is similar to the suggestion using mapply, but not specific to matrices. In fact it's a kludge that applies to many settings. You 'sapply' over the index 1:2, and pass a, b as arguments: a <- c(1,4) b <- c(5,8) sapply(1:2, FUN=function(x, a, b)a[x]:b[x],
2016 Jun 20
2
xxx not available for .C in package yyy
Hi R package developers. This is literally the strangest thing I've ever seen. Latest (as of a month ago) R under cygwin64. I'm teaching an intern package building and using the .C interface. The package compiles, but when it gets to "setting up lazy load" or some such it throws the error "triang" not available for .C() in package "randpkg". Upon checking,
2006 Jan 03
0
Re: Rails Digest, Vol 16, Issue 55
I used gem to install rails; yum to install ruby. On Jan 3, 2006, at 3:21 PM, rails-request@lists.rubyonrails.org wrote: > What did you use to install rails? Did you install via a package for > fedora linux? Or did you use gem to install rails? Kevin Silver Kevin@ideum.com Ideum "ideas + media" 4895 1/2 Corrales Road Corrales, NM 87048 http://www.ideum.com phone: 505-792-1110
2007 Apr 12
1
LME: internal workings of QR factorization
Hi: I've been reading "Computational Methods for Multilevel Modeling" by Pinheiro and Bates, the idea of embedding the technique in my own c-level code. The basic idea is to rewrite the joint density in a form to mimic a single least squares problem conditional upon the variance parameters. The paper is fairly clear except that some important level of detail is missing. For
2002 Sep 09
0
wine-users digest, Vol 1 #1242 - 7 msgs
-----Original Message----- From: wine-users-request@winehq.com [mailto:wine-users-request@winehq.com] Sent: Saturday, September 07, 2002 10:01 AM To: wine-users@winehq.com Subject: wine-users digest, Vol 1 #1242 - 7 msgs Send wine-users mailing list submissions to wine-users@winehq.com To subscribe or unsubscribe via the World Wide Web, visit http://www.winehq.com/mailman/listinfo/wine-users
2005 Nov 04
2
Classification Trees and basic Random Forest pkg using tree structures in C
Hello R-devel: I have written a package, called "woods", that does classification trees (R function CT), and currently, only the most basic functionality of Random Forest, e.g. bagged trees with choices about sample size, with/without replacement, size of (random) subset of covariates drawn when nodes are split. My reason for writing this is twofold. First, I wanted to base this
2005 Nov 04
1
small bug in gl1ce, package lasso2 (PR#8280)
Full_Name: Grant Izmirlian Version: 2.2.0 OS: SuSe Linux version 9.2 Submission from: (NULL) (156.40.34.177) Sorry about the last submission, my bug-fix had an error in it because ifelse doesn't vectorize. I'll repost with the correct bug-fix. ------------------------------------------------------------------------------- The option exists to include all parameters, including the
2020 Sep 14
0
CentOS-virt Digest, Vol 156, Issue 3
Make sure that the interface that you are bridging to is not a wireless interface otherwise it won't work. Very deep in the documentation about setting up KVM there is a warning about that it's something about how they initiate connections on a wireless interface is different than on a wired one and it breaks things in KVM bridging. Daniel Sichel ________________________________ From:
2002 Nov 28
1
Re: samba digest, Vol 1 #1924 - 22 msgs
I had a similar issue on my Debian box. It seemed that setfacl didn't care for special characters. I changed the separator character to - (dash) instead of + or \ and it worked fine. Good luck! Tom Hallewell Radio Free Asia Washington DC USA > > (offlist replies discontinued due to increasing large number of people > involved) > > Gareth Davies wrote: > >
2015 Jun 25
0
CentOS-announce Digest, Vol 124, Issue 13
Send CentOS-announce mailing list submissions to centos-announce at centos.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to centos-announce-request at centos.org You can reach the person managing the list at centos-announce-owner at centos.org When
2015 Jan 24
0
CentOS-announce Digest, Vol 119, Issue 8
Send CentOS-announce mailing list submissions to centos-announce at centos.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to centos-announce-request at centos.org You can reach the person managing the list at centos-announce-owner at centos.org When
2004 Jul 27
1
Re: R-help Digest, Vol 17, Issue 25
hello, I'm trying to use R to take an image matrix and paint it into a tcltk canvas. I'm using R-1.9.0 within ess-5.2.0 on a linux machine running the 2.4.30-31.9smp kernel. I'm using the ActiveTcl8.4.6.1-linux-ix86 tcltk libraries. When I run the following comands, however, I get an R segmentation fault: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016 May 04
0
CentOS-announce Digest, Vol 135, Issue 2
Send CentOS-announce mailing list submissions to centos-announce at centos.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to centos-announce-request at centos.org You can reach the person managing the list at centos-announce-owner at centos.org When