watchme_prepare_data: Creates a wearableCamImages object from information read in a...

Description Usage Arguments Details Value Examples

Description

Creates a wearableCamImages object from information read in a csv file.

Usage

1
2
3
watchme_prepare_data(path_results, sep_results, quote_sign = "'",
  participant_id = "no_id", path_dico, sep_dico, tz = "Asia/Kolkata",
  robust_reading = FALSE)

Arguments

path_results

the path to the file with coding results

sep_results

the separator in the file with coding results

quote_sign

the quote argument of read.table for the results, default is "\'"

participant_id

participant ID, if available.

path_dico

the path to the file with the list of annotations

sep_dico

the separator in the file with the list of annotations

tz

timezone

robust_reading

FALSE by default. When TRUE the annotation column is the whole line: the file is read once for finding photo paths and times, and once again for finding code.

Details

Please check the format that both files should have by looking at the provided example data. However you could consider write your own function for converting the input instead of having to re-format all your existing data, which we could even add to the package.

Value

A tibble with

Examples

1
2
3
4
5
6
7
8
path_results <- system.file('extdata', 'image_level_pinocchio.csv', package = 'watchme')
sep_results <- ','
path_dico <-  system.file('extdata', 'dicoCoding_pinocchio.csv', package = 'watchme')
sep_dico <- ';'
data_pictures <- watchme_prepare_data(path_results=path_results, sep_results=sep_results,
              path_dico=path_dico, sep_dico=sep_dico)
data_pictures
attr(data_pictures, "dico")

masalmon/watchme documentation built on May 21, 2019, 12:41 p.m.