Create a 'gts' object.

as.gts(x, ...)

gts(x, ...)

# S3 method for class 'ncdf4'
gts(x, varid = NULL, climatology = FALSE, control = list(), ...)

# S3 method for class 'array'
gts(
  x,
  varid = NULL,
  grid,
  data = NA,
  start = 1,
  end = numeric(),
  frequency = 1,
  deltat = 1,
  climatology = FALSE,
  long_name = NULL,
  unit = NULL,
  control = list(),
  ...
)

Arguments

x

An array-like object to be a gridded time-series.

...

Additional arguments to be passed to different methods.

varid

Name of the variable (e.g. from a ncdf file).

control

A list with control arguments for the creation of a gts object. See details.

Value

A 'gts' object.