Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

convert

A function to convert in data.frame a zoo or ts object


Description

This function converts an object of class ts or zoo in a data.frame with a column named time retrieved from index(x). It is designed for those unfamiliar with time series objects.

Usage

convert(x, year=NULL)

Arguments

x

An object of class ts or zoo

year

A vector of length one with year of observation. If provided, a column with time in POSIX format is also returned

Details

An object of class data.frame is returned with a column doy and optionally time at the end of the table.

Value

A dataframe

Author(s)

Gianluca Filippa <gian.filippa@gmail.com>


phenopix

Process Digital Images of a Vegetation Cover

v2.4.2
GPL-2
Authors
Gianluca Filippa, Edoardo Cremonese, Mirco Migliavacca, Marta Galvagno, Matthias Folker, Andrew D. Richardson, Enrico Tomelleri
Initial release
2020-09-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.