Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
The behaviour of within() with list input changes if you delete 2 or more variables, compared to deleting one: l <- list(x=1, y=2, z=3) within(l, { rm(z) }) #$x #[1] 1 # #$y #[1] 2 within(l, { rm...
If no 'type' is specified, download.packages("pkgname") will download source packages (.tar.gz files), even on Windows. However, the help says type character string, indicate which type of packages: see install.packages. and on Windows, install.packages defaults to...
This is something I came across just now: f <- function(x) missing(x) z <- quote(expr=) f(z) # TRUE The object z contains the equivalent of a missing function argument. Another method for generating a missing arg would be alist...
_______________________________________________________________________________________ Hi, I was just wondering if there was any available R code that could handle general constrained optimisation problems. At the moment I'm using nlminb and optim, both of which allow box constraints on the parameters, but ideally I...
This is with R 3.6.2 on Windows 10 Pro 1909. In the last couple of weeks, devtools::build() and devtools::check() have started hanging on some, but not all, of my packages. After some poking around, I discovered...
Good catch, Ivan! Fixing that seems to have done the trick. Thanks! The question now is why checkpoint hasn't crashed and burned prior to this, but I'll leave that for another day.... -----Original Message----- From: Ivan Krylov <krylov...
Hi, On Windows, it appears that system() and system2() both use the 8.3 filename to run the supplied command, even if the full name is used. Most of the time this doesn't matter, but for .NET programs, it...
_______________________________________________________________________________________ You know, this is the first time I've heard of constrOptim. I actually have a rather complicated, nonlinear boundary expression in mind, so this function by itself isn't quite what I'm after. Still, I should be able...
_______________________________________________________________________________________ max.col sounds like what you're after. -- Hong Ooi Senior Research Analyst, IAG Limited 388 George St, Sydney NSW 2000 +61 (2) 9292 1566 -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces...
The version 1.1 update to my glmnetUtils package is now available on CRAN. glmnetUtils provides a formula interface for the 'glmnet' package for elasticnet regression, a method for cross-validating the alpha parameter, and other quality-of-life tools...
_______________________________________________________________________________________ Hello, Not sure if this counts as a bug or not, but I just noticed in R 2.4.0 that : and interaction are not quite equivalent. For example: > x <- factor(letters[1:4]) > y <- factor(letters[11:14]) > x...
I'm pleased to announce that the glmnetUtils package is now available on CRAN. I wrote this after using the popular glmnet package to fit elastic net models for a few customer projects, and rewriting the same boilerplate code each...
The version 1.1 update to my glmnetUtils package is now available on CRAN. glmnetUtils provides a formula interface for the 'glmnet' package for elasticnet regression, a method for cross-validating the alpha parameter, and other quality-of-life tools...
_______________________________________________________________________________________ There is also rowSums (and colSums) which does the same thing without needing apply: m[rowSums(m) == 2, ] Subject to Bert Gunter's caveat about comparing floating point numbers for equality, of course. -- Hong Ooi Senior Research Analyst, IAG Limited...
I'm pleased to announce that the glmnetUtils package is now available on CRAN. I wrote this after using the popular glmnet package to fit elastic net models for a few customer projects, and rewriting the same boilerplate code each...
_______________________________________________________________________________________ Hm, I should have checked what would happen with binary data and not just continuous. Using glm with quasi(var="mu(1-mu)", link=logit) indeed fails with NAs/NaNs when y is binary. -- Hong Ooi Senior Research Analyst, IAG...
_______________________________________________________________________________________ lower+2 : upper parses as lower + (2:upper). The colon operator has fairly high precedence. What you want is (lower + 2):upper -- Hong Ooi Senior Research Analyst, IAG Limited 388 George St, Sydney NSW 2000 +61 (2) 9292 1566 -----Original...
_______________________________________________________________________________________ I don't know the text in question, but it looks like a difference in parametrisation -- the R output is just the inverse of that from the book. -- Hong Ooi Senior Research Analyst, IAG Limited 388 George St, Sydney NSW...
_______________________________________________________________________________________ R doesn't use the 'functionname = result' idiom to return a value from a function. It looks like you're after: aaa <- function(a) { if(a == 1) return(1) if(a != 1) return(2) } or aaa <- function(a) { if(a...
The various devtools::install_* functions don't install vignettes by default; to do so, add the build_vignettes=TRUE argument. -----Original Message----- From: R-package-devel <r-package-devel-bounces at r-project.org> On Behalf Of Troels Ring Sent...
Can't find what you're looking for? Try searching with Google .