Description Usage Arguments Examples
View source: R/participant_measures.R
This function extracts the angular error in a 3D JRD task as defined in EVE.
1 | compute_jrd_3d_error(jrd_data, destinations)
|
jrd_data |
Data.frame containing the task combo as indices into the destinations list in the description, the result in the value |
destinations |
Data.frame containing the destination name in description and an x,y,z coordinate for each. |
1 2 3 4 5 6 7 | destinations <- data.frame(destination=c("Blacksmith workshop", "Gift shop", "Smokehouse", "Cooking shed", "Town hall", "Viking boat", "Wood storage", "Bakery"),
x=c(-39,28.5,-38,49.5,12.5,-67,-67,32.5),
y=c(6,6.5,5.5,2.5,5.5,4,5.5,4.5),
z=c(-23,-14.5,22,48.5,-5.5,31,0,24))
jrd_data <- get_sensors_data_by_device_name(db, device.name = "JRD_3D") %>% collect()
jrd_data$error <- compute_jrd_3d_error(jrd_data, destinations)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.