# do minimal version (we know it will use the default so turn off warning)
ac <- make_aircraft(warn = FALSE)
# on-the-fly example
ac <- data.frame(id = "test", type = "test aircraft",
over_sea_M = 2.0, over_land_M = 0.9, accel_Mpm = 0.2,
arrdep_kph = 300, range_km = 6000, stringsAsFactors=FALSE)
ac <- make_aircraft(ac, warn = FALSE)
if (FALSE) {
# example for your own data
aircraft <- utils::read.csv("data/aircraft.csv", stringsAsFactors = FALSE)
aircraft <- make_aircraft(aircraft)
# strongly recommended to record the file name for later reference
attr(aircraft, "aircraftSet") <- "aircraft.csv"
}
Run the code above in your browser using DataLab