read_syft_data: Function to read Syft '.csv' files.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/read_syft_data.R

Description

Function to read Syft .csv files.

Usage

1

Arguments

file

Vector of Syft .csv file names.

verbose

Should the function give messages?

Details

The Syft instrument reports time with sub second accuracy. This is preserved but to view this extra precision, set the digits.secs option.

Value

Named list containing data frames.

Author(s)

Stuart K. Grange

See Also

set_sub_second_option

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 

# Load a data file
file <- "data/Participant 3/Breath Romance-Participant 3-20180205-152112.csv"
list_syft <- read_syft_data(file)

# What units does the list contain? (purrr needs to be loaded)
map(list_syft, names) %>% 
  flatten_chr()
  
# Extract observations
data_observations <- map_dfr(
  list_syft, 
  `[[`, 
  "detailed_concentrations", 
  .id = "file"
)


## End(Not run)

wacl-york/waclr documentation built on Dec. 7, 2018, 7:59 a.m.