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

CSV file Storage model

Description

CSV file Storage model

Usage

ds.storage.file.csv(
  location = ds.default.location(),
  extension = "csv",
  date.format = "%Y-%m-%d",
  custom.folder = FALSE
)

Arguments

location

storage location, defaults to ds.default.location folder

extension

file extension, defaults to 'csv'

date.format

date format, defaults to "%Y-%m-%d" use "%Y-%m-%d %H:%M:%S" for storing intra day data

custom.folder

custom folder flag, defaults to False if flag is False default, the data is stored at the "location\src_extnsion" folder. if flag is True, the data is stored at the location folder.

Value

list with storage options

Examples

 # change the 'yahoo' data source to use CSV files to store historical data
 register.data.source(src = 'yahoo', storage = ds.storage.file.csv())


[Package rtsdata version 0.1.4 Index]