Learn R Programming

rtsdata (version 0.1.4)

ds.storage.file.csv.save: Save `xts` object into CSV file

Description

Save `xts` object into CSV file

Usage

ds.storage.file.csv.save(ds.data, file, date.format = "%Y-%m-%d")

Value

nothing

Arguments

ds.data

`xts` object

file

filename to save `xts` object

date.format

date format

Examples

Run this code
 # get sample of the fake stock data
 data = ds.getSymbol.fake.stock.data('dummy', from = '2018-02-01', to = '2018-02-13')
 filename = file.path(tempdir(), 'dummy.csv')
 ds.storage.file.csv.save(data, filename)

Run the code above in your browser using DataLab