Learn R Programming

CDSim (version 0.1.1)

write_station_csv: Write station CSV Exports a simulated climate station dataset to a CSV file.

Description

Write station CSV Exports a simulated climate station dataset to a CSV file.

Usage

write_station_csv(df, file = "simulated_station_climate.csv")

Value

Returns the file path invisibly.

Arguments

df

A dataframe returned by simulate_climate_series().

file

The output CSV filename.

Examples

Run this code
stations <- create_stations(n = 3)
sim <- simulate_climate_series(stations)
tmp <- tempfile(fileext = ".csv")
write_station_csv(sim, tmp)

Run the code above in your browser using DataLab