ds.storage.file.csv.load {rtsdata}R Documentation

Load data from CSV file into 'xts' object

Description

Load data from CSV file into 'xts' object

Usage

ds.storage.file.csv.load(file, date.col = NULL, date.format = "%Y-%m-%d")

Arguments

file

CSV file

date.col

date column

date.format

date format

Value

xts object with loaded data

Examples

 # 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)
 ds.storage.file.csv.load(filename)


[Package rtsdata version 0.1.4 Index]