loading-preprocessing.Rmd
library(navr)
#> Loading required package: ggplot2
#> Warning: package 'ggplot2' was built under R version 3.6.3
library(ggplot2)
obj <- navr_object
We can prepare necessary columns (time diffs, speeds, distances) with a single function.
colnames(obj$data)
#> [1] "timestamp" "rotation_x" "rotation_y" "fps" "input"
#> [6] "position_x" "position_z" "position_y"
obj <- prepare_navr(obj)
colnames(obj$data)
#> [1] "timestamp" "rotation_x" "rotation_y"
#> [4] "fps" "input" "position_x"
#> [7] "position_z" "position_y" "time_since_start"
#> [10] "time_diff" "distance" "distance_total"
#> [13] "speed" "rotation_x_diff" "rotation_y_diff"