Learn R Programming

barrks (version 1.1.0)

barrks_data: Load sample data

Description

The package comes with sample data that allow the application of all models available. The following data sets are available:

Usage

barrks_data(dataset = "raster")

Value

The respective data set. Can be a list of SpatRasters (for dataset = 'raster') or a data frame.

Arguments

dataset

Choose the data set that should be returned.

Details

  • raster Contains a list of raster weather datasets for a sample area. The data was taken from Deutscher Wetterdienst (DWD).

  • stations Contains sample station weather data for some cities in Germany. The data was taken from Deutscher Wetterdienst (DWD). Missing global radiation values were replaced by the mean value of the other stations.

  • station_coords Contains the coordinates (longitude/latitude) of the stations that are included in the stations data set. The data was taken from Deutscher Wetterdienst (DWD).

Examples

Run this code
# \donttest{
# plot first layer of the minimum temperature of the sample raster data
terra::plot(barrks_data()$tmin[[1]])

# print the first lines of the sample station data
head(barrks_data('stations'), 10)

# print the coordinates of the sample stations
barrks_data('station_coords')
# }

Run the code above in your browser using DataLab