pTs: Create a pTs object

View source: R/get-seasonal-cycle-parameters.R

pTsR Documentation

Create a pTs object

Description

pTs objects are enhanced time-series ts objects. pTs() adds attributes such as longitude and latitude to a time series vector/time series vectors (having the same time basis) and assigns the class "pTs" to the resulting object

Usage

pTs(data, time, lat = 0, lon = 0, name = "", history = "", date = TRUE)

Arguments

data

a vector, matrix or ts object

time

vector

lat

vector of length 1

lon

vector of length 1

name

character string, name of the pTs object to be generated

history

character string to append to the history attribute

date

logical, whether or not to append the current date to the history attribute

Value

pTs object

Author(s)

Thomas Laepple

Source

Function copied from "proxytype.R" in paleolibary/src/


EarthSystemDiagnostics/orbitalforcing documentation built on March 24, 2022, 11:25 a.m.