Learn R Programming

TrafficBDE (version 0.1.2)

fillMissingDates: Fill Missing Dates

Description

This function fills the missing dates from the data.

Usage

fillMissingDates(Data, datetime)

Value

A data frame with all the historical data between the first date and the date wanted.

Arguments

Data

The historical data

datetime

The datetime wanted

Author

Aikaterini Chatzopoulou, Charalampos Bratsas

Details

This function returns a data frame without missing dates.

See Also

loadData, fillMissingValues

Examples

Run this code
if (FALSE) {
SpecLink <- loadDataSpecLink("163204843","1", X163204843_1)
x <- fillMissingValues(SpecLink)
datetime <- "2017-01-27 14:00:00" 
newData <- fillMissingDates (x, datetime)}

Run the code above in your browser using DataLab