parse.pems: Parse Pems raw data and pick a subset of VDS

Description Usage Arguments Examples

Description

This funtion reads in the pems data and reform it into a "comfortable" format with columns: time, vds, flow, occ, speed.

Usage

1
2
parse.pems(inDir = "./pemsData/", outDir = "./processed/",
  vds = c(1203501, 1203506, 1203534, 1203536, 1212126, 1213891), meta)

Arguments

inDir

The directory where the pems raw files are located, the raw files are in .gz format

outDir

The directory to write the output files, the files are in .csv format

vds

A vector of desired VDS's

meta

The meta data used to parse the data. It is suggested to read in the meta file by function "read.delim"

Examples

1
2
meta <- read.delim("./meta/d12_text_meta_2013_12_14.txt")
parse.pems(meta=meta)

JaredSun26/pems documentation built on May 7, 2019, 10:32 a.m.