Learn R Programming

telraamStats (version 1.1.2)

enrich_name: Enrich traffic data with segment name

Description

segment_fullname is also added : it's the combination of segment's id and name. segment_id should be in the configuration file.

Usage

enrich_name(data)

Value

Same dataframe with two additionnal columns : segment_name and segment_fullname

Arguments

data

Data frame containing a segment_id column

Examples

Run this code
df <- data.frame('segment_id' = c(9000002156, 9000001906))
enrich_name(df)

Run the code above in your browser using DataLab