Description Usage Arguments Details Value Author(s)
Convenience function to point to the correct location of sitrep files on the E drive.
1 2 3 4 5 6 7 8 9 10 | sitrep_file(
view = .views_avbl(),
previous = FALSE,
latest = FALSE,
data_source = NULL,
request_time = Sys.time(),
fst = FALSE,
must_exist = !fst,
exact = FALSE
)
|
view |
One of the (given) strings, which file to read. The argument is called 'view' reflecting the SQL notion of a View.
Partial matches are accepted, and if multiple matches are plausible then the best is chosen, with a message. |
previous, latest |
(TRUE or FALSE, default: |
data_source |
Which data to use? One of By default, the values of |
request_time |
( |
fst |
(TRUE or FALSE, default: |
must_exist |
(TRUE or FALSE, default: negation of |
exact |
|
The following columns (if present) are modified in the following way:
*Date
Any columns with 'Date' in their name will be coerced to Date
class.
Classification
Missing values are coalesced to dhhs:::CLASSIFICIATION_MISSING_VALUE_ALIAS()
.
AgeGroupTenYr
Missing values are coalesced to dhhs:::AGEGROUP_MISSING_VALUE_ALIAS()
and "00-09" is mapped to "0-9".
Latitude,Longitude
Any rows where Latitude > 90
are assumed to be rows where the
latitude and longitude are confused/entered the wrong way and are switched back. Values of -999
are set to NA_real_
.
A string, the path to the file requested.
A data.table
, the file requested.
Hugh Parsonage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.