combine.weather.datasets: Combine multiple weather data sets with station information

Description Usage Arguments Value Author(s)

Description

This function makes several assumptions about the structure of supplied datasets. Weather data is assumed to be of the form <station, datetime, value>.

Usage

1
2
combine.weather.datasets(station.file, weather.files, columns, tz = "UTC",
  tf = "%Y%m%d")

Arguments

station.file

Path to file with station information, e.g. "data/stations.csv"

weather.files

A character vector with paths of weather information, e.g. c("data/precipitation.csv", "data/temperature.csv")

columns

Which columns to take from the merged result, e.g. c("longitude", "latitude", "datetime", "precipitation", "temperature")

tz

Optional timezone setting, defaults to "UTC"

tf

Optional timeformat setting, defaults to "%Y%m%d

Value

A datatable created by merging supplied data sets with each other and the station data. Datetime information is converted to unix timestamp

Author(s)

Jurian Baas


Jurian/nearest.neighbour documentation built on May 23, 2019, 3:11 p.m.