Skip to content

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.

55 results for “from:Hong Ooi”

Odd behaviour in within.list() when deleting 2+ variables
Hong Ooi · Jun 25, 2017 · r-devel

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...

Unexpected behaviour with download.packages on Windows
Hong Ooi · Sep 29, 2017 · r-devel

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...

Unexpected interaction between missing() and a blank expression
Hong Ooi · Jun 6, 2017 · r-devel

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...

Looking for constrained optimisation code
Hong Ooi · Nov 27, 2005 · r-help

_______________________________________________________________________________________ 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...

[R-pkg-devel] R CMD build hanging for some but not all packages
Hong Ooi · Feb 10, 2020 · r-package-devel

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...

[R-pkg-devel] [EXTERNAL] Re: Checkpoint package failing CRAN checks
Hong Ooi · Jan 13, 2020 · r-package-devel

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...

system() and system2() do not use long filenames on Windows
Hong Ooi · Apr 30, 2018 · r-devel

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...

Looking for constrained optimisation code
Hong Ooi · Nov 28, 2005 · r-help

_______________________________________________________________________________________ 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...

hwo can i get a vector that...
Hong Ooi · Mar 7, 2007 · r-help

_______________________________________________________________________________________ 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...

glmnetUtils 1.1 now available
Hong Ooi · Aug 1, 2017 · r-packages

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...

Interaction and factor ':'
Hong Ooi · Nov 15, 2006 · r-help

_______________________________________________________________________________________ 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...

Package glmnetUtils now on CRAN
Hong Ooi · Apr 26, 2017 · r-packages

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...

glmnetUtils 1.1 now available
Hong Ooi via R-packages · Aug 1, 2017 · r-help

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...

the matrix of rows with specific row sums
Hong Ooi · Nov 22, 2005 · r-help

_______________________________________________________________________________________ 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...

Package glmnetUtils now on CRAN
Hong Ooi via R-packages · Apr 26, 2017 · r-help

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...

glm: quasi models with logit link function and binary data
Hong Ooi · Nov 28, 2005 · r-help

_______________________________________________________________________________________ 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...

for loop doesn't stop with upper loop value
Hong Ooi · Jul 3, 2007 · r-help

_______________________________________________________________________________________ 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...

negative binomial overdispersion question
Hong Ooi · Nov 22, 2005 · r-help

_______________________________________________________________________________________ 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...

"if" within a function
Hong Ooi · Jun 20, 2007 · r-help

_______________________________________________________________________________________ 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...

[R-pkg-devel] vignette problems: invisible
Hong Ooi · Feb 1, 2019 · r-package-devel

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 .