trajectory2station: Transform an input object into a 'station' object

View source: R/as.trajectory.R

trajectory2stationR Documentation

Transform an input object into a station object

Description

Transform a trajectory object into a station object by aggregating it in time and space.

Usage

trajectory2station(
  x,
  it = NULL,
  is = NULL,
  param = NULL,
  FUN = "count",
  longname = NULL,
  unit = NULL,
  loc = NULL
)

Arguments

x

a trajectory object

it

a time index, e.g., a range of years: c(1984,2019)

is

a spatial index, e.g., a list with longitude and latitude ranges: list(lon=c(0,45), lat=c(45,70))

param

a characteristic of the trajectories (to see options: colnames(x))

FUN

a function. If 'count' return number of trajectories, otherwise apply FUN to param

longname

variable name

unit

name of unit

loc

name of location/region

See Also

as.station as.station.trajectory


metno/esd documentation built on April 29, 2024, 3:34 p.m.