get.latest.sim: Get name of newest file

View source: R/a-misc.R

get.latest.simR Documentation

Get name of newest file

Description

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.

Usage

get.latest.sim(type = "dyn", dir)

Arguments

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)

Value

character string with the name of the most recent simulation output file.

See Also

read.DeponsBlockdyn for example.


jacobnabe/DEPONS2R documentation built on Nov. 20, 2024, 10:22 p.m.