combine_weather {aelab}R Documentation

combine_weather

Description

Tidy multiple daily weather data downloaded from weather station in Taiwan.

Usage

combine_weather(file_path, start_date, end_date, zone)

Arguments

file_path

Directory of folder containing the files (including the character in the file name that precedes the date).

start_date

Date of the daily weather data in yyyy-mm-dd format.

end_date

Date of the daily weather data in yyyy-mm-dd format.

zone

Code for the region of the weather station.

Value

A dataframe.

Examples

weather_data_path <- system.file("extdata", package = "aelab")
modified_data_path <- paste0(weather_data_path, "/ex_")
df <- combine_weather(modified_data_path,
start_date = "2024-01-01",
end_date = "2024-01-02", "site_A")

[Package aelab version 1.0.1 Index]