R: Convert time series to data frame

ts2df {GMD} | R Documentation

## Convert time series to data frame

### Description

A copy of wq:::ts2df; see `ts2df` in package:wq for details

### Usage

    ts2df(x, mon1 = 1, addYr = FALSE, omit = FALSE)

### Arguments

`x` | monthly time series vector
`mon1` | starting month number, i.e., first column of the data frame
`addYr` | rows are normally labelled with the year of the starting month, but `addYr = TRUE` will add 1 to this year number
`omit` | if `TRUE`, then rows with any `NA` will be removed.

### Details

see `ts2df` in package:wq for details. Note: wq_0.3-4 asks for R (>= 2.12.0); but GMD supports R (>= 2.9.0).

[Package GMD version 0.3.3 Index]