convert: A function to convert in data.frame a 'zoo' or 'ts' objct

Description Usage Arguments Details Value Author(s)

View source: R/convert.R

Description

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

Usage

1
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 documentation built on May 2, 2019, 4:50 p.m.