R/siteFile.R

Defines functions siteFile

## siteFile: return the full path to a file for a given year, project, site
##
siteFile = function(file, proj, site, year = lubridate::year(Sys.time())) {
    rv = file.path(sitePath(proj, site, year), sprintf("%4d_%s_%s%s", as.integer(year), proj, site, file))
    return (rv[file.exists(rv)])
}
jbrzusto/sensorgnome-R-package documentation built on May 18, 2019, 9:19 p.m.