gsodDf2Sp: Convert GSOD station list to spatial object

View source: R/gsodDf2Sp.R

gsodDf2SpR Documentation

Convert GSOD station list to spatial object

Description

This function converts the list of available GSOD stations from data.frame to SpatialPointsDataFrame.

Usage

gsodDf2Sp(data, ...)

Arguments

data

data.frame. Usually built-in gsodstations.

...

Additional arguments. Currently not in use.

Value

An object of class SpatialPointsDataFrame.

Author(s)

Florian Detsch

Examples

# Convert station list to spatial object
gsod_shp <- gsodDf2Sp(data = gsodstations)

if (interactive()) {
  plot(gsod_shp)
}


environmentalinformatics-marburg/GSODTools documentation built on Jan. 5, 2024, 12:19 a.m.