Learn R Programming

babyTimeR (version 0.1.0)

read_one_bt_activity_file: 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)

Value

a populated `Raw BT List DB` object

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab