A function that writes a correctly formatted .csv file from a DLMtool / MSEtool Data object
Data2csv(Data, file = NULL, simno = 1, overwrite = F, keepNAs = T)
An object of class 'Data'.
Character string. The name of the location and file you wish to create (e.g. "C:/temp/mydata.csv")
Integer. An optional argument to specify the simulation number if writing simulated data
Boolean. Should existing data files be automatically overwritten.
Boolean. Should slots with NAs still be written to the data file.