Articles by R | databentobox

Securing and monitoring ShinyProxy deployment of R Shiny apps

May 3, 2020 | R | databentobox

Table of Contents Introduction Prerequisites Step 1: Setting up Docker Step 2: Building the demo Shiny app and containerised ShinyProxy Docker images Step 3: Launching AWS EC2 instances Step 4: Setting up a domain name (Optional) Step 5: Setting up AWS Cognito (Optional) Setting up HTTPS (SSL / TLS) Step 1: Preparing configuration files Step 2: Setting up ...
[Read more...]

Simulating Coronavirus Outbreak in City with Origin-Destination Matrix and SEIR Model

March 28, 2020 | R | databentobox

Table of Contents Introduction Model SEIR Model Population Mobility Model Model Assumptions Data Simulation Visualisation Scenario-based Simulations Introduction A couple weeks ago, I have written an article about simulating coronavirus outbreak in Tokyo using Origin-Destination (OD) matrix, population mesh data and a simple SIR model with some assumptions. I shared ...
[Read more...]

Dplyr functions with string

November 1, 2019 | R | databentobox

Let’s say we have a simple data frame as below and we want to select the female rows only. df % filter(., gender == "female")
## id gender
## 1 2 female
## 2 4 female
## 3 5 female
The filter() function in dplyr (and other similar functions from the package) use something called non-standard evaluation (NSE). In NSE, names are treated as string ... [Read more...]

Dplyr functions with string

November 1, 2019 | R | databentobox

Let’s say we have a simple data frame as below and we want to select the female rows only. df % filter(., gender == "female")
## id gender
## 1 2 female
## 2 4 female
## 3 5 female
The filter() function in dplyr (and other similar functions from the package) use something called non-standard evaluation (NSE). In NSE, names are treated as string ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)