surveillance (version 1.12.1)

toFileDisProg: Writing of Disease Data

Description

Writing of disease data (disProg object) into a file.

Usage

toFileDisProg(disProgObj, toFile)

Arguments

disProgObj
The disProgObj to save in file
toFile
The path and filename of the file to save

Value

  • fileThe file with the disease data

Details

Writing of disProg object into a file as illustrated in the example.

See Also

readData, sim.pointSource

Examples

Run this code
disProgObj <- sim.pointSource(length=200, K=1)
    toFileDisProg(disProgObj, "./simulation.txt")
    mydisProgObj <- readData("./simulation",sysPath=FALSE)

Run the code above in your browser using DataCamp Workspace