read_one_bt_activity_file {babyTimeR}R Documentation

Read One 'BabyTime' Activity File

Description

Read line-by-line and parse into a "database" in a list.

Usage

read_one_bt_activity_file(infile, list_db = NULL, verbose = FALSE)

Arguments

infile

a .zip or .txt file with the format activity_BabyName_yyyymm as the 'BabyTime' app exports data.

list_db

a 'Raw BT List DB' object on which to append data. If none exists, this will create a new 'Raw BT List DB' object.

verbose

whether or not to write out progress messages.

Value

a populated 'Raw BT List DB' object

Examples

data_dir <- system.file('extdata', package = 'babyTimeR')
baby_dann_db <- read_one_bt_activity_file(
  infile = file.path(data_dir, 'activity_Dann_202411.txt')
) |>
    clean_bt_list_db()
names(baby_dann_db)

[Package babyTimeR version 0.1.0 Index]