powered by
Downloads or loads the specified NASCAR series data and writes it to a file in either CSV or Parquet format.
export_series(series = c("cup", "nxs", "truck"), path, format = NULL, ...)
Invisibly returns the exported data.
Character. The series to export. One of "cup", "nxs", or "truck".
"cup"
"nxs"
"truck"
Character. Path to the output file (including extension).
Character. Output format: "csv", "parquet", or NULL. If NULL (default), the format is guessed from the file extension of path.
"csv"
"parquet"
NULL
path
Additional arguments passed to utils::write.csv() (for CSV) or arrow::write_parquet() (for Parquet).
utils::write.csv()
arrow::write_parquet()
if (FALSE) { # Export Cup Series data to CSV export_series("cup", "cup_data.csv") # Export Truck Series data to Parquet export_series("truck", "truck_data.parquet") }
Run the code above in your browser using DataLab