read_knmi_data: Read 'KNMI' datafile (precipitation) as 'data.frame'

View source: R/read_knmi_data.R

read_knmi_dataR Documentation

Read KNMI datafile (precipitation) as data.frame

Description

Remark that this function is specifically to extract the precipitation (RH) data, coordinates are extracted from the header of the KNMI data file

Usage

read_knmi_data(filename, n_max = Inf)

Arguments

filename

path/filename of the KNMI datafile

n_max

integer; shortcut for testing, loading just a section of the data

Value

data.frame with the headers location_name, datetime (UTC), value, unit, variable_name, latitude, longitude and source_filename

See Also

Other download_functions: download_knmi_data_hour(), download_zenodo(), extract_soil_map_data(), read_kmi_data(), read_kml_file(), read_mow_data()

Examples

## Not run: 
# see vignettes for more examples
file_path <- "knmi_file.txt"
knmi_data <- read_knmi_data(file_path)

## End(Not run)

inbo/inborutils documentation built on Nov. 23, 2023, 4:42 a.m.