Learn R Programming

telraamStats (version 1.1.2)

enrich_traffic: Enrich traffic data with date features, names and uptime filters.

Description

This function add day, weekday, hour, segment_name and full_name and uptime quality boolean. This function is already used by the data retrievement process.

Usage

enrich_traffic(data)

Value

Same dataframe with additionnal informations : day, hour, weekday, holiday, vacation, segment_name, uptime_quality

Arguments

data

Raw data frame from the Telraam API, imported through the package.

Examples

Run this code
enriched_traffic <- enrich_traffic(traffic[0:10,])
setdiff(colnames(enriched_traffic[0:10,]), colnames(traffic[0:10,]))

Run the code above in your browser using DataLab