Pointers/shortcuts in R with the ‘pointr’ package

July 8, 2020 | 0 Comments

Overview R's built-in copy-on-modify behavior prevents the user from having two symbols always pointing to the same object. Because pointers, as they are common in other programming languages, are essentially symbols (variable) related to an object that has already another symbol attached to it, it is clear that pointers do ... [Read more...]

Writing Functions to Automate Repetitive Plotting Tasks in ggplot2

July 7, 2020 | 0 Comments

Introduction Making Multiple Plots on the Same Subject Preparing the Data Writing Functions to Generate Multiple Plots Making Custom Plot Themes Updating Plot Themes Introduction There are often situations when you need to perform repetitive plotting tasks. For example, you’d like to plot the same kind of data (e....
[Read more...]

R Package Integration with Modern Reusable C++ Code Using Rcpp

July 7, 2020 | 0 Comments

Daniel Hanson is a full-time lecturer in the Computational Finance & Risk Management program within the Department of Applied Mathematics at the University of Washington. His appointment followed over 25 years of experience in private sector quantitative development in finance and data science. One of the most time-consuming, tedious, and thankless tasks ...
[Read more...]

How I Taught Scientific Blogging with R Markdown, Online

July 7, 2020 | 0 Comments

Last week I had the pleasure to lead an online course about “Scientific Blogging with R Markdown”, invited by Najko Jahn and Anne Hobert from SUB Göttingen. To follow the example set by the incredible Alison Hill, I’ll write a summary of what I’ve learnt and would ... [Read more...]

Is catboost the best gradient boosting R package?

July 7, 2020 | 0 Comments

Several R packages that use different methods are out there for using gradient boosting methods. The three most famous ones are currently xgboost, catboost and lightgbm. I want to compare these three to find out which is the best one in their default mode without tuning. These algorithms are not ... [Read more...]

Expand broom::tidy() output for categorical parameter estimates

July 7, 2020 | 0 Comments

Introduction The tidycat package includes the tidy_categorical() function to expand broom::tidy() outputs for categorical parameter estimates. Documentation For full documentation, see the package vignette: The tidycat package: expand broom::tidy() output for categorical parameter estimates Hello World The tidy() function in the broom package takes the messy output ...
[Read more...]

AsioHeaders 1.16.1-1 on CRAN

July 7, 2020 | 0 Comments

An updated version of the AsioHeaders package arrived on CRAN today (after a we days of “rest” in the incoming directory of CRAN). Asio provides a cross-platform C++ library for network and low-level I/O programming. It is also included in Boost ... [Read more...]

Drunk-under-the-lamppost testing

July 7, 2020 | 0 Comments

I’m writing a response here to Abraham Mathews’s post, Best practices for code review, R edition, because my comment there didn’t show up and I think the topic’s important. Mathews’s post starts out on the right track, then veers away from best practices in the ... [Read more...]

xspliner: An R Package to Build Explainable Surrogate ML Models

July 7, 2020 | 0 Comments

This talk was presented virtually at eRum 2020 by Appsilon engineer Krystian Igras. Here is a direct link to the video. Why Should We Explain Black Box ML Models? A vast majority of state-of-the-art ML algorithms are black boxes, meaning it is difficult to understand their inner workings. The more that ...
[Read more...]

Latin American Communities and Organizations: useR!2020 Video

July 7, 2020 | 0 Comments

This useR!2020 session and video was organized by Laura Acion, Yanina Bellini Saibene, Paola Corrales, and Paloma Rojas Saunero. Leonardo Collado Torres coordinated the blog post submission. On June 19th, 2020,... The post Latin American Communities and Organizations: useR!2020 Video appeared first on R Consortium.
[Read more...]

Kalman Filter as a Form of Bayesian Updating

July 7, 2020 | 0 Comments

The Kalman filter is a very powerful algorithm to optimally include uncertain information from a dynamically changing system to come up with the best educated guess about the current state of the system. Applications include (car) navigation and stock forecasting. If you want to understand how a Kalman filter works ... [Read more...]

Critique of “Projecting the transmission dynamics of SARS-CoV-2 through the postpandemic period” — Part 4: Modelling R, seasonality, immunity

July 6, 2020 | 0 Comments

In this post, fourth in a series (previous posts: Part 1, Part 2, Part 3), I’ll finally talk about some substantive conclusions of the following paper: Kissler, Tedijanto, Goldstein, Grad, and Lipsitch, Projecting the transmission dynamics of SARS-CoV-2 through the postpandemic period, Science, vol. 368, pp. 860-868, 22 May 2020 (released online 14 April 2020).  The […]
[Read more...]

Interoperability in July

July 6, 2020 | 0 Comments

Photo by Mark Cruz on Unsplash The TIOBE Company just published the July edition of its TIOBE Programming Community Index of programming language popularity. R users will be pleased to see that R is now ranked as the 8th most popular programming language as shown in the screenshot below, having ...
[Read more...]

A better way to manage your Github personal access tokens

July 6, 2020 | 0 Comments

We have been working hard behind the scenes on the upcoming release of our new git package named gert, a joint effort from rOpenSci and the Tidyverse team. One of the main features of gert is the out-of-the-box authentication mechanism, which is provided via the new credentials package. Among other ...
[Read more...]

Experiences Building a Production Shiny App for Mobile

July 6, 2020 | 0 Comments

A few months back we had the pleasure of working with Axion Biosystems to develop a mobile first shiny application. The app is called “Maestro Z”, and Axion ended up making a couple commercial advertisements for it (one magazine ad and a video). W... [Read more...]

Simulating multiple RCTs to simulate a meta-analysis

July 6, 2020 | 0 Comments

I am currently involved with an RCT that is struggling to recruit eligible patients (by no means an unusual problem), increasing the risk that findings might be inconclusive. A possible solution to this conundrum is to find similar, ongoing trials with the aim of pooling data in a single analysis, ...
[Read more...]

Create a data transformation pipeline

July 6, 2020 | 0 Comments

All data transformation functions in dplyr can be connected through the pipe %__% operator to create powerful and yet expressive data transformation pipelines. Use the pipe operator %__% to combine multiple dplyr functions into one pipeline %__% filter(___) %__% select(___) %__% arrange(___) Using the %__% operator The pipe operator %__% is a special part of the tidyverse ...
[Read more...]

Rcpp 1.0.5: Several Updates

July 6, 2020 | 0 Comments

Right on the heels of the news of 2000 CRAN packages using Rcpp (and also hitting 12.5 of CRAN package, or one in eight), we are happy to announce release 1.0.5 of Rcpp. Since the ten-year anniversary and the 1.0.0 release release in November 2018, ... [Read more...]
1 2 3 1,663