saveSpss {BETS}R Documentation

Export a time series to SPSS

Description

Writes a time series to a .spss (SPSS) file.

Usage

saveSpss(code = NULL, data = NULL, file.name = "series")

Arguments

code

An integer. The unique identifier of the series within the BETS database.

data

A data.frame or a ts. Contains the data to be written. If data is supplied, the BETS database will not be searched.

file.name

A character. The name of the output file. The default is 'series.spss'.

Examples


#Exchange rate - Free - United States dollar (purchase)
 #us.brl <- get(3691)
 #requires(seasonal)
 #us.brl.seasonally_adjusted <- seas(us.brl)
 #saveSpss(data = us.brl.seasonally_adjusted,file.name="us.brl.seasonally_adjusted")
   # Or
 #saveSpss(code=3691,file.name="us.brl")


[Package BETS version 0.4.9 Index]