powered by
Batch-import monthly weather CSV files from a Taiwan Central Weather Administration station for a consecutive range of months.
combine_weather_month(file_path, start_month, end_month, year = 2024, zone)
A combined data frame produced by process_weather_month.
process_weather_month
Path prefix (directory + filename prefix before the date portion, e.g. "data/weather/").
"data/weather/"
First month to import (1–9; two-digit months not yet supported).
Last month to import.
Four-digit year. Default 2024.
Character label for the weather station / region.
File names are expected to follow the pattern <file_path><year>-0<month>.csv (e.g. 2024-01.csv).
<file_path><year>-0<month>.csv
2024-01.csv
if (FALSE) { df <- combine_weather_month("data/weather/", start_month = 1, end_month = 6, year = 2024, zone = "site_A") }
Run the code above in your browser using DataLab