Learn R Programming

skynet (version 1.0.1)

convertRaw: Convert Raw

Description

Converts DB1B files from BTS/RITA/Transtats website raw data (prezipped file), for SKYNET's import function.

Usage

convertRaw(x, y, path = NULL)

Arguments

x

First csv file to be processed

y

Second csv file to be processed

path

Path to save file to

Details

Reduces DB1B raw filesize, to an adequate SKYNET compatible format. This function will create a csv file for you. File order doesn't matter, but it is recommended to name the files using the following syntax: "Origin_and_Destination_Survey_DB1BCoupon_year_quarter.csv", "Origin_and_Destination_Survey_DB1BTicket_year_quarter.csv". Note: We do recommend sparklyr to be used for larger sets of data.

Examples

Run this code
# NOT RUN {
temp <- tempdir()
convertRaw(skynet_example("Origin_and_Destination_Survey_DB1BCoupon_2001_1.csv"),
skynet_example("Origin_and_Destination_Survey_DB1BTicket_2001_1.csv"),
path = temp)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab