Learn R Programming

aelab (version 1.0.1)

process_weather: convert_time

Description

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

Usage

process_weather(file_path, date, zone)

Value

A dataframe.

Arguments

file_path

Directory of file.

date

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

zone

Code for the region of the weather station.

Examples

Run this code
weather_data_path <- system.file("extdata", "ex_weather.csv", package = "aelab")
df <- process_weather(weather_data_path, "2024-01-01", "site_A")

Run the code above in your browser using DataLab