-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
63 lines (46 loc) · 2.33 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
output: github_document
---
<!-- badges: start -->
[](https://cran.r-project.org/package=adeptdata)
[](https://cran.r-project.org/package=adeptdata)
[](https://cran.r-project.org/package=adeptdata)
[](https://github.com/martakarass/adeptdata/actions)
<!-- badges: end -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# adeptdata
Package `adeptdata` was created to host raw accelerometry data sets and their derivatives. Some of them are used in the corresponding `adept` package.
### Installation
Install from CRAN.
```{r, eval = FALSE}
install.packages("adeptdata")
```
### Data objects
##### Object `acc_running`
The `acc_running` data frame is a sample raw accelerometry data collected during 25 minutes of an outdoor run. Data were collected at frequency 100 Hz with two ActiGraph GT9X Link sensors located at left hip and left ankle. See `?acc_running` for details.
```{r}
library(adeptdata)
head(acc_running)
lubridate::tz(acc_running$date_time)
```
##### Object `acc_walking_IU`
The `acc_walking_IU` data frame is a sample of raw accelerometry data collected during outdoor continuous walking from 32 healthy participants between 23 and 52 years of age. Data were collected at frequency 100 Hz simultaneously with four wearable accelerometers located at left wrist, left hip and both ankles. See `?acc_walking_IU` for details.
```{r}
head(acc_walking_IU)
```
##### Object `stride_template`
The `stride_template` is a list containing walking stride pattern templates derived from accelerometry data collected at four body locations: left wrist, left hip, left ankle, and right ankle. See `?stride_template` for details.
```{r fig.width=10, fig.height=5}
template <- list(stride_template$left_ankle[[2]][1, ],
stride_template$left_ankle[[2]][2, ])
par(mfrow = c(1,2), cex = 1)
plot(template[[1]], type = "l", xlab = "", ylab = "", main = "Left ankle: template 1")
plot(template[[2]], type = "l", xlab = "", ylab = "", main = "Left ankle: template 2")
```