Learn R Programming

CellNOptR (version 1.18.0)

writeMIDAS: Write a CNOlist structure into a MIDAS file

Description

This function takes a CNOlist structure (output of makeCNOlist and readMIDAS) and save it a MIDAS format.

Usage

writeMIDAS(CNOlist, filename, timeIndices=NULL, overwrite=FALSE)

Arguments

CNOlist
a CNOlist structure
filename
a filename. Not overwritten if it exists already
timeIndices
select subset of the times to be saved. Works with indices (not time values)
overwrite
overwrite the file if it exists already (Default is FALSE)

See Also

makeCNOlist, readMIDAS, CNOlist-class

Examples

Run this code
   tmpdir<-tempdir()
   setwd(tmpdir)
   data(CNOlistToy)
   writeMIDAS(CNOlistToy, 'test.csv')
   readMIDAS('test.csv')
   writeMIDAS(CNOlistToy, 'test.csv', timeIndices=c(1,2), overwrite=TRUE)

Run the code above in your browser using DataLab