Beiwe data is structured as: /study_folder/user_folder/sensor_folder/DATE_TIME.csv

.parse_file_name(csv_path, with_dttm = FALSE)

Arguments

csv_path

path to the csv file as a string

with_dttm

when TRUE, also returns the timestamp of the file

Value

a list

Details

This is just a convenience function that extract important metadata from the file path. Given any file path (as a string), it will return a list with elements $data_type, $user_id, $study_name, $file_path, and optionally $datetime.