inst/docs/getting-started.md

Getting Started with aceR

Installation

  1. Install R

  2. Install RStudio

  3. Install Xcode from App Store

  4. Install devtools R-package.

Open RStudio, and run the following command in the console: {r} install.packages("devtools")

  1. Finally, install aceR using devtools

{r} devtools::install_github("josegallegos07/aceR")

Example

The following section describes how to set up a simple script for loading and processing raw ACE data.

1. Load aceR

library(aceR)

2. Set your working directory

Working directory refers to the directory you want R to load data from (or write data to).

If we wanted to process RedBull data:

setwd("~/Google Drive/ACE/All Raw ACE Data/ACE Studies_Raw Data/Redbull")

We can also set up our script to process "all" ACE data in one go:

setwd("~/Google Drive/ACE/All Raw ACE Data/ACE Studies_Raw Data")

Protips:

3. Load our Data

dat = load_ace_bulk()

Protips:

4. Process our data

proc = proc_by_module(dat, verbose = TRUE)

Protips:

5. Change our working directory to output directory

To avoid running into issues, save our processed data into a different directory:

setwd("~/Desktop/processed")

Protips:

6. Finally, export our processed Data

export_csv(proc)

All Together

# load aceR
library(aceR)

# set working directory
setwd("~/Google Drive/ACE/All Raw ACE Data/ACE Studies_Raw Data/Redbull")

# load raw data
dat = load_ace_bulk()

# process data by module
proc = proc_by_module(dat, verbose = TRUE)

# export data
setwd("~/Desktop/processed")
export_csv(proc)

More examples

See example scripts



josegallegos07/aceR documentation built on June 27, 2022, 10:25 a.m.