convert_and_qc_timestamp: Convert a vector of strings to POSIXct timestamps.

Description Usage Arguments Value

View source: R/utils.R

Description

Convert a vector of strings to POSIXct timestamps.

Usage

1
convert_and_qc_timestamp(ts, timestamp_format, time_zone)

Arguments

ts

Timestamps, character

timestamp_format

Formatting string that as.POSIXct accepts. This normally comes from CSR_TIMESTAMP_FORMAT in the DESCRIPTION file.

time_zone

Time zone that as.POSIXct accepts. This normally comes from CSR_TIMESTAMP_TZ in the DESCRIPTION file.

Value

A list with (i) a vector of POSIXct timestamps, (ii) a logical vector indicating which ones are invalid (and thus now NA), and (iii) a string of examples of bad timestamps.


bpbond/cosore documentation built on July 20, 2021, 3:17 p.m.