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

View source: R/read_syft_data.R

read_syft_dataR Documentation

Function to read Syft .csv files.

Description

Function to read Syft .csv files.

Usage

read_syft_data(file, verbose = FALSE)

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

## 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)


skgrange/waclr documentation built on Dec. 8, 2022, 3:52 a.m.