readX13: Read data file for seasonal adjustment

Description Usage Arguments Value Examples

View source: R/readX13.R

Description

Read a CSV or a XLSX file or a data.frame object. The file/object must have 2 or more columns. The first one must contain the sequential date of the time series. Missing values are supported.

Usage

1
readX13(path = "", sheetNumber = 1)

Arguments

path

path to the csv/xlsx file or a data.frame object.

sheetNumber

sheet number of xlsx file.

Value

A list containing the following elements:

xts

time series in the path file.

xtsNA

a object identifying the missing observations in each series.

deniedNames

a vector naming the time series that will not be seasonally adjusted (less than three years of observation).

acceptedNames

a vector naming time series that can be seasonally adjusted.

path

path to the csv/xlsx file

Examples

1
2
3
4
5
# load data example
data(serviceSurvey)

# read the object for seasonal adjustment
data <- readX13(serviceSurvey)

nmecsys/NMECX13 documentation built on Oct. 22, 2021, 6:41 a.m.