Learn R Programming

BETS (version 0.4.9)

saveSpss: 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

Run this code
# NOT RUN {
#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")

# }

Run the code above in your browser using DataLab