read_healthfiles: Read health files.

Description Usage Arguments Value Examples

View source: R/health-parse-functions.R

Description

All files that correspond to the regular expression will be read and post-processed (removing blank lines, trimmed).

Usage

1
read_healthfiles(path, filename_regex = "^health-[0-9]{4}\\.txt")

Arguments

path

Path where the files reside.

filename_regex

Regular expression that is used to match the files that should be parsed

Value

A character vector containting the text in the files (which usually contains a date, a time, and one or more key-value pairs).

Examples

1
dat_txt <- read_healthfiles("/Users/name/dat_dir")

ingonader/tskeyvalparser documentation built on May 5, 2019, 4:50 p.m.