This page describes some of the projects that I’m working on.
firstapiR is an R package for downloading FIRST Robotics Competition data from the FIRST API server and converting the data into R dataframes.
Version 2.0.0 of firstapiR is now available. I realized some useful features were missing from version 1.0.0 when I started using it for OPR calculations so I created version 2.0.0. There is a summary of changes in the Getting Started Guide.
Note: The recommended method for installing version 2.0.0 of firstapiR is to install it directly from Github by typing devtools::install_github("irwinsnet/firstapiR") in the R console. This command will download the most current version of firstapiR.
In version 2.0.0 I eliminated the expand_cols argument from the GetSchedule, GetHybridSchedule, and GetMatchResults functions. This is the only change that impacts backwards compatibility. Version 1.0.0 is still available for anyone who still wants to use the expand_cols argument.
Note: To install version 1.0.0 of firstapiR via Github, use the command devtools::install_github("irwinsnet/firstapiR", ref = "v1.0.0") in the R console. The readme guidance in the github repository omits the ref argument. Without the ref argument, devtools will download the most recent version of firstapiR, which is version 2.0.0. As I’m typing this, I’m realizing I could fix this issue by keeping v1.0.0 in a separate git branch instead of just tagging an earlier commit. Live and learn. I’ll fix that later.
I’ve been experimenting with calculating FIRST Robotics Competition (FRC) offensive power ratings (OPR) in R.
Here’s some information on how I calculated world OPR.
Short version (in alphabetical order):