process_weather_month: process_weather_month

View source: R/hobo_do.R

process_weather_monthR Documentation

process_weather_month

Description

Import and tidy a monthly weather CSV file downloaded from a Taiwan Central Weather Administration station. Column selection is done via regex so minor header changes are handled gracefully.

Usage

process_weather_month(file_path, month, year = 2024, zone)

Arguments

file_path

Path to the monthly CSV file.

month

Month number (1–12) covered by the file.

year

Four-digit year. Default 2024.

zone

Character label for the weather station / region.

Value

A data frame with columns day, pressure_hpa, temp, humidity_percent, wind_ms, rain_mm, daylight_hr, radiation, date, and zone.

Examples

## Not run: 
df <- process_weather_month("path/to/2024-01.csv", month = 1, year = 2024,
                            zone = "site_A")

## End(Not run)

aelab documentation built on Feb. 23, 2026, 5:07 p.m.