writeMIDAS: Write a CNOlist structure into a MIDAS file

Description Usage Arguments Author(s) See Also Examples

View source: R/writeMIDAS.R

Description

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

Usage

1
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)

Author(s)

T. Cokelaer

See Also

makeCNOlist, readMIDAS, CNOlist-class

Examples

1
2
3
4
5
   
   data(CNOlistToy)
   writeMIDAS(CNOlistToy, 'test.csv')
   readMIDAS('test.csv')
   writeMIDAS(CNOlistToy, 'test.csv', timeIndices=c(1,2), overwrite=TRUE)

CellNOptR documentation built on Nov. 8, 2020, 6:58 p.m.