Learn R Programming

aelab (version 1.1.0)

combine_weather_month: combine_weather_month

Description

Batch-import monthly weather CSV files from a Taiwan Central Weather Administration station for a consecutive range of months.

Usage

combine_weather_month(file_path, start_month, end_month, year = 2024, zone)

Value

A combined data frame produced by process_weather_month.

Arguments

file_path

Path prefix (directory + filename prefix before the date portion, e.g. "data/weather/").

start_month

First month to import (1–9; two-digit months not yet supported).

end_month

Last month to import.

year

Four-digit year. Default 2024.

zone

Character label for the weather station / region.

Details

File names are expected to follow the pattern <file_path><year>-0<month>.csv (e.g. 2024-01.csv).

Examples

Run this code
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