readOpenSkyStates: Download, unzip, and read raw OpenSky States Files into R

Description Usage Arguments Value

Description

If states files are not downloaded, use this to download, unzip, and fread into R If states files are downloaded, use this to unzip, and fread into R by download = F

Usage

1
2
3
4
5
6
7
readOpenSkyStates(
  date,
  range = 0:23,
  download = TRUE,
  fread = TRUE,
  dir = NULL
)

Arguments

date

One date at a time, in the format "YYYY-MM-DD"

range

The hours in the day to be included. Default is all (0:23), but if download fails halfway though, can pick it up (5:23)

download

T/F Need to download data from opensky and unzip it first? False if you have already downloaded and want to just read into R

fread

T/F Need to read it into R? False if you want to download only

dir

Where to download files or where to look for already downloaded files

Value

"states" which is a dataframe containing a row for each plane at 10 second intervals. This will be fed to additional functions to get data into a usable format.


DatascribeConsulting/MonaRk documentation built on May 4, 2021, 5:28 a.m.