Fix a list flights' CSV files where callsigns contains ASCII NUL characters.

fix_flights_csvs(files, fixed_dir = getwd())

Arguments

files

a list of the (full filenames) flights' files.

fixed_dir

the directory where to save the fixed files (defaults to current working directory).

Value

a list of newly created files where each NUL in callsign has been substituted by a SPACE character.

See also

fix_nulls_in_callsign for the new files naming convention.

Examples

# NOT RUN {
# fix all February 2017 flights files
flights_dir <- system.file("extdata", package = "trrrj")
flights_csvs <- dir(flights_dir, pattern = "201702.._flights\\.csv", full.names = TRUE)
flights_csvs <- fix_flights_csvs(flights_csvs)
# }