analyse_dwelling.Rd
The function performs several analysis in order to check the validity and the
consistency of the calculations made by functions extract_building
and
extract_dwelling
over the BD Topo (version 3). The function focuses
by default on residential constructions. In addition to returning a list, the
function creates tables in csv format and png image files in path.
analyse_dwelling(
origin,
destination = gsub("building", "dwelling", origin),
archive,
category = "Résidentiel",
dwelling_mean_surf = (90 * 1.2),
report = TRUE,
retrieve = TRUE,
verbose = TRUE
)
character, path to the directory where archive are stored.
character, path to the directory where output should be
saved. The function expects it to be the same provided to function.
extract_dwelling
if it has been previously invoked in the analysis.
Default to same path as origin but substituting automatically keyword
'building' by keyword 'dwelling' when possible
character, vector of filenames to be processed. If missing, analyse_dwelling is recursively called on all admissible archives found in origin.
character, focus of the analysis. Default to "Résidentiel".
numeric, average surface of a dwelling in France. Default to 90 m^2, which is from adapted to the GT AMC's methodology.
logical, should the function create a summary report with the outputs. Default to TRUE.
logical, should the output of the function be returned.
logical, should the function send some messages while running.
A list of analysis if 'retrieve = TRUE'.
if (FALSE) {
# calling function. Long version
tab_building = analyse_dwelling(
archive = "bdtopo-building-2022-03-15-D034.rds",
origin = path_building,
destination = path_dwelling,
category = "Résidentiel",
vintage = "2022-03-15"
)
# calling function. short version
tab_building = analyse_dwelling(
archive = "bdtopo-building-2022-03-15-D034.rds",
origin = path_building,
destination = path_dwelling
)
# calling function. recursive version
analyse_dwelling(origin = path_building)
}