View Single Post
  Spotlight this post!  
Unread 10-16-2016, 07:44 PM
sirwin sirwin is offline
Registered User
AKA: Stacy Irwin
FRC #1318 (Issaquah Robotics Society)
Team Role: Mentor
 
Join Date: May 2016
Rookie Year: 2016
Location: Bellevue, WA
Posts: 9
sirwin is a glorious beacon of lightsirwin is a glorious beacon of lightsirwin is a glorious beacon of lightsirwin is a glorious beacon of lightsirwin is a glorious beacon of lightsirwin is a glorious beacon of light
Re: R Package for Downloading FIRST API Data

Quote:
Originally Posted by Ether View Post
Thanks for doing this.

Question for R gurus:

Attached is a table of qual match scores for 17842 alliances (8921 matches) involving 2696 teams.

Each row has 8 fields:

red1 red2 red3 blue1 blue2 blue3 red_score blue_score

What is the recommended way to use R to efficiently compute "World OPR" for this large dataset?


I have no idea if this is the recommended way to user R for this sort of calculation, but my solution is posted at https://irwinsnet.github.io/opr.html.

My method requires 13 seconds on a Surface 4 with an i5 process and 8 Gb of memory. It actually takes more time to create the A matrix (9 seconds) than it does to solve for the OPRs once the A and B matrices are prepared (3 seconds). The remaining second is required for reading the data and preparing the B matrix.

The results and source code are available at the link above.

Stacy
Reply With Quote