Fill time series with NA

mf_timefiller(data, timestamps, informat = "%Y-%m-%d %H:%M:%S",
    interval = 1800, intervalunit = "seconds", starttime = timestamps[1],
    endtime = timestamps[length(timestamps)], outformat = informat,
    fillwith = NA)

Arguments

data

data frame

timestamps

timestamps of data. can be character, but its format must be specified in 'informat'

informat

format of timestamps

interval

time interval in timestamps

starttime

starttime in the output data. the same format as 'informat'

Value

a dataframe

Examples