Learn R Programming

babyTimeR (version 0.1.0)

process_one_directory: Process One Directory of 'BabyTime' Activity Files

Description

Only works with with .zip files

Usage

process_one_directory(directory, remove_txts = TRUE, verbose = TRUE)

Value

Clean BT List DB object (and also write it to the `out` RDS file)

Arguments

directory

directory with activity files in it

remove_txts

boolean. whether to remove txt files before processing

verbose

boolean. print out processing details?

Examples

Run this code
data_dir <- system.file('extdata', package = 'babyTimeR')
if (file.exists('parsed_data.RDS')) {
    baby_dann_db <- readRDS('parsed_data.RDS')
} else {
    baby_dann_db <- process_one_directory(
        directory = data_dir,
        remove_txts = FALSE
    )
}

Run the code above in your browser using DataLab