Reads raw accelerometer data files into an impactr_data
object.
Examples
read_acc(impactr_example("hip-raw.csv"))
#> # Start time: 2021-04-06 15:43:00
#> # Sampling frequency: 100Hz
#> # Accelerometer placement: Non-specified
#> # Subject body mass: Non-specified
#> # Filter: No filter applied
#> # Data dimensions: 30,000 × 4
#> timestamp acc_X acc_Y acc_Z
#> <dttm> <dbl> <dbl> <dbl>
#> 1 2021-04-06 15:43:00 0.262 -0.688 0.063
#> 2 2021-04-06 15:43:00 0.25 -0.727 0.039
#> 3 2021-04-06 15:43:00 0.254 -0.816 0.191
#> 4 2021-04-06 15:43:00 0.258 -0.891 0.367
#> 5 2021-04-06 15:43:00 0.281 -0.914 0.344
#> 6 2021-04-06 15:43:00 0.316 -0.922 0.23
#> 7 2021-04-06 15:43:00 0.32 -0.891 0.203
#> 8 2021-04-06 15:43:00 0.332 -0.926 0.109
#> 9 2021-04-06 15:43:00 0.363 -1.02 0.168
#> 10 2021-04-06 15:43:00 0.418 -0.996 0.387
#> # … with 29,990 more rows
#> # ℹ Use `print(n = ...)` to see more rows