getTeamZebraData | R Documentation |
Get time series of the the locations of one robot in a match.
getTeamZebraData(frc_zebradata, team) ## S3 method for class 'frc_zebradata' x[i, ...] ## S3 method for class 'frc_zebradata' x[[i, ...]]
x |
The return value of a call to |
i |
A team number, given as a number or a character string, or a character string of the form "frc<team number>". It may also be an integer in the range 1-6, which will be taken as equivalent to names(x)[i]. (For teams 1-6 you must a supply a string). |
A data.frame giving the location of the robot every 100 milliseconds. Its columns are
x |
The x component of the location |
y |
The y component of the location |
time |
The times at which the locations were measured |
The data.frame also has attributes
alliance |
"red" or "blue" |
team |
the team number |
z_match <- getZebraData("2022pncmp_qm10") names(z_match) str(z_match[2]) str(z_match["7641"]) str(z_match[[2]]) str(z_match[["frc7461"]]) str(z_match[[7461]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.