fts (version 0.7.5)

read.write.fts: Read / Write Files

Description

Read / Write files to csv or .RDS format

Usage

read.rds.fts(file)
write.rds.fts(x,file)

read.csv.fts(file, date.format, ...) write.csv.fts(x, file, date.format, ...)

Arguments

x
An Fts object
file
filename of file to read/write
date.format
a format string specifying the date format to use when reading / writing dates
...
further arguments to underlying read/write functions

Value

  • a Fts object for functions that read data

Examples

Run this code
x <- fts()
colnames(x) <- "big.ass.black.dog"

csv.fname <- paste(tempfile(),".csv",sep="")
write.csv.fts(x,csv.fname)
y.csv <- read.csv.fts(csv.fname)

all.equal(x,y.csv)

rds.fname <- paste(tempfile(),".fts",sep="")
write.rds.fts(x,rds.fname)
y.rds <- read.rds.fts(rds.fname)
all.equal(x,y.rds)

Run the code above in your browser using DataLab