calc_timestamps: Calculate all timestamps based on timestamps given and...

Description Usage Arguments Value Note

View source: R/utils.R

Description

Calculate all timestamps based on timestamps given and measurement length

Usage

1
calc_timestamps(dsd, ml, tf, tz)

Arguments

dsd

Dataset data, a data frame

ml

Measurement length, numeric (seconds)

tf

Timestamp format, a strptime format string

tz

Timezone, character

Value

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

Note

This is called from read_raw_dataset.


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