get.latest.sim {DEPONS2R} | R Documentation |
Returns the name of the newest simulation output of a particular type within the specified directory. The date and time are extracted from the file name.
get.latest.sim(type = "dyn", dir)
type |
Type of simulation output to check; can be one of: "dyn" (for looking in "Statistics.XX.csv" files), "blockdyn" (for looking in "PorpoisePerBlock.XX.csv" files) "track" (for looking in "RandomPorpoise.XX.csv" files). |
dir |
Directory to look for simulation output in (character string) |
character string with the name of the most recent simulation output file.
read.DeponsBlockdyn
for example.