get_timestamp: Get timestamps from each line

Description Usage Arguments Value Examples

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

Description

Timestamps have to have the format of "2018-08-24; 17:40;"

Usage

1
get_timestamp(dat_txt)

Arguments

dat_txt

Character vector that contains date, time, and one or more key-value pairs.

Value

Timestamp of type lubridate::Date

Examples

1
2
3
4
5
6
7
8
get_timestamp("2018-08-24; 17:40;")
## Not run: 
get_timestamp(dat_txt[1:2])
get_timestamp(dat_txt)
get_timestamp(remove_comments(dat_txt))
get_timestamp(dat_txt[409:414])

## End(Not run)

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