diff --git a/DESCRIPTION b/DESCRIPTION index 1dd315f3e42a0943fc9437c51182bf839ef2d3d4..71022ac5daab33141376dec979b0565223ddd55e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: floodam.data Title: Collect and Process Data on Flood Damage (French Context) -Version: 0.9.34.1 +Version: 0.9.35.0 Authors@R: c( person(given = "Frédéric", family = "Grelot", @@ -48,5 +48,6 @@ Imports: Suggests: DT, testthat +Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.2 VignetteBuilder: knitr diff --git a/NAMESPACE b/NAMESPACE index fb9f6eeed6d41befb59231612ce3e7baf503c0bc..b1998aa561162db53943ea24d25e8b785e29fdae 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,30 +1,33 @@ # Generated by roxygen2: do not edit by hand -export(adapt.admin_express) export(adapt.eaip) export(adapt.geo_sirene) +export(adapt_admin_express) export(adapt_ban) export(adapt_gaspar) export(adapt_rpg) -export(add_journal_new) +export(add_journal) export(add_log_info) export(add_transparency) export(alert_gaspar) export(alert_mattermost) +export(analyse_archive) export(analyse_catnat) export(analyse_dwelling) export(analyse_intersection) export(analyse_ppr) export(analyse_ppr_state) export(apply_scheme) +export(basename_core) +export(basename_ext) export(complete_pattern) export(create_date) export(create_month) export(define_path) -export(download.admin_express) export(download.insee) export(download.ppr) export(download.rpg) +export(download_admin_express) export(download_archive) export(download_ban) export(download_bd_topo) @@ -44,9 +47,15 @@ export(plot_construction_date) export(prepare.stat.log) export(qq_developed_dwelling) export(qq_height_level) +export(read_csv_with_scheme) +export(read_gpkg_from_7z) export(read_gpkg_layer) +export(read_gpkg_with_scheme) +export(read_shp_from_7z) +export(read_shp_with_scheme) export(read_url) export(read_with_scheme) +export(save_archive) export(send_message) export(shp_from_7z) export(summarise_dwelling) diff --git a/R/adapt.eaip.R b/R/adapt.eaip.R index 51e5dbac0a02fad754af0a02e0c9e40a79b1fa19..32c6ab62d732b4628a7ace73dfc279b6eb77d0ee 100644 --- a/R/adapt.eaip.R +++ b/R/adapt.eaip.R @@ -64,11 +64,11 @@ adapt.eaip = function(origin, ### Start journal information dir.create(destination, showWarnings = FALSE, recursive = TRUE) # Check if error may be generated. start_time = Sys.time() - journal = add_journal("WARNING: This file is automatically produced by floodam.data. Do not edit by hand.", "") + journal = add_journal_old("WARNING: This file is automatically produced by floodam.data. Do not edit by hand.", "") shp = dir(origin, "[.]shp$") if (! format_scope(department, type = "insee") %in% floodam.data::department[["code"]]) { - journal = add_journal( + journal = add_journal_old( sprintf("'%s' is not a good format for department. Nothing is done.", department), verbose = TRUE, first = TRUE ) @@ -79,12 +79,12 @@ adapt.eaip = function(origin, ### Preliminary tests if (length(shp) == 0) { - journal = add_journal("No shapefiles found.", verbose = TRUE, first = TRUE) + journal = add_journal_old("No shapefiles found.", verbose = TRUE, first = TRUE) return(NULL) } shp = grep(sprintf("d%2s", department), shp, value = TRUE) if (length(shp) == 0) { - journal = add_journal( + journal = add_journal_old( sprintf("Nothing corresponding to department '%s' found in %s", department, origin), verbose = TRUE, first = TRUE ) @@ -92,12 +92,12 @@ adapt.eaip = function(origin, } ### Add journal information - journal = add_journal( + journal = add_journal_old( sprintf("Department %s treated through adaptation of %s from %s by floodam.data (%s)", department, paste(shp, collapse = ", "), origin, utils::packageVersion("floodam.data")), journal = journal, verbose = verbose, first = TRUE) - on.exit(journal <- add_journal( + on.exit(journal <- add_journal_old( sprintf("Time elapsed: %s", fmt(Sys.time() - start_time)), journal = journal, verbose = verbose)) on.exit(write(journal, file.path(destination, sprintf("%s.log", archive))), add = TRUE) @@ -109,7 +109,7 @@ adapt.eaip = function(origin, ### Check projection if (is.na(sf::st_crs(input[[i]]))) { sf::st_crs(input[[i]]) = 2154 - journal = add_journal( + journal = add_journal_old( sprintf("%s has no projection. Set to EPSG:2154.", shp[i]), journal = journal, verbose = verbose) } @@ -120,11 +120,11 @@ adapt.eaip = function(origin, projection = if ("crs" %in% class(temp)) temp else projection if ("crs" %in% class(projection)) { input[[i]] = sf::st_transform(input[[i]], crs = projection) - journal = add_journal( + journal = add_journal_old( sprintf("projection %s applied to %s.", projection[["input"]], shp[i]), journal = journal, verbose = verbose) } else { - journal = add_journal( + journal = add_journal_old( sprintf("projection %s could not be applied to %s.", projection, shp[i]), journal = journal, verbose = verbose) } @@ -144,12 +144,12 @@ adapt.eaip = function(origin, } result = do.call(rbind, lapply(input, "[", variable)) variable_original = unique(unlist(lapply(input, names))) - journal = add_journal( + journal = add_journal_old( sprintf("%s shapefile(s) combined. %s variable(s) discarded for consistency. %s variable(s) kept.", length(input), max(sapply(input, ncol) - length(variable)), length(variable)), journal = journal, verbose = verbose) if (length(variable) < length(variable_original)) { - journal = add_journal( + journal = add_journal_old( sprintf("present variable(s) discarded: %s.", paste(variable_original[! variable_original %in% variable], collapse = ", ")), journal = journal, verbose = verbose) @@ -157,7 +157,7 @@ adapt.eaip = function(origin, if (!is.null(variable_common)) { discarded_common = variable_common[! variable_common %in% variable] if (length(discarded_common) > 0) { - journal = add_journal( + journal = add_journal_old( sprintf("WARNING: common variable(s) discarded: %s. Added with NA values.", paste(discarded_common, collapse = ", ")), journal = journal, verbose = verbose) @@ -175,23 +175,23 @@ adapt.eaip = function(origin, area_final = sum(sf::st_area(result)) area_diff = area_final - area_initial n_final = nrow(result) - journal = add_journal("Geometry validity applied.", journal = journal, verbose = verbose) - journal = add_journal( + journal = add_journal_old("Geometry validity applied.", journal = journal, verbose = verbose) + journal = add_journal_old( sprintf("\t%s original entities divided in %s polygons", n_initial, n_final), journal = journal) - journal = add_journal( + journal = add_journal_old( sprintf("\tinitial area: \t%+14.2f\t(%s)", area_initial, as.character(attr(area_initial, "units"))), journal = journal) - journal = add_journal( + journal = add_journal_old( sprintf("\tfinal area: \t%+14.2f\t(%s)", area_final, as.character(attr(area_final, "units"))), journal = journal) - journal = add_journal( + journal = add_journal_old( sprintf("\tdiff of area: \t%+14.2f\t(%s)", area_diff, as.character(attr(area_diff, "units"))), journal = journal) - journal = add_journal( + journal = add_journal_old( sprintf("\trelative diff:\t%+14.2f", area_diff / area_initial), journal = journal) @@ -200,11 +200,11 @@ adapt.eaip = function(origin, ### Save result, print journal, retrieve result if (identical(export, "rds")) { saveRDS(result, file.path(destination, sprintf("%s.%s", archive, export))) - journal = add_journal( + journal = add_journal_old( sprintf("saved as %s in %s.", sprintf("%s.%s", archive, export), destination), journal = journal, verbose = verbose) } else { - journal = add_journal( + journal = add_journal_old( sprintf("%s not admissible as export: adaptation not saved.", export), journal = journal, verbose = verbose) } diff --git a/R/adapt.geo_sirene.R b/R/adapt.geo_sirene.R index f68a1385849540ccb637ed571053247bd94415ca..e069d0622ce14ae957a82c9724fb9d2a8e045740 100644 --- a/R/adapt.geo_sirene.R +++ b/R/adapt.geo_sirene.R @@ -79,15 +79,15 @@ adapt.geo_sirene = function(origin, ### Start journal information dir.create(destination, showWarnings = FALSE, recursive = TRUE) # Check if error may be generated. start_time = Sys.time() - journal = add_journal( + journal = add_journal_old( "WARNING: This file is automatically produced by floodam.data. Do not edit by hand.", "", "Contents", "\t1. General log informations", "\t2. Stats on removed data", "\t3. Stats on exposition", "", first = TRUE) - journal = add_journal( + journal = add_journal_old( sprintf("%s from '%s' adpated by floodam.data (%s)", archive, location, utils::packageVersion("floodam.data")), journal = journal, verbose = verbose, first = TRUE) - journal = add_journal(sprintf("Starting time: %s", Sys.time()), journal = journal, verbose = verbose) - on.exit(journal <- add_journal("", + journal = add_journal_old(sprintf("Starting time: %s", Sys.time()), journal = journal, verbose = verbose) + on.exit(journal <- add_journal_old("", sprintf("Total time elapsed for %s from '%s': %s", name, location, fmt(Sys.time() - start_time)), journal = journal, verbose = verbose, first = TRUE)) on.exit(write(journal, file.path(destination, sprintf("%s.%s", name, "log"))), add = TRUE) @@ -120,7 +120,7 @@ adapt.geo_sirene = function(origin, result[selection] = lapply(result[selection], as.Date) for (var in selection) { if (all(is.na(result[[var]]))) { - journal = add_journal(sprintf("Possible format error for '%s'. All values are NA.", var), + journal = add_journal_old(sprintf("Possible format error for '%s'. All values are NA.", var), journal = journal, verbose = verbose) } } @@ -132,7 +132,7 @@ adapt.geo_sirene = function(origin, selection = rownames(scheme)[scheme[["type"]] == "logical"] for (var in selection) { if (all(is.na(result[[var]]))) { - journal = add_journal(sprintf("Possible format error for '%s'. All values are NA.", var), + journal = add_journal_old(sprintf("Possible format error for '%s'. All values are NA.", var), journal = journal, verbose = verbose) } } @@ -140,16 +140,16 @@ adapt.geo_sirene = function(origin, # Check type test = sapply(result, class) == scheme[["type"]] if (all(test)) { - journal = add_journal("All variables have the good type.", journal = journal, verbose = verbose) + journal = add_journal_old("All variables have the good type.", journal = journal, verbose = verbose) } else { - journal = add_journal( + journal = add_journal_old( sprintf("Some variables do not have the good type. Check %s.", paste("'", names(test)[!test], "'", sep = "", collapse = ", ")), journal = journal, verbose = verbose) } int_time = Sys.time() - journal = add_journal( + journal = add_journal_old( sprintf("Time elapsed: %s", fmt(int_time - start_time)), journal = journal, verbose = verbose) @@ -165,7 +165,7 @@ adapt.geo_sirene = function(origin, stat_eaip = list() for (d in names(result)) { - journal = add_journal("", + journal = add_journal_old("", sprintf("Treating department %s in %s from '%s'.", d, name, location), journal = journal, verbose = verbose, first = TRUE) @@ -175,7 +175,7 @@ adapt.geo_sirene = function(origin, stat = table(result[[d]][c("state", "coord")]) colnames(stat) = c("missing", "present") - journal = add_journal( + journal = add_journal_old( sprintf("Observations removed due to missing spatial coordinates: %s over %s, %s remaining (%1.1f%%)", sum(stat[, "missing"]), sum(stat), sum(stat[, "present"]), sum(stat[, "present"]) / sum(stat) * 100), @@ -198,11 +198,11 @@ adapt.geo_sirene = function(origin, ) } if ("try-error" %in% class(eaip)) { - journal = add_journal(sprintf("'eaip' analysis not included: '%s' is not a path to an rds archive.", path), + journal = add_journal_old(sprintf("'eaip' analysis not included: '%s' is not a path to an rds archive.", path), journal = journal, verbose = verbose) } else if (!"sf" %in% class(eaip)) { - journal = add_journal( + journal = add_journal_old( sprintf("'eaip' analysis not included: '%s' is not a sf object.", path), journal = journal, verbose = verbose) @@ -213,7 +213,7 @@ adapt.geo_sirene = function(origin, stat = table(unclass(result[[d]])[c("state", "eaip")]) colnames(stat) = c("out", "in") - journal = add_journal( + journal = add_journal_old( sprintf("'eaip' analysis included: %s in eaip over %s (%1.1f%%)", sum(stat[, "in"]), sum(stat), sum(stat[, "in"]) / sum(stat) * 100), journal = journal, verbose = verbose) @@ -224,12 +224,12 @@ adapt.geo_sirene = function(origin, ### Ordering selection = order_by[order_by %in% names(result[[d]])] if (length(selection) == 0) { - journal = add_journal( + journal = add_journal_old( "Result unsorted. 'order_by' does not contain any admissible name for geo_sirene data.", journal = journal, verbose = verbose) } else { result[[d]] = result[[d]][do.call(order, unclass(result[[d]])[selection]), ] - journal = add_journal( + journal = add_journal_old( sprintf("Result sorted by %s", paste("'", selection, "'", sep = "", collapse = " + ")), journal = journal, verbose = verbose) } @@ -242,7 +242,7 @@ adapt.geo_sirene = function(origin, path = file.path(destination, sprintf("%s-%s.%s", name, d, "rds")) } saveRDS(result[[d]], path) - journal = add_journal( + journal = add_journal_old( sprintf("Result saved as %s. Size: %s (%0.3f of inital)", path, file.info(path)[["size"]], file.info(path)[["size"]] / size), journal = journal, verbose = verbose) @@ -255,19 +255,19 @@ adapt.geo_sirene = function(origin, path = file.path(destination, sprintf("%s-%s.%s", name, d, "fst")) } fst::write.fst(result[[d]], path, compress = 100) - journal = add_journal( + journal = add_journal_old( sprintf("Result saved as %s. Size: %s (%0.3f of inital)", path, file.info(path)[["size"]], file.info(path)[["size"]] / size), journal = journal, verbose = verbose) } if (all(! export %in% c("rds", "fst"))) { - journal = add_journal( + journal = add_journal_old( sprintf("Result not saved: '%s' not admissible as export", export), journal = journal, verbose = verbose) } - journal = add_journal( + journal = add_journal_old( sprintf("Time elapsed: %s", fmt(Sys.time() - int_time)), journal = journal, verbose = verbose) int_time = Sys.time() diff --git a/R/adapt.admin_express.R b/R/adapt_admin_express.R similarity index 52% rename from R/adapt.admin_express.R rename to R/adapt_admin_express.R index 3f064a5529110b10d4e027351fc07988ac5e4b12..d227dc01ba6fd9700de7defc70d62c97505fe03a 100644 --- a/R/adapt.admin_express.R +++ b/R/adapt_admin_express.R @@ -1,28 +1,47 @@ -#' @title Adapt ADMIN EXPRESS data +#' @title Adapt Admin Express archives #' #' @description +#' \code{adapt_admin_express} treats Admin Express archives to be in a standard +#' format. It is suited for IGN archives. It used by default +#' \code{scheme_admin_express_3_1} as scheme. For older versions +#' \code{scheme_admin_express_2_0} is also available. +#' +#' Beware that code{adapt_admin_express} will perform all possibles combinations +#' of archives present in origin and layers available in scheme if those +#' parameters are not specified. +#' +#' @details #' The following treatment are performed: -#' - the projection is set to projection -#' - the geometry is made valid -#' - the output is saved as rds in given destination -#' - for COMMUNE layer, the output is saved at department level #' -#' @param origin character, path to the directory where archive are stored -#' @param destination character, path to the directory where results should be saved -#' @param archive character, vector of archive to be adpated -#' @param export character, option for export format of the results -#' @param scheme data.frame, how archive variables should be treated -#' @param layer character, wchi layer should be treated -#' @param projection integer or object of type CRS giving projection -#' @param retrieve logical, should the result be returned +#' - depending on how many archives and layers are to be treated, a recursive +#' call may be perform to do all desired combinations. +#' - archive is read with [read_with_scheme()], which may imply that it is +#' uncompressed, then read (usually as a shp or a gpkg file), reprojected if +#' asked, and finally adapted. +#' - the output is saved as rds in given destination withe[save_archive()]. The +#' name of archive include a precision depending on the layer chosen. For layer +#' 'COMMUNE', the saving is made by departments. +#' +#' @param origin character, path to the directory where archive are stored. +#' @param destination character, path to the directory where results should be +#' saved. +#' @param archive character, vector of archive to be adpated. +#' @param layer character, which layer should be treated. +#' @param scheme data.frame, how archive variables should be treated. +#' @param projection integer or object of type CRS giving projection. +#' @param extension character, option for extension and so format of saving of +#' results. +#' @param journal logical, should a journal file be saved. +#' @param retrieve logical, should the result be returned. #' @param verbose logical, should the function give some sumup informations. #' #' @return if retrieve = TRUE, sf object of adapated data stored in archive. +#' This may be a list if the function implies recursive calls. #' #' @export #' #' @encoding UTF-8 -#' @author Victor Champonnois et Frédéric Grelot +#' @author Frédéric Grelot and Victor Champonnois #' #' @examples #' @@ -33,6 +52,156 @@ #' result = adapt_rpg(archive, origin, destination, verbose = TRUE, retrieve = TRUE) #' } +adapt_admin_express = function( + origin, + destination, + archive, + layer = NULL, + scheme = floodam.data::scheme_admin_express_3_1, + projection = 4326, + extension = "rds", + journal = TRUE, + retrieve = FALSE, + verbose = TRUE +) { + + # If archive is missing, treat all archives in origin + if (missing(archive)) { + archive = list.files(origin, pattern = ".(7z.001|7z|zip)$") + } + # Recursive call if archive is lengthy + if (length(archive) > 1) + return( + lapply( + archive, + adapt_admin_express, + origin = origin, + layer = layer, + destination = destination, + scheme = scheme, + projection = projection, + extension = extension, + journal = journal, + retrieve = retrieve, + verbose = verbose + ) + ) + if (length(archive) == 0) return(NULL) + + # Recursive call if layer is lengthy + if (is.null(layer)) layer = unique(scheme[["layer"]]) + layer = layer[layer %in% unique(scheme[["layer"]])] + if (length(layer) > 1) + return( + lapply( + layer, + adapt_admin_express, + origin = origin, + destination = destination, + archive = archive, + scheme = scheme, + projection = projection, + extension = extension, + journal = journal, + retrieve = retrieve, + verbose = verbose + ) + ) + if (length(layer) == 0) return(NULL) + + # Analyse archive + archive = file.path(origin, archive) + message(sprintf("'Admin Express' adaptation from '%s'...\n", basename(archive))) + old_s2 = suppressMessages(sf::sf_use_s2(FALSE)) + on.exit(suppressMessages(sf::sf_use_s2(old_s2))) + analyse = analyse_archive(basename(archive)) + + # Start journal + if (journal == TRUE) { + journal = file.path( + destination, + sprintf("%s.log", basename_core(archive)) + ) + init_log_info( + journal, + main = sprintf("%s in %s", basename(archive), origin), + treatment = "adapt_admin_express", + ) + } else { + journal = FALSE + } + + # Check analyse + if (is.na(analyse["data"])) { + add_log_info( + "Bad format for archive. Nothing is done.", + message, + info = list( + "short" = "skip analysis", + "long" = "Skip analysis: archive name with bad format." + ), + journal = journal, verbose = verbose + ) + return(NULL) + } + + # Reading archive with scheme information + result = add_log_info( + archive, + read_with_scheme, + info = list( + "short" = "read 'admin express'", + "long" = "Reading original 'admin express' archive and applying scheme" + ), + journal = journal, verbose = verbose, + verification = expression(info_dim(result)), + scheme = scheme, + projection = projection, + layer = layer + ) + + # Save data + ## Prepare parameters + precision = switch( + layer, + DEPARTEMENT = "department", + COMMUNE = "commune", + EPCI = "epci", + REGION = "region", + NA + ) + scope = switch( + precision, + commune = "department", + NULL + ) + analyse["precision"] = precision + analyse["extension"] = extension + test = !is.na(analyse[["vintage"]]) && + !grepl(analyse["vintage"], destination) + if (test) {destination = file.path(destination, analyse[["vintage"]])} + dir.create(destination, showWarnings = FALSE, recursive = TRUE) + + add_log_info(result, save_archive, + info = list( + "short" = "save", + "long" = sprintf("Saving %s layer", layer) + ), + journal = journal, verbose = verbose, + verification = expression(object.size(x)), + path = file.path( + destination, + format_archive(analyse) + ), + scope = scope + ) + + # Retrieve result + if (retrieve) { + return(invisible(result)) + } +} + adapt.admin_express = function(origin, destination, archive, @@ -60,17 +229,17 @@ adapt.admin_express = function(origin, return(NULL) ### Check for layer. Recursive call if layer is lengthy - if (is.null(layer)) layer = unique(floodam.data::scheme_admin_express[["layer"]]) - test = ! layer %in% unique(floodam.data::scheme_admin_express[["layer"]]) + if (is.null(layer)) layer = unique(scheme[["layer"]]) + test = ! layer %in% unique(scheme[["layer"]]) if (any(test)) { - add_journal( + add_journal_old( sprintf("Some layers are not admissible (%s). They are removed.", paste(layer[test], collapse = ", ")), verbose = TRUE ) layer = layer[!test] } if (length(layer) == 0) { - add_journal("No layer is admissible. Nothing is done", verbose = TRUE) + add_journal_old("No layer is admissible. Nothing is done", verbose = TRUE) return(NULL) } if (length(layer) > 1) @@ -89,7 +258,7 @@ adapt.admin_express = function(origin, # Step 1. Good format to uncompress analyse = regmatches(archive, regexec("(.*?)[.](7z[.]001|7z|zip)$", archive, perl = TRUE))[[1]] if (length(analyse) == 0) { - add_journal(sprintf("Trouble with name format of archive %s. Nothing is done.", archive), verbose = TRUE) + add_journal_old(sprintf("Trouble with name format of archive %s. Nothing is done.", archive), verbose = TRUE) return(NULL) } name = analyse[2] @@ -97,7 +266,7 @@ adapt.admin_express = function(origin, # Step 2. Good information for date. analyse = regmatches(name, regexec("([0-9]{4}-[0-9]{2}-[0-9]{2})", name, perl = TRUE))[[1]] if (length(analyse) == 0) { - add_journal(sprintf("Trouble with name format of archive %s. Nothing is done.", archive), verbose = TRUE) + add_journal_old(sprintf("Trouble with name format of archive %s. Nothing is done.", archive), verbose = TRUE) return(NULL) } date = analyse[2] @@ -105,14 +274,14 @@ adapt.admin_express = function(origin, ### Start journal information dir.create(destination, showWarnings = FALSE, recursive = TRUE) # Check if error may be generated. start_time = Sys.time() - journal = add_journal( + journal = add_journal_old( "WARNING: This file is automatically produced by floodam.data. Do not edit by hand.", "", first = TRUE) - journal = add_journal( + journal = add_journal_old( sprintf("%s/%s adpated by floodam.data (%s)", archive, layer, utils::packageVersion("floodam.data")), journal = journal, verbose = verbose, first = TRUE) - journal = add_journal(sprintf("Starting time: %s", Sys.time()), journal = journal, verbose = verbose) - on.exit(journal <- add_journal("", + journal = add_journal_old(sprintf("Starting time: %s", Sys.time()), journal = journal, verbose = verbose) + on.exit(journal <- add_journal_old("", sprintf("Total time elapsed %s", fmt(Sys.time() - start_time)), journal = journal, verbose = verbose, first = TRUE)) on.exit(write(journal, file.path(destination, sprintf("%s_%s.%s", name, layer, "log"))), add = TRUE) @@ -129,7 +298,7 @@ adapt.admin_express = function(origin, silent = TRUE) if (length(list.files(path_temp, ".shp")) == 0) { - journal = add_journal( + journal = add_journal_old( sprintf("Aborting, no %s shapefiles found in %s.", layer, archive), journal = journal, verbose = verbose) unlink(path_temp, recursive = TRUE) @@ -144,7 +313,7 @@ adapt.admin_express = function(origin, stringsAsFactors = FALSE, quiet = TRUE) ) - journal = add_journal( + journal = add_journal_old( sprintf("Layer %s successfully loaded.", layer), journal = journal, verbose = verbose) @@ -167,9 +336,9 @@ adapt.admin_express = function(origin, # Add information to journal test = sapply(input, class) == sub_scheme[["type"]] if (all(test)) { - journal = add_journal("All variables have the good type.", journal = journal, verbose = verbose) + journal = add_journal_old("All variables have the good type.", journal = journal, verbose = verbose) } else { - journal = add_journal( + journal = add_journal_old( sprintf("Some variables do not have the good type. Check %s.", paste("'", names(test)[!test], "'", sep = "", collapse = ", ")), journal = journal, verbose = verbose) @@ -181,7 +350,7 @@ adapt.admin_express = function(origin, # Check if any projection, if not put default one if (is.na(sf::st_crs(input))) { sf::st_crs(input) = 4326 - journal = add_journal( + journal = add_journal_old( sprintf("%s/%s has no projection. Set to EPSG:4326.", archive, layer), journal = journal, verbose = verbose) } @@ -191,11 +360,11 @@ adapt.admin_express = function(origin, projection = if ("crs" %in% class(temp)) temp else projection if ("crs" %in% class(projection)) { input = sf::st_transform(input, crs = projection) - journal = add_journal( + journal = add_journal_old( sprintf("projection %s applied to %s/%s.", projection[["input"]], archive, layer), journal = journal, verbose = verbose) } else { - journal = add_journal( + journal = add_journal_old( sprintf("projection %s could not be applied to %s/%s.", projection, archive, layer), journal = journal, verbose = verbose) } @@ -210,7 +379,7 @@ adapt.admin_express = function(origin, final.area = sum(sf::st_area(input)) diff.area = round((final.area - initial.area) / initial.area, 10) unselected = length(geometry_type) - sum(selection) - journal = add_journal( + journal = add_journal_old( sprintf("Layer %s corrected (Diff in area %s, unselected %s).", layer, diff.area, unselected), journal = journal, verbose = verbose) @@ -223,11 +392,11 @@ adapt.admin_express = function(origin, input, file.path(destination, sprintf("%s_%s_%s.rds", tolower(layer), format_scope(names(input)), date)) ) - journal = add_journal(sprintf("Layer %s saved by department (%s files generated).", layer, length(input)), + journal = add_journal_old(sprintf("Layer %s saved by department (%s files generated).", layer, length(input)), journal = journal, verbose = verbose) } else { saveRDS(input, file.path(destination, sprintf("%s_%s.rds", tolower(layer), date))) - journal = add_journal(sprintf("Layer %s saved.", layer), + journal = add_journal_old(sprintf("Layer %s saved.", layer), journal = journal, verbose = verbose) } diff --git a/R/adapt_ban.R b/R/adapt_ban.R index 2a473be5f2218342d5183aeffc4cd9aadf375cff..ea748be759b30f2be712854c7201394342e0b8db 100644 --- a/R/adapt_ban.R +++ b/R/adapt_ban.R @@ -33,8 +33,8 @@ adapt_ban = function( projection = 4326, path_eaip = NULL, path_admin = NULL, - journal = TRUE, map = FALSE, + journal = TRUE, retrieve = FALSE, verbose = TRUE ) { @@ -60,9 +60,10 @@ adapt_ban = function( if (length(archive) == 0) return(NULL) + # Analyse archive archive = file.path(origin, archive) - cat(sprintf("'BAN' adaptation from '%s'...\n", basename(archive))) + message(sprintf("'BAN' adaptation from '%s'...\n", basename(archive))) old_s2 = suppressMessages(sf::sf_use_s2(FALSE)) on.exit(suppressMessages(sf::sf_use_s2(old_s2))) diff --git a/R/adapt_rpg.R b/R/adapt_rpg.R index 221eb5e72b848cc67d25005fc78e2af2aaeeaf01..57a3c39f8dba89b0c849fd026c7d836134b89423 100644 --- a/R/adapt_rpg.R +++ b/R/adapt_rpg.R @@ -68,14 +68,14 @@ adapt_rpg = function(origin, # Analyse archive. Skip if format is not good. analyse = analyse_archive(archive) if (all(is.na(analyse))) { - add_journal( + add_journal_old( sprintf("Trouble with name format of archive %s. Nothing is done.", archive), verbose = TRUE ) return(NULL) } if (! analyse["extension"] %in% c("7z", "7z.001")) { - add_journal( + add_journal_old( sprintf("Bad format of archive: %s. Should be in [%s]. Nothing is done.", paste(c("7z", "7z.001"), collapse = ", "), analyse["extension"]), @@ -84,14 +84,14 @@ adapt_rpg = function(origin, return(NULL) } if (! analyse["data"] == "RPG") { - add_journal( + add_journal_old( sprintf("Bad type of data: %s. Should be RPG. Nothing is done.", analyse["data"]), verbose = TRUE ) return(NULL) } if (! analyse["version"] %in% c("1-0", "2-0")) { - add_journal( + add_journal_old( sprintf("Bad version of archive: %s. Should be 1-0 or 2-0. Nothing is done.", analyse["version"]), verbose = TRUE ) @@ -113,7 +113,7 @@ adapt_rpg = function(origin, } else { missing = format_scope(department)[! format_scope(department) %in% admissible] if (length(missing) > 0) { - add_journal( + add_journal_old( sprintf( "Some departments cannot be found in scope %s: %s", analyse["scope"], @@ -125,7 +125,7 @@ adapt_rpg = function(origin, department = format_scope(department)[format_scope(department) %in% admissible] } if (length(department) == 0) { - add_journal(sprintf("No department found in scope %s. Nothing is done", analyse["scope"]), verbose = TRUE) + add_journal_old(sprintf("No department found in scope %s. Nothing is done", analyse["scope"]), verbose = TRUE) return(NULL) } @@ -134,7 +134,7 @@ adapt_rpg = function(origin, if (journal == TRUE) { journal = file.path( destination, - tools::file_path_sans_ext(basename(archive)) + basename_core(archive) ) init_log_info( journal, @@ -167,7 +167,7 @@ adapt_rpg = function(origin, silent = TRUE) if (length(list.files(path_temp, ".shp")) == 0) { - journal = add_journal( + journal = add_journal_old( sprintf("Aborting, no %s shapefiles found in %s.", layer, archive), journal = journal, verbose = verbose) unlink(path_temp, recursive = TRUE) @@ -182,7 +182,7 @@ adapt_rpg = function(origin, stringsAsFactors = FALSE, quiet = TRUE) ) - journal = add_journal( + journal = add_journal_old( sprintf("Layer %s successfully loaded.", layer), journal = journal, verbose = verbose) @@ -207,9 +207,9 @@ adapt_rpg = function(origin, # Add information to journal test = sapply(input, class) == sub_scheme[["type"]] if (all(test)) { - journal = add_journal("All variables have the good type.", journal = journal, verbose = verbose) + journal = add_journal_old("All variables have the good type.", journal = journal, verbose = verbose) } else { - journal = add_journal( + journal = add_journal_old( sprintf("Some variables do not have the good type. Check %s.", paste("'", names(test)[!test], "'", sep = "", collapse = ", ")), journal = journal, verbose = verbose) @@ -221,7 +221,7 @@ adapt_rpg = function(origin, # Check if any projection, if not put default one if (is.na(sf::st_crs(input))) { sf::st_crs(input) = analyse_projection(analyse["projection"]) - journal = add_journal( + journal = add_journal_old( sprintf("No projection. Set to EPSG:%s.", analyse_projection(analyse["projection"])), journal = journal, verbose = verbose) } @@ -231,11 +231,11 @@ adapt_rpg = function(origin, projection = if ("crs" %in% class(temp)) temp else projection if ("crs" %in% class(projection)) { input = sf::st_transform(input, crs = projection) - journal = add_journal( + journal = add_journal_old( sprintf("Projection %s applied.", projection[["input"]]), journal = journal, verbose = verbose) } else { - journal = add_journal( + journal = add_journal_old( sprintf(" Projection %s could not be applied.", projection), journal = journal, verbose = verbose) } @@ -251,7 +251,7 @@ adapt_rpg = function(origin, area_final = sum(sf::st_area(input)) diff.area = round((area_final - area_initial) / area_initial, 10) unselected = length(geometry_type) - sum(selection) - journal = add_journal( + journal = add_journal_old( sprintf("Geometry corrected (diff in area %s, unselected %s).", diff.area, unselected), journal = journal, verbose = verbose) @@ -260,7 +260,7 @@ adapt_rpg = function(origin, scope = scope[scope[["department"]] %in% format_scope(department, type = "insee"), ] intersect = suppressMessages(sf::st_intersects(scope, input)) names(intersect) = format_scope(scope[["department"]]) - journal = add_journal( + journal = add_journal_old( sprintf("Intersected by %s departments", length(department)), journal = journal, verbose = verbose ) @@ -275,19 +275,19 @@ adapt_rpg = function(origin, projection ) result[[dep]][["eaip"]] = in_layer_old(result[[dep]], eaip) - journal = add_journal( + journal = add_journal_old( sprintf("\tdepartment %s: eaip analysis successfully included for.", dep), journal = journal, verbose = verbose) } else { result[[dep]][["eaip"]] = NA - journal = add_journal( + journal = add_journal_old( sprintf("department %s: eaip analysis not included for department. NA added to variable eaip", dep), journal = journal, verbose = verbose) } ### Write data (by departments) saveRDS(result[[dep]], file.path(destination, sprintf("%s_%s_%s.rds", tolower(analyse["data"]), analyse["year"], dep))) - journal = add_journal( + journal = add_journal_old( sprintf("department %s: successfully saved.", dep), journal = journal, verbose = verbose) } diff --git a/R/add_journal.R b/R/add_journal.R new file mode 100644 index 0000000000000000000000000000000000000000..2c50433c801e85f3107842c448a54624d8909d0d --- /dev/null +++ b/R/add_journal.R @@ -0,0 +1,214 @@ +#' @title Manage a journal for follow-up of tasks +#' +#' @description +#' The function manages the log information for tasks that need to be linked to +#' each other. While the information is stored as a data.frame, it is presented +#' or saved as formatted character when asked to be presented (for instance when +#' verbose is set to TRUE). +#' +#' @details +#' If the parameter 'journal' is missing, \code{add_journal} creates an +#' empty journal (a data.frame with the expected format). The data.frame have +#' 5 columns: 'start', 'end', 'task', 'status', 'degree', and 'elapsed'. +#' +#' If the parameter 'task' is not missing, and if no 'status' is given, +#' \code{add_journal} adds a new line to journal, and sets 'start' to +#' current time, 'task' to given 'task'. +#' +#' If the parameter 'status' is not missing, \code{add_journal} try to find +#' to which 'task' this is relevant. This can be done by giving explictly the +#' 'id', or by ginving the 'task'. If nothing is given, it is supposed that it +#' corresponds with the the last task with missing 'status'. For found 'task', +#' it sets 'status' to given 'status', 'end' to current time. 'elapsed' to the +#' formatted difftime between 'end' and 'start' with \code{floodam.data::fmt}. +#' +#' If verbose == TRUE, a message is sent. If 'task' is given, a new line is +#' sent, but not ended by 'EOL'. When 'status' is given, message depend on what +#' was sent just before. If the last message was announcing the start of the +#' current task, it is completed with status and elapsed time. If not, a new +#' line is sent with the whole information (start, task, status, elapsed). +#' 'degree' is used to have some tabular formatting. The message sent is +#' formatted by \code{floodam.date:::format_journal}. +#' +#' @param journal data.frame, journal to be amended. May be missing (see +#' details). +#' @param task character, description of the task. May be missing (see +#' details). +#' @param status character, description of how the task has been performed. May +#' be missing (see details). +#' @param id integer, row of the task to be amended. May be missing (see +#' details). +#' @param degree integer, indicates how deep is the task +#' @param verbose logical, should a message be sent. Default to TRUE. +#' +#' @return a data frame of journal information. +#' +#' @export +#' +#' @encoding UTF-8 +#' @author Frédéric Grelot +#' +#' @examples +#' +#' add_journal() +#' add_journal(status = "Nothing to be done...", verbose = FALSE) +#' { +#' journal = add_journal( +#' task = sprintf( +#' "maintain gaspar with floodam.data (%s)", +#' utils::packageVersion("floodam.data") +#' ) +#' ) +#' Sys.sleep(.1) +#' journal = add_journal(journal, task = "download_gaspar", degree = 1) +#' journal = add_journal(journal, task = "adapt_gaspar", degree = 1) +#' Sys.sleep(.1) +#' journal = add_journal(journal, task = "alert_gaspar", degree = 1) +#' journal = add_journal(journal, status = "Done", id = 2) +#' Sys.sleep(.1) +#' journal = add_journal(journal, status = "Done", task = "alert_gaspar") +#' journal = add_journal(journal, status = "Done") +#' journal = add_journal(journal, status = "Done") +#' journal +#' } + +add_journal = function( + journal, + task, + status, + id, + degree = 0, + verbose = TRUE +) { + if (missing(journal)) { + journal = data.frame( + task = character(), + status = character(), + start = as.POSIXct(NULL), + end = as.POSIXct(NULL), + elapsed = character() + ) + } + if (!missing(status)) { + if (nrow(journal) == 0) { + warning("Trying to add status information to an empty journal.") + return(journal) + } + if (missing(id)) { + if (!missing(task)) { + id = suppressWarnings(max(which(journal[["task"]] == task))) + if (id < 0) { + id = suppressWarnings( + max(which(is.na(journal[["status"]]))) + ) + } + } else { + id = suppressWarnings( + max(which(is.na(journal[["status"]]))) + ) + } + if (id < 0) { + id = nrow(journal) + warning("Trying to add status information with bad id.") + } + } + journal[id, "status"] = as.character(status) + journal[id, "end"] = Sys.time() + journal[id, "elapsed"] = + floodam.data::fmt(journal[id, "end"] - journal[id, "start"]) + if (verbose == TRUE) { + last = max(journal[["start"]], journal[-id, "end"], na.rm = TRUE) + if (journal[id, "start"] == last) { + message( + sprintf( + " %s [%s]", + journal[id, "status"], + journal[id, "elapsed"] + ), + appendLF = all(!is.na(journal[["status"]])) + ) + } else { + message( + sprintf( + "\n%s", + format_journal(journal[id, ]) + ), + appendLF = all(!is.na(journal[["status"]])) + ) + } + } + } else if (!missing(task)) { + information = data.frame( + start = Sys.time(), + end = as.POSIXct(NA), + task = as.character(task), + status = as.character(NA), + degree = as.integer(degree), + elapsed = as.character(NA) + ) + journal = rbind(journal, information) + if (verbose == TRUE) { + id = nrow(journal) + message( + sprintf("\n%s", format_journal(journal[id, ])), + appendLF = FALSE + ) + } + } + return(journal) +} + +write_journal = function(journal, path = "") { + type = if (path == "") "log" else tools::file_ext(path) + msg = format_journal(journal) + switch( + type, + "csv" = utils::write.table( + journal, + file = path, + row.names = FALSE, + sep = ",", dec = ".", qmethod = "double", + col.names = !file.exists(path), + append = file.exists(path) + ), + "log" = write(msg, file = path, append = file.exists(path)), + warning( + sprintf("write_journal: bad type (%s). Nothing is done.", type) + ) + ) + return(invisible(msg)) +} + +format_journal = function(journal) { + result = character() + for (i in seq(nrow(journal))) { + id = tools::file_ext(rownames(journal[i, ])) + if (id == "") id = rownames(journal[i, ]) + tab = if (journal[i, "degree"] == 0) { + "" + } else { + paste(rep("\t", journal[i, "degree"])) + } + if (is.na(journal[i, "status"])) { + msg = sprintf( + "%s: [%s] %s%s...", + journal[i, "start"], + id, + tab, + journal[i, "task"] + ) + } else { + msg = sprintf( + "%s: [%s] %s%s... %s [%s]", + journal[i, "start"], + id, + tab, + journal[i, "task"], + journal[i, "status"], + journal[i, "elapsed"] + ) + } + result[i] = msg + } + return(result) +} \ No newline at end of file diff --git a/R/add_journal_new.R b/R/add_journal_new.R deleted file mode 100644 index a7cd18cb8bb904155c519f9f618f91cbef43ff2f..0000000000000000000000000000000000000000 --- a/R/add_journal_new.R +++ /dev/null @@ -1,140 +0,0 @@ -#' @title Manage a journal for follow-up of tasks -#' -#' @description -#' If the parameter 'journal' is missing, \code{add_journal_new} creates an -#' empty journal (a data.frame with the expected format). The data.frame have -#' 5 columns: 'task', 'status', 'start', 'end' and 'elapsed'. -#' -#' If the parameter 'task' is not missing, \code{add_journal_new} adds a new -#' line to journal, and sets 'start' to current time, 'task' to given 'task'. -#' -#' If the parameter 'status' is not missing, \code{add_journal_new} sets -#' information to either the last task in journal of the one correspding to -#' 'id', that is meant to be the line number of journal. It sets 'status' to -#' given 'status', 'end' to current time. 'elapsed' to the formatted difftime -#' between 'end' and 'start'. -#' -#' If verbose = TRUE, a message is sent. If 'task' is given, a new line is sent, -#' but not ended by 'EOL'. When 'status' is given, message depend on what was -#' sent just before. If the last message was announcing the start of the current -#' task, it is completed with status and elapsed time. If not, a new line is -#' sent with the whole information (start, task, status, elapsed). -#' -#' @param journal data.frame, journal to be amended. May be missing (see -#' details). -#' @param task character, description of the task. May be missing (see -#' details). -#' @param status character, description of how the task has been performed. May -#' be missing (see details). -#' @param id integer, row of the task to be amended. May be missing (see -#' details). -#' @param verbose logical, should a message be sent. Default to TRUE. -#' -#' @return a data frame of journal information. -#' -#' @export -#' -#' @encoding UTF-8 -#' @author Frédéric Grelot -#' -#' @examples -#' -#' add_journal_new() -#' add_journal_new(status = "Nothing to be done...", verbose = FALSE) -#' { -#' journal = add_journal_new( -#' task = sprintf( -#' "maintain gaspar with floodam.data (%s)", -#' packageVersion("floodam.data") -#' ) -#' ) -#' Sys.sleep(10) -#' journal = add_journal_new(journal, task = "download_gaspar") -#' journal = add_journal_new(journal, task = "adapt_gaspar") -#' Sys.sleep(10) -#' journal = add_journal_new(journal, task = "alert_gaspar") -#' journal = add_journal_new(journal, status = "Done", id = 2) -#' Sys.sleep(10) -#' journal = add_journal_new(journal, status = "Done", id = 3) -#' journal = add_journal_new(journal, status = "Done") -#' journal = add_journal_new(journal, status = "Done", id = 1) -#' journal -#' } - -add_journal_new = function(journal, task, status, id, verbose = TRUE) { - if (missing(journal)) { - journal = data.frame( - task = character(), - status = character(), - start = as.POSIXct(NULL), - end = as.POSIXct(NULL), - elapsed = character() - ) - } - if (!missing(task)) { - information = data.frame( - start = Sys.time(), - end = as.POSIXct(NA), - task = as.character(task), - status = as.character(NA), - elapsed = as.character(NA) - ) - journal = rbind(journal, information) - if (verbose == TRUE) { - before = if (any(is.na(journal[-nrow(journal), "status"]))) { - "\n" - } else { - "" - } - message( - sprintf( - "%s%s: [%s] %s...", - before, - information[["start"]], - nrow(journal), - information[["task"]]), - appendLF = FALSE - ) - } - } - if (!missing(status)) { - if (nrow(journal) == 0) { - warning("Trying to add status information to an empty journal.") - } - if (missing(id)) id = nrow(journal) - journal[id, "status"] = as.character(status) - journal[id, "end"] = Sys.time() - journal[id, "elapsed"] = - floodam.data::fmt(journal[id, "end"] - journal[id, "start"]) - if (verbose == TRUE) { - last = max(journal[["start"]], journal[-id, "end"], na.rm = TRUE) - if (journal[id, "start"] == last) { - message( - sprintf( - " %s (%s)", - journal[id, "status"], - journal[id, "elapsed"] - ) - ) - } else { - before = if (any(journal[["end"]] == last, na.rm = TRUE)) { - "" - } else { - "\n" - } - message( - sprintf( - "%s%s: [%s] %s... %s (%s)", - before, - journal[id, "start"], - id, - journal[id, "task"], - journal[id, "status"], - journal[id, "elapsed"] - ) - ) - } - } - } - return(journal) -} \ No newline at end of file diff --git a/R/add_log_info.R b/R/add_log_info.R index 08499a5a208e0157013d999e4945545955c14099..16e15af8c384d8b935ad5e10e7d7fb5fc03da0f6 100644 --- a/R/add_log_info.R +++ b/R/add_log_info.R @@ -3,14 +3,14 @@ #' @description #' This function allows to embed a analysis made by a function, so that log #' information can be saved in a consistent way, messages can be sent depending -#' on the parameter verbose +#' on the parameter verbose. #' #' @param x data to be adapted. #' @param fun function, the analysis that may performed on x. #' @param info list, gives the name of the step both in 'short' and 'long' #' terms. -#' @param journal either FALSE, if not must be a character of length one, and will -#' be interpreted at the log file where to save any log information. Its +#' @param journal either FALSE, if not must be a character of length one, and +#' will be interpreted at the log file where to save any log information. Its #' format should be in '*.log' in order to create also a '*-log.csv' log file #' that will store information on time and any given verification in csv format. #' @param verbose logical, should the some messages be sent in real time. @@ -27,7 +27,16 @@ #' @encoding UTF-8 #' @author Frédéric Grelot -add_log_info = function(x, fun, info, journal, verbose, verification, level = 1, ...) { +add_log_info = function( + x, + fun, + info, + journal, + verbose, + verification, + level = 1, + ... +) { level = as.integer(level) if (is.na(level)) level = 1 level = paste(rep("\t", level), collapse = "") @@ -40,7 +49,7 @@ add_log_info = function(x, fun, info, journal, verbose, verification, level = 1, if ( journal != FALSE && - !missing(verification) && + ! missing(verification) && methods::is(verification, "expression") ) { value = eval(verification) @@ -80,7 +89,13 @@ add_log_info = function(x, fun, info, journal, verbose, verification, level = 1, return(result) } -init_log_info = function(journal, main, treatment, add_sf = TRUE, add_lwgeom = TRUE) { +init_log_info = function( + journal, + main, + treatment, + add_sf = TRUE, + add_lwgeom = TRUE +) { log_csv = gsub(".log", "-log.csv", journal) write(main, journal) write( diff --git a/R/analyse_archive.R b/R/analyse_archive.R new file mode 100644 index 0000000000000000000000000000000000000000..3505135d5868820d9cf35c50d3cfb03f485f000f --- /dev/null +++ b/R/analyse_archive.R @@ -0,0 +1,230 @@ +#' @title Analyse names of archive to get useful infomations. +#' +#' @description +#' The function is set for IGN's names of archive, that should normally be +#' "well" structured with this scheme : +#' data-type_version_precision_format_projection_scope_date.ext. Sometimes a +#' less frequent format is +#' data-name_version_precision_format_projection_scope_proj_date.ext. In the +#' latter case, "proj" is given in another format than "projection", but also in +#' a documented way. +#' +#' From this structure, an analysis is done to retrieve, the type of data, the +#' version, the precision (very often it is empty), the format used (something +#' in "SHP", "GPKG" or "SQL"), the projection (something in "WGS84G", "LAMB93", +#' "RGAF09UTM20", "UTM22RGFG95", "RGR92UTM40S", "RGM04UTM38S"), the scope ( +#' something in "FRA", "FXX", "GLP", "MTQ", "GUF", "REU", "MYT"), the date (in +#' the format YYYY-MM-DD), the year (YYYY), the extension, and the name (the +#' name of the archive without the extension.) +#' +#' This is also done when the format is the less frequent case, because in this +#' case, the projection is not given. +#' +#' @param x character vector +#' @param origin character, to choose the format. Only "ign" is available at the +#' moment. +#' +#' @return either a vector or a matrix depending on the length of x. +#' +#' @export +#' +#' @encoding UTF-8 +#' @author Frédéric Grelot +#' +#' @examples +#' ign = c( +#' "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z", +#' "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001", +#' "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15", +#' "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15", +#' "ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15", +#' "ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15", +#' "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA", +#' "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto" +#' ) +#' analyse_archive(ign) +#' analyse_archive(rep(ign, 2)) +#' +#' floodam = c( +#' "admin-express_2022-04-15", +#' "admin-express_2022-04-15.rds", +#' "admin-express_commune_2022-04-15", +#' "admin-express_D034_2022-04-15", +#' "admin-express_commune_D034_2022-04-15", +#' "admin-express_D034_commune_2022-04-15", +#' "ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z" +#' ) +#' analyse_archive(floodam, "floodam.data") + +analyse_archive = function(x, origin = c("ign", "floodam.data")) { + origin = match.arg(origin) + + if (length(x) > 1) return(t(sapply(x, analyse_archive, origin = origin))) + + date_pattern = "[0-9]{4}-[0-9]{2}-[0-9]{2}" + + if (origin == "ign") { + scope_admissible = c( + "FRA", + "FXX", + "GLP", + "MTQ", + "GUF", + "REU", + "MYT" + ) + proj_admissible = c( + "WGS84G", + "LAMB93", + "RGAF09UTM20", + "UTM22RGFG95", + "RGR92UTM40S", + "RGM04UTM38S", + "" + ) + type_admissible = c( + "SHP", + "GPKG", + "SQL" + ) + + result = rep(NA_character_, 10) + names(result) = c( + "data", + "version", + "precision", + "type", + "projection", + "scope", + "vintage", + "year", + "extension", + "name" + ) + result["extension"] = basename_ext(x) + result["name"] = basename_core(x) + temp = strsplit(result["name"], "_")[[1]] + + # Dealing with unfrequent scheme + if (length(temp) == 8) { + if (temp[7] %in% proj_admissible) { + temp[5] = temp[7] + temp = temp[-7] + } + } + + # Check that result is compatible with frequent scheme + if (length(temp) != 7) { + warning( + "analyse_archive WARNING: ", + sprintf( + "%s slots found in %s. ", + length(temp), + result["name"] + ), + "This is not compatible with IGN's scheme. ", + "NAs returned.", + call. = FALSE + ) + } else { + result[1:7] = temp + result["year"] = strsplit(result["vintage"], "-")[[1]][1] + result["scope"] = strsplit(result["scope"], "-")[[1]][1] + + # Checking projection + result["projection"] = gsub("WM", "WGS84G", result["projection"]) + result["projection"] = gsub("L93", "LAMB93", result["projection"]) + if (! result["projection"] %in% proj_admissible) { + warning( + "analyse_archive WARNING: ", + sprintf( + "%s is not an official IGN projection.", + result["projection"] + ), + call. = FALSE + ) + } + + # Checking scope + if (! result["scope"] %in% scope_admissible) { + warning( + "analyse_archive WARNING: ", + sprintf( + "%s is not an official IGN scope.", + result["scope"] + ), + call. = FALSE + ) + } + + # Checking type + if (! result["type"] %in% type_admissible) { + warning( + "analyse_archive WARNING: ", + sprintf( + "%s is not an official IGN type.", + result["type"] + ), + call. = FALSE + ) + } + } + } + + if (origin == "floodam.data") { + result = rep(NA_character_, 6) + names(result) = c( + "data", + "precision", + "scope", + "vintage", + "extension", + "name" + ) + result["extension"] = basename_ext(x) + result["name"] = basename_core(x) + temp = strsplit(result["name"], "_")[[1]] + + if (length(temp) > 4 | length(temp) == 0) { + warning( + "analyse_archive WARNING: ", + sprintf( + "%s slot(s) found in %s. ", + length(temp), + result["name"] + ), + "This is not compatible with floodam.data's scheme. ", + "NAs returned.", + call. = FALSE + ) + } else { + test = grep(date_pattern, temp[length(temp)], value = TRUE) + if (length(test) > 0) { + result["vintage"] = temp[length(temp)] + temp = temp[- length(temp)] + } + if (!is.na(format_scope(temp[length(temp)]))) { + result["scope"] = format_scope(temp[length(temp)]) + temp = temp[- length(temp)] + } + if (length(temp) > 2) { + warning( + "analyse_archive WARNING: ", + sprintf("%s cannot be analysed. ", result["name"]), + "Should be data_precision_scope_vintage, ", + "with possible missings but not reordering. ", + "NAs returned.", + call. = FALSE + ) + result[1:4] = NA_character_ + } else { + result[1:2] = temp[1:2] + } + } + } + + # Replacing empty string by NA + result[result == ""] = NA + + return(result) +} \ No newline at end of file diff --git a/R/analyse_dwelling.R b/R/analyse_dwelling.R index 56645fe1ff6c59a31801ec5636d622b56edeb313..35b6e30ff875f3bebd6c3ea11bb4999a5522081b 100644 --- a/R/analyse_dwelling.R +++ b/R/analyse_dwelling.R @@ -104,7 +104,7 @@ analyse_dwelling = function( # Checking if parameters are supplied and assigning values if not param = strsplit( - x = tools::file_path_sans_ext(basename(archive)), + x = basename_core(archive), split = "-" )[[1]] vintage = sprintf("%s-%s-%s", param[3], param[4], param[5]) diff --git a/R/analyse_gaspar.R b/R/analyse_gaspar.R index 9acefc92f9426654d93804fb09cb0a3c054db24a..d58e114965e440dcdf9e6f95f97d244dbed586f7 100644 --- a/R/analyse_gaspar.R +++ b/R/analyse_gaspar.R @@ -175,8 +175,8 @@ analyse_ppr_state = function(ppr) { #' @description #' The following treatments are performed: #' - In the element detail, a matrix gives for each commune (rows), the count -#' of all procedures depening on their state (columns). The column <NA> is -#' alwas given even if, normally, it should stay at 0 for each commune. +#' of all procedures depending on their state (columns). The column NA is +#' always given even if, normally, it should stay at 0 for each commune. #' - In the element summary, from the information in element detail, a state at #' the commune is given. It is performed this way: if one document is in state #' "use", the commune is in state "use", otherwise if one document is in state diff --git a/R/basename_extended.R b/R/basename_extended.R new file mode 100644 index 0000000000000000000000000000000000000000..153ca230901cf6e157c39651ebbd2a17779691a3 --- /dev/null +++ b/R/basename_extended.R @@ -0,0 +1,66 @@ +#' @name basename_extended +#' @title Utilities enhancing basename() +#' +#' @description +#' Utilities for getting name of files and extension in another whay than of +#' [tools::file_ext()] and others corresponding functions. +#' +#' @param x character vector, file paths +#' +#' @return character vector of processed files. +#' +#' @details +#' +#' \code{basename_core()} differs from [tools::file_path_sans_ext()] in this: +#' - [basename()] is first applied +#' - "compounded" extensions are removed. See examples. +#' +#' @export +#' +#' @encoding UTF-8 +#' @author Frédéric Grelot +#' +#' @examples +#' +#' # equivalent to tools::file_path_sans_ext +#' basename_core("toto.7z") +#' +#' # different from tools::file_path_sans_ext +#' basename_core("toto.7z.001") +#' basename_core("path/toto.csv") +#' basename_core("path/toto.csv.gz") +#' + +basename_core = function(x) { + x = basename(x) + pattern = "^(.*?)(\\.[[:alnum:]]+){1,2}$" + sub(pattern, "\\1", basename(x)) +} + +#' @rdname basename_extended +#' +#' @details +#' +#' \code{basename_ext()} differs from [tools::file_path_sans_ext()] in this: +#' - [basename()] is first applied +#' - "compounded" extensions are extracted. See examples. +#' +#' @export +#' +#' @examples +#' +#' # equivalent to tools::file__ext +#' basename_ext("toto.7z") +#' basename_ext("path/toto.csv") +#' +#' #'different from tools::file__ext +#' basename_ext("toto.7z.001") +#' basename_ext("path/toto.csv.gz") + +basename_ext = function(x) { + x = basename(x) + pattern = "^.*?((\\.[[:alnum:]]+){1,2})$" + result = sub("^\\.", "", sub(pattern, "\\1", x)) + result[!grepl(pattern, x)] = "" + return(result) +} \ No newline at end of file diff --git a/R/create_date.R b/R/create_date.R index 397e9d018d3a3211a24de01de27cfd3d4f01932f..1d090fb1b99ecaf16cf00afa8dd0c95cd50ee35d 100644 --- a/R/create_date.R +++ b/R/create_date.R @@ -3,15 +3,20 @@ #' @description #' Create an interval of date from a vector #' -#' @param ... Anything that will be coerced to a character. See details for format. +#' @param ... Anything that will be coerced to a character. See details for +#' format. #' -#' @return A vector of two dates of fromate \%Y-\%m-\%d" +#' @return A vector of two dates of format "\%Y-\%m-\%d" #' #' @details -#' x shall be a vector of character with date in format "\%Y", "%\Y-\%m", or "%\Y-\%m-%\d". Frome x, it takes -#' the minimum and maximum. min(x) is completed, if necessary, as to be thebeginning of period "\%Y" becomes \%Y-01-01", -#' "%\Y-\%m" becomes "%\Y-\%m-01", while max(x) is completed, if necessary, as to be the maximum of period "\%Y" -#' becomes \%Y-12-31", "%\Y-\%m" becomes +#' Inputs are transformed in character vector, that we call x. When cretaed, x +#' shall be vector of characters with date in format "\%Y", "\%Y-\%m", or +#' "\%Y-\%m-%\d". It takes the minimum and maximum. min(x) is +#' completed, if necessary, as to be the beginning of period "\%Y" becomes +#' "\%Y-01-01", "\%Y-\%m" becomes "\%Y-\%m-01", while max(x) is completed, if +#' necessary, as to be the maximum of period "\%Y" becomes "\%Y-12-31", +#' "\%Y-\%m" becomes "\%Y-\%m-31" (or "..-28", "..-29", "..-30" depending on the +#' month). #' #' @export #' @@ -27,18 +32,33 @@ create_date = function(...) { x = as.character(unlist(list(...))) - if(length(x) == 0) return(NULL) + if (length(x) == 0) return(NULL) x = c(min(x), max(x)) x[1] = gsub("^(\\d{4})$", "\\1-01-01", x[1]) x[2] = gsub("^(\\d{4})$", "\\1-12-31", x[2]) x[1] = gsub("^(\\d{4}-\\d{2})$", "\\1-01", x[1]) - if(length(grep("^\\d{4}-\\d{2}$", x[2]))) { + if (length(grep("^\\d{4}-\\d{2}$", x[2]))) { x[2] = as.character( - utils::tail(seq(as.Date(gsub("^(\\d{4}-\\d{2})$", "\\1-01", x[2])), length = 2, by = "months") - 1, 1) + utils::tail( + seq( + as.Date( + gsub( + "^(\\d{4}-\\d{2})$", + "\\1-01", + x[2] + ) + ), + length = 2, + by = "months" + ) - 1, + 1 + ) ) } - if("try-error" %in% class(try(as.Date(x), silent = TRUE))) - stop("Bad format for input, should be a character of format %Y, %Y-%m or %Y-%m-%d.") + if ("try-error" %in% class(try(as.Date(x), silent = TRUE))) + stop( + "Bad format for input, ", + "should be a character of format %Y, %Y-%m or %Y-%m-%d." + ) return(x) -} - +} \ No newline at end of file diff --git a/R/data.R b/R/data.R index 9e094f31ed44a3bb3f13b11834a068020789652d..fe28f9b68b8da8168665a79fb203c03a5f5bdf31 100644 --- a/R/data.R +++ b/R/data.R @@ -13,7 +13,7 @@ #' Perimeter of so-ii experimental site #' #' A dataset containing the commune pertaining to so-ii experimental site with -#' useful informations to make subsets +#' useful information to make subsets #' #' @format A data frame with 78 rows and 6 variables: #' \describe{ @@ -29,7 +29,7 @@ #' Region definition in France #' -#' This dataset gives the correspondance between code and French label in usage +#' This dataset gives the correspondance between code and French label in use #' in France. #' #' @format A data frame with 101 rows and 2 variables: @@ -43,7 +43,7 @@ #' Variables kept in EAIP #' -#' This dataset controls what variables are kept when applying adapt.eaip. +#' This dataset controls which variables are kept when applying adapt.eaip. #' The choice of the variables has been made by inspecting all EAIP shapefiles, #' and by keeping most common variables inside, removing variables without added #' information (such as R, V, B). @@ -53,8 +53,8 @@ #' Label coming from NACE typology #' -#' A dataset containing the label (currently in English an French) corresponding -#' with the NACE typology of activities at levels 1 to 4 incldued. +#' A dataset containing the label (currently in English and French) +#' corresponding with the NACE typology of activities at levels 1 to 4 included. #' #' @format A data frame with 996 rows and 4 variables: #' \describe{ @@ -66,18 +66,18 @@ #' } "nace_label" -#' Typology of activities withh additional informations +#' Typology of activities with additional information #' -#' A dataset containing the Typology of activities at differente level, -#' with some useful additional information from Frecnh data base esane. +#' A dataset containing the typology of activities at different level, +#' with some useful additional information from French database esane. #' #' @format A data frame with 732 rows and 26 variables: #' \describe{ #' \item{APE.05}{character, category at level 5, specific to France.} -#' \item{APE.01}{character, category at level 1, compatible withe NACE.} -#' \item{APE.02}{character, category at level 2, compatible withe NACE.} -#' \item{APE.03}{character, category at level 3, compatible withe NACE.} -#' \item{APE.04}{character, category at level 4, compatible withe NACE.} +#' \item{APE.01}{character, category at level 1, compatible with NACE.} +#' \item{APE.02}{character, category at level 2, compatible with NACE.} +#' \item{APE.03}{character, category at level 3, compatible with NACE.} +#' \item{APE.04}{character, category at level 4, compatible with NACE.} #' \item{type}{character, type of activity, compatible with French damage #' modelling.} #' \item{category}{character, vulnerability category of activity, @@ -100,13 +100,13 @@ #' category.} #' \item{s.ent}{numeric, value of stock per activty in € of given #' category.} -#' \item{ACTENTNOMESS}{numeric, original data frome ESANE.} -#' \item{EMPSALNOMESS}{numeric, original data frome ESANE.} -#' \item{BAC123VALESE}{numeric, original data frome ESANE.} -#' \item{BAC124VALESE}{numeric, original data frome ESANE.} -#' \item{BAC152VALESE}{numeric, original data frome ESANE.} -#' \item{BAC155VALESE}{numeric, original data frome ESANE.} -#' \item{BAC156VALESE}{numeric, original data frome ESANE.} +#' \item{ACTENTNOMESS}{numeric, original data from ESANE.} +#' \item{EMPSALNOMESS}{numeric, original data from ESANE.} +#' \item{BAC123VALESE}{numeric, original data from ESANE.} +#' \item{BAC124VALESE}{numeric, original data from ESANE.} +#' \item{BAC152VALESE}{numeric, original data from ESANE.} +#' \item{BAC155VALESE}{numeric, original data from ESANE.} +#' \item{BAC156VALESE}{numeric, original data from ESANE.} #' } "naf_esane" @@ -114,7 +114,7 @@ #' Label (in French) coming from NAF typology #' #' A dataset containing the label in French corresponding with -#' the NAF typology of activities at levels 1 to 5 incldued. +#' the NAF typology of activities at levels 1 to 5 included. #' #' @format A data frame with 1728 rows and 3 variables: #' \describe{ @@ -127,11 +127,11 @@ #' Nomenclature (in French) of RPG version 1.0 #' #' A dataset containing the label in French corresponding with -#' the version 1.0 of the RPG typology for culture plots. +#' the version 1.0 of the RPG typology for cultivated plots. #' #' @format A data frame with 28 rows and 2 variables: #' \describe{ -#' \item{group}{character, code of the group of culture.} +#' \item{group}{character, code of the group of crops.} #' \item{group_label_fr}{character, label in French corresponding with the #' group code.} #' } @@ -141,41 +141,65 @@ #' Nomenclature (in French) of RPG version 2.0 #' #' A dataset containing the label in French corresponding with -#' the version 2.0 of the RPG typology for culture plots (should work up to +#' the version 2.0 of the RPG typology for cultivated plots (should work up to #' year 2018). #' #' @format A data frame with 392 rows and 3 variables: #' \describe{ -#' \item{culture}{character, code of the culture.} -#' \item{group}{character, code of the group to which the culture belongs.} +#' \item{culture}{character, code of the crop.} +#' \item{group}{character, code of the group to which the crop belongs.} #' \item{culture_label_fr}{character, label in French corresponding with -#' the culture code.} +#' the crop code.} #' } "nomenclature_rpg_2" -#' Informations on the variables of ADMIN EXPRESS version 2.0 +#' Information on the variables of Admin Express version 2-0 #' #' This dataset controls also default behaviour of what variables are kept, -#' their desired type. It is used as default value in adapt.admin_express. +#' their desired type. It may be used as a value in \code{adapt_admin_express} +#' for old version of Admin Express. #' #' @format A data frame with 26 rows and 11 variables: #' \describe{ -#' \item{name}{character, name of varaibales used in floodam.data.} -#' \item{name.origin}{character, name of variables as defined in original +#' \item{name}{character, name of variables used in floodam.data.} +#' \item{name_origin}{character, name of variables as defined in original +#' data.} +#' \item{layer}{character, name of layer where the variables are used.} +#' \item{order}{integer, order of the variables in original data.} +#' \item{keep}{logical, defined if floodam.data will keep this variable.} +#' \item{type}{character, type that will be used within floodam.data.} +#' \item{label_fr}{character, variables description in French.} +#' \item{source}{character, source of the variables.} +#' \item{length_source}{integer, length of variables in source.} +#' \item{type_source}{character, type of variables in source.} +#' \item{comment}{character, some comments on choice made.} +#' } +"scheme_admin_express_2_0" + +#' Information on the variables of Admin Express version 3-1 +#' +#' This dataset controls also default behaviour of what variables are kept, +#' their desired type. It is used as default value in +#' \code{adapt_admin_express}. +#' +#' @format A data frame with 24 rows and 11 variables: +#' \describe{ +#' \item{name}{character, name of variables used in floodam.data.} +#' \item{name_origin}{character, name of variables as defined in original #' data.} #' \item{layer}{character, name of layer where the variables is used.} #' \item{order}{integer, order of the variables in original data.} #' \item{keep}{logical, defined if floodam.data will keep this variable.} #' \item{type}{character, type that will be used within floodam.data.} -#' \item{label.fr}{character, variables description in French.} +#' \item{label_fr}{character, variables description in French.} #' \item{source}{character, source of the variables.} -#' \item{length.source}{integer, length of variables in source.} -#' \item{type.source}{character, type of variables in source.} +#' \item{length_source}{integer, length of variables in source.} +#' \item{type_source}{character, type of variables in source.} #' \item{comment}{character, some comments on choice made.} #' } -"scheme_admin_express" +"scheme_admin_express_3_1" -#' Informations on the variables of BAN +#' Information on the variables of BAN #' #' This dataset controls also default behaviour of what variables are kept, #' their desired type. It is used as default value in adapt_ban. @@ -197,7 +221,7 @@ #' } "scheme_ban" -#' Informations on the variables of BD TOPO version 3.0 +#' Information on the variables of BD TOPO version 3.0 #' #' This dataset controls also default behaviour of what variables are kept, #' their desired type. It is used as default value in adapt.bd_topo. @@ -223,14 +247,52 @@ #' } "scheme_bd_topo_3" -#' Informations on the variables of RPG version 1.0 +#' Scheme for theme azi in gaspar DB +#' +"scheme_gaspar_azi" + +#' Scheme for theme catnat in gaspar DB +#' +"scheme_gaspar_catnat" + +#' Scheme for theme risq in gaspar DB +#' +"scheme_gaspar_risq" + +#' Scheme for theme risq in gaspar DB +#' +"scheme_gaspar_pprn" + +#' Informations on the variables of the series 'Logements (France hors Mayotte)' +#' from the INSEE +#' +#' This dataset controls also default behaviour of what variables are kept, +#' their desired type. It is used as default value in adapt_insee. +#' +#' @format A data frame with 7 rows and 11 variables: +#' \describe{ +#' \item{name}{character, name of variables used in floodam.data.} +#' \item{name_origin}{character, name of variables as defined in original +#' data.} +#' \item{order}{integer, order of the variables in original data.} +#' \item{keep}{logical, defined if floodam.data will keep this variable.} +#' \item{type}{character, type that will be used within floodam.data.} +#' \item{label_fr}{character, variables description in French.} +#' \item{source}{character, source of the variables.} +#' \item{length_source}{integer, length of variables in source.} +#' \item{type_source}{character, type of variables in source.} +#' \item{comment}{character, some comments on choice made.} +#' } +"scheme_insee_logement_2019" + +#' Information on the variables of RPG version 1.0 #' #' This dataset controls also default behaviour of what variables are kept, #' their desired type. It is used as default value in adapt_rpg. #' #' @format A data frame with 9 rows and 11 variables: #' \describe{ -#' \item{name}{character, name of varaibales used in floodam.data.} +#' \item{name}{character, name of variables used in floodam.data.} #' \item{name_origin}{character, name of variables as defined in original #' data.} #' \item{layer}{character, name of layer where the variables is used.} @@ -245,17 +307,17 @@ #' } "scheme_rpg_1" -#' Informations on the variables of RPG version 2.0 +#' Information on the variables of RPG version 2.0 #' #' This dataset controls also default behaviour of what variables are kept, #' their desired type. It is used as default value in adapt_rpg. #' #' @format A data frame with 7 rows and 11 variables: #' \describe{ -#' \item{name}{character, name of varaibales used in floodam.data.} +#' \item{name}{character, name of variables used in floodam.data.} #' \item{name_origin}{character, name of variables as defined in original #' data.} -#' \item{layer}{character, name of layer where the variables is used.} +#' \item{layer}{character, name of layer where the variables are used.} #' \item{order}{integer, order of the variables in original data.} #' \item{keep}{logical, defined if floodam.data will keep this variable.} #' \item{type}{character, type that will be used within floodam.data.} @@ -267,18 +329,18 @@ #' } "scheme_rpg_2" -#' Informations on the variables of geolocalized sirene data +#' Information on the variables of geolocalized sirene data #' #' A dataset containing the description of variables in geolocalized sirene -#' data. It includes information that are coming from the 2019 version of Sirene -#' format as maintained by INSEE and information that are coming from 'cquest' +#' data. It includes information that is coming from the 2019 version of Sirene +#' format as maintained by INSEE and information that is coming from 'cquest' #' process for geolocalizing. This dataset controls also default behaviour of #' what variables are kept, their desired type. It is used as default value in #' adapt.geo_sirene. #' #' @format A data frame with 57 rows and 10 variables: #' \describe{ -#' \item{name}{character, name of varaibales used in floodam.data.} +#' \item{name}{character, name of variables used in floodam.data.} #' \item{name.origin}{character, name of variables as defined in original #' data.} #' \item{order}{integer, order of the variables in original data.} @@ -292,7 +354,7 @@ #' } "scheme_sirene_2019" -#' Informations on na.value in geolocalized sirene data +#' Information on na.value in geolocalized sirene data #' #' A dataset containing the description of admissibile na.value other than "" in #' geolocalized sirene data. It is used as default value in adapt.geo_sirene. @@ -306,7 +368,7 @@ #' Region definition in France #' -#' This dataset gives the correspondance between code and French label in usage +#' This dataset gives the correspondance between code and French label in use #' in France. #' #' @format A data frame with 18 rows and 2 variables: @@ -316,30 +378,14 @@ #' } "region" -#' Classification of hazards events in catnat (gaspar DB) +#' Classification of hazard events in catnat (gaspar DB) #' "catnat_classification" -#' Classification of hazards events in pprn (gaspar DB) +#' Classification of hazard events in pprn (gaspar DB) #' "pprn_classification" -#' Scheme for theme azi in gaspar DB -#' -"scheme_gaspar_azi" - -#' Scheme for theme catnat in gaspar DB -#' -"scheme_gaspar_catnat" - -#' Scheme for theme risq in gaspar DB -#' -"scheme_gaspar_risq" - -#' Scheme for theme risq in gaspar DB -#' -"scheme_gaspar_pprn" - #' Scheme to rename levels of variable 'nature' in the BT TOPO version 3.0 #' #' This dataset controls how the categories in the variable 'nature' are to be @@ -367,7 +413,8 @@ #' categories of materials in the BDTopo.} #' \item{label_wall_fr}{character, simplified name to the categories of #' materials in French.} -#' \item{combined_wall}{character, TRUE if two categories of materials are mixed.} +#' \item{combined_wall}{character, TRUE if two categories of materials are +#' mixed.} #' } "bd_topo_wall" @@ -387,24 +434,3 @@ #' mixed.} #' } "bd_topo_roof" - -#' Informations on the variables of the series 'Logements (France hors Mayotte)' from the INSEE -#' -#' This dataset controls also default behaviour of what variables are kept, -#' their desired type. It is used as default value in adapt_insee. -#' -#' @format A data frame with 7 rows and 11 variables: -#' \describe{ -#' \item{name}{character, name of variables used in floodam.data.} -#' \item{name_origin}{character, name of variables as defined in original -#' data.} -#' \item{order}{integer, order of the variables in original data.} -#' \item{keep}{logical, defined if floodam.data will keep this variable.} -#' \item{type}{character, type that will be used within floodam.data.} -#' \item{label_fr}{character, variables description in French.} -#' \item{source}{character, source of the variables.} -#' \item{length_source}{integer, length of variables in source.} -#' \item{type_source}{character, type of variables in source.} -#' \item{comment}{character, some comments on choice made.} -#' } -"scheme_insee_logement_2019" \ No newline at end of file diff --git a/R/download.admin_express.R b/R/download.admin_express.R deleted file mode 100644 index 19e280feb125b0dd86abddc9da2af62365747418..0000000000000000000000000000000000000000 --- a/R/download.admin_express.R +++ /dev/null @@ -1,78 +0,0 @@ -#' Download ADMIN EXPRESS -#' -#' Function used to downlaod ADMIN EXPRESS -#' -#' @param destination character, the address where dara are stocked. -#' @param origin character, either a keyword or the address from where data are downloaded. See details. -#' @param name character, vector of acceptable names fo archive to be downloaded. -#' @param extension character, vector of acceptable types of archive to be downloaded. -#' @param version string, version of ADMIN EXPRESS to be downloaded. -#' @param date character, date of the archive to be downloaded. -#' @param verbose logical, should the function send some messages while running. -#' -#' @return nothing -#' -#' @section Details: -#' -#' If \code{origin == "IGN"}, then all necessary variables are filled with those values: -#' \itemize{ -#' \item \bold{origin} is changed to ftp://Admin_Express_ext:Dahnoh0eigheeFok@ftp3.ign.fr -#' \item \bold{name} default value is changed to "ADMIN-EXPRESS" -#' \item \bold{extension} default value is changed to "7z.001" -#' \item \bold{date} default value is changed to "last" -#' \item \bold{version} default value is changed to "WM" -#' } -#' -#' If not, everything shall be filled so that \code{download_archive} can make a successful download. -#' -#' @export -#' -#' @examples -#' \dontrun{ -#' destination = tempdir() -#' download.admin_express(destination) -#' -#' unlink(destination) -#' } - -download.admin_express = function( - destination, - origin = "IGN", - name = NULL, - extension = NULL, - date = NULL, - version = NULL, - verbose = TRUE) { - - if(origin == "IGN") { - origin = "ftp://Admin_Express_ext:Dahnoh0eigheeFok@ftp3.ign.fr" - name = if(is.null(name)) "ADMIN-EXPRES" - extension = if(is.null(extension)) "7z.001" - version = if(is.null(version)) "WM" - date = if(is.null(date)) "last" - } - - if (origin == "cquest") { - origin = "https://data.cquest.org/ign/adminexpress" - name = if(is.null(name)) "ADMIN-EXPRES" - extension = if(is.null(extension)) "7z" - version = if(is.null(version)) "WM" - date = if(is.null(date)) "last" - } - - to_do = data.frame( - origin = origin, - destination = destination, - short = "download.admin_express", - stringsAsFactors = FALSE - ) - - download_archive( - to_do, - extension = extension, - name = name, - date = date, - version = version, - verbose = verbose - ) -} \ No newline at end of file diff --git a/R/download.geo_sirene.R b/R/download.geo_sirene.R index e9298f816869ed47886da00bf66c592f8217a564..235b6661beda01466175a250077b0b14f3de36ca 100644 --- a/R/download.geo_sirene.R +++ b/R/download.geo_sirene.R @@ -19,10 +19,10 @@ #' #' If \code{origin == "cquest"}, then all necessary variables are filled with those values: #' \itemize{ -#' \item \bold{origin} is changed to \url{http://data.cquest.org/geo_sirene}. This url is adapted depending +#' \item \bold{origin} is changed to \url{https://data.cquest.org/geo_sirene}. This url is adapted depending #' on version_insee. #' \item \bold{version_insee} If value is "v2019", then the version 2019 is dowloaded from -#' \url{http://data.cquest.org/geo_sirene}. +#' \url{https://data.cquest.org/geo_sirene}. #' \item \bold{name} If version is not set to null, then default value is changed to "StockEtablissement_utf8", #' which should be the most complete version at France level. #' \item \bold{extension} default value is changed to "csv.gz". @@ -36,7 +36,7 @@ #' #' @examples #' \dontrun{ -#' origin = "http://data.cquest.org/geo_sirene" +#' origin = "https://data.cquest.org/geo_sirene" #' destination = tempdir() #' month = c("2018-11", "2019-05", "2020-03") #' download.geo_sirene(origin, destination, month = month) @@ -54,7 +54,7 @@ download.geo_sirene = function( version_insee = "v2019", verbose = TRUE) { if (origin == "cquest") { - origin = "http://data.cquest.org/geo_sirene" + origin = "https://data.cquest.org/geo_sirene" if (version_insee == "v2019") { origin = file.path(origin, version_insee) version_insee = "version_2019" diff --git a/R/download.ppr.R b/R/download.ppr.R index a39a75e9de7a672a7d2c7cd7d69692c1798960c2..2108178b23dbf5f2030240c4ce715a695b74399d 100644 --- a/R/download.ppr.R +++ b/R/download.ppr.R @@ -32,7 +32,7 @@ download.ppr = function( date = NULL, verbose = TRUE) { if (origin == "cquest") { - origin = "http://data.cquest.org/georisques/ppr" + origin = "https://data.cquest.org/georisques/ppr" if (is.null(extension)) extension = c("zip") } diff --git a/R/download.rpg.R b/R/download.rpg.R index 28451c9fbac85a210522c2137973593433aae400..bfb9800b4b5a7205df63ff6a7166ff5542eaa9f5 100644 --- a/R/download.rpg.R +++ b/R/download.rpg.R @@ -18,7 +18,7 @@ #' #' If \code{origin == "cquest"}, then all necessary variables are filled with those values: #' \itemize{ -#' \item \bold{origin} is changed to \url{http://data.cquest.org/registre_parcellaire_graphique}. +#' \item \bold{origin} is changed to \url{https://data.cquest.org/registre_parcellaire_graphique}. #' This url is adapted depending on year. #' \item \bold{extension} default value is changed to \code{c("zip", "7z")}. #' \item \bold{year} is used to set something equivalent to date, but directly in origin. @@ -55,7 +55,7 @@ download.rpg = function( year = NULL, verbose = TRUE) { if (origin == "cquest") { - origin = "http://data.cquest.org/registre_parcellaire_graphique" + origin = "https://data.cquest.org/registre_parcellaire_graphique" if (is.null(year)) { x = read_url(origin) year = max(unlist(regmatches(x, gregexpr("(?<=href=([\\\"']))\\d{4}(?=\\/\\1)", x, perl = TRUE)))) diff --git a/R/download_admin_express.R b/R/download_admin_express.R new file mode 100644 index 0000000000000000000000000000000000000000..aeb1bf8c5477dd6c80c9015dd081d928e1c8d0c4 --- /dev/null +++ b/R/download_admin_express.R @@ -0,0 +1,73 @@ +#' @title Download Admin Express archives +#' +#' @description +#' Function used to downlaod Admin Express archives. The function has preset +#' options for its use with IGN website and data.cquest.org. +#' +#' @details +#' If \code{origin == "ign"}, \bold{origin} is set to +#' "https://geoservices.ign.fr/adminexpress" +#' +#' If \code{origin == "cquest"}, \bold{origin} is set to +#' "https://data.cquest.org/ign/adminexpress" +#' +#' +#' @param destination character, the address where dara are stocked. +#' @param origin character, a keyword or the address from where data are +#' downloaded. +#' @param name character, vector of acceptable names fo archive to be +#' downloaded. +#' @param extension character, vector of acceptable types of archive to be +#' downloaded. +#' @param version string, version of Admin Express to be downloaded. +#' @param date character, date of the archive to be downloaded. +#' @param verbose logical, should the function send some messages while running. +#' +#' @return nothing +#' +#' @export +#' +#' @examples +#' \dontrun{ +#' destination = tempdir() +#' download_admin_express(destination, version = "MYT") +#' unlink(destination) +#' } + +download_admin_express = function( + destination, + origin = c("ign", "cquest"), + name = c("ADMIN-EXPRESS-COG", "ADMIN-EXPRESS", "ADMIN-EXPRESS-COG-CARTO"), + extension = "7z", + date = "last", + version = NULL, + verbose = TRUE +) { + origin = match.arg(origin) + name = match.arg(name) + extension = match.arg(extension) + + if(origin == "ign") { + origin = "https://geoservices.ign.fr/adminexpress" + } + + if (origin == "cquest") { + origin = "https://data.cquest.org/ign/adminexpress" + } + + to_do = data.frame( + origin = origin, + destination = destination, + short = "download_admin_express", + stringsAsFactors = FALSE + ) + + download_archive( + to_do, + extension = extension, + name = name, + date = date, + version = version, + verbose = verbose + ) +} \ No newline at end of file diff --git a/R/download_archive.R b/R/download_archive.R index 7f38212a43d5e5de7105281981b2f32764f947d0..2642913f64c755a8f1ad01962b714579099704c4 100644 --- a/R/download_archive.R +++ b/R/download_archive.R @@ -26,21 +26,26 @@ #' #' @examples #' \dontrun{ -#' to_do = data.frame( -#' origin = "http://data.cquest.org/registre_parcellaire_graphique/2018", -#' destination = "temp/rpg", +#' destination = tempdir() +#' to_do_cquest = data.frame( +#' origin = "https://data.cquest.org/registre_parcellaire_graphique/2018", +#' destination = destination, #' short = "rpg_cquest", #' stringsAsFactors = FALSE #' ) -#' download_archive(to_do, version = "D976") +#' download_archive(to_do_cquest, version = "D976", verbose = TRUE) #' -#' to_do = data.frame( +#' to_do_ign = data.frame( #' origin = "https://geoservices.ign.fr/rpg", -#' destination = "temp/rpg", +#' destination = destination, #' short = "rpg_ign", #' stringsAsFactors = FALSE #' ) -#' download_archive(to_do, version = "D976", date = "2020") +#' download_archive(to_do_ign, version = "D976", date = "2020", verbose = TRUE) +#' download_archive(to_do_ign, version = "D976", verbose = TRUE) +#' +#' to_do = rbind(to_do_cquest, to_do_ign) +#' download_archive(to_do, version = "D976", verbose = TRUE) #' } download_archive = function( @@ -49,27 +54,24 @@ download_archive = function( name = NULL, date = NULL, version = NULL, - verbose = FALSE) { + verbose = FALSE +) { + result = list() for (i in seq(nrow(to_do))) { - ### Start journal information - start_time = Sys.time() - journal = add_journal( - "WARNING: This file is automatically produced by floodam.data. Do not edit by hand.", - "" - ) + origin = to_do[i, "origin"] journal = add_journal( - sprintf( - "Downloading archives from %s by floodam.data (%s) at %s", - to_do[i, "origin"], - utils::packageVersion("floodam.data"), - Sys.time() + task = sprintf( + "download_archive from %s with floodam.data (%s)", + origin, + utils::packageVersion("floodam.data") ), - journal = journal, verbose = verbose, first = TRUE) + verbose = verbose + ) archive_list = try( suppressWarnings( get_archive( - to_do[i, "origin"], + origin, extension = extension, name = name, date = date, @@ -79,8 +81,29 @@ download_archive = function( silent = TRUE ) if (methods::is(archive_list, "try-error")) { - journal = add_journal(" Aborted: No such url", verbose = verbose) + journal = add_journal( + journal, + status = "Aborted (no such url)", + verbose = verbose + ) + } else if (length(archive_list) == 0) { + msg = sprintf( + "(no archive with name=%s, version=%s, date=%s, extension=%s)", + if (is.null(name)) "NULL" else name, + if (is.null(version)) "NULL" else version, + if (is.null(date)) "NULL" else date, + if (is.null(extension)) "NULL" else extension + ) + journal = add_journal( + journal, + status = sprintf("Aborted %s", msg), + verbose = verbose + ) } else { + message( + sprintf(" %s archives in progress...", length(archive_list)), + appendLF = FALSE + ) dir.create( to_do[i, "destination"], showWarnings = FALSE, @@ -90,6 +113,12 @@ download_archive = function( for (file_origin in archive_list) { archive = basename(file_origin) file_destination = file.path(to_do[i, "destination"], archive) + journal = add_journal( + journal, + task = sprintf("downloading %s", archive), + degree = journal[1, "degree"] + 1, + verbose = verbose + ) try_download = try(utils::download.file( url = file_origin, @@ -97,35 +126,35 @@ download_archive = function( method = "wget", quiet = TRUE), silent = TRUE) if (methods::is(try_download, "try-error")) { - journal = add_journal( - sprintf("%s unsucessully downloaded", archive), - journal = journal, verbose = verbose) unlink(file_destination) success["KO"] = success["KO"] + 1 - } else { journal = add_journal( - sprintf( - "%s sucessully downloaded at %s", - archive, - file_destination - ), - journal = journal, + journal, + status = "Unsuccessful", verbose = verbose ) + } else { success["OK"] = success["OK"] + 1 + journal = add_journal( + journal, + status = "Successful", + verbose = verbose + ) } } journal = add_journal( - sprintf( - "Time elapsed: %s. %s archives treated (%s OK -- %s KO)", - fmt(Sys.time() - start_time), + journal, + status = sprintf( + "Done (%s archives treated, %s OK, %s KO)", sum(success), success["OK"], success["KO"] ), - journal = journal, verbose = verbose) - write( - journal, + verbose = verbose + ) + result[[origin]] = journal + write_journal( + journal, file.path( to_do[i, "destination"], sprintf("%s.%s", gsub("/", "_", to_do[i, "short"]), "log") @@ -133,4 +162,5 @@ download_archive = function( ) } } + return(invisible(do.call(rbind, result))) } \ No newline at end of file diff --git a/R/format_archive.R b/R/format_archive.R new file mode 100644 index 0000000000000000000000000000000000000000..28f00278827a2e9976e1fbfc8f007b0b5d7b7fbb --- /dev/null +++ b/R/format_archive.R @@ -0,0 +1,133 @@ +#' @title Format name of archives to be consistent and predictible +#' +#' @description +#' \code{format_archive} creates formatted names for archives given some +#' informations on the data contained in archives and the type of format aimed +#' at. +#' +#' It can be as the reciprocal function of +#' \code{\link[=analyse_archive]{analyse_archive()}}. +#' +#' @param x character, a named character. +#' @param extension character, if given, it will overrule what is in x. +#' @param origin character, default value to "floodam.data". See details. +#' +#' @return A vector of formatted names. +#' @seealso [analyse_archive()] +#' +#' @details +#' +#' \code{x} should be a named character where informations used for formatting +#' the result ar stored. If some informations are missing, basically NA will be +#' used, and those NA will be post-treated depending on origin. +#' +#' If origin is "floodam.data", \code{format_archive} returns archive names +#' formatted with this general scheme: data_precision_scope_date. Missing +#' informations in \code{x} produce an adaptation of the scheme. For instance, +#' if nothing is given for "scope" in x or if x\["scope"\] is "NA", the resulting +#' scheme will be data_precision_date. +#' +#' If origin is "ign", \code{format_archive} returns names formatted with +#' this scheme: data-type_version_precision_format_projection_scope_date. +#' Missing informations in \code{x} are replaced by "". +#' +#' If origin is "version", \code{format_archive} returns names formatted with +#' this scheme: version_precision_format_projection_scope. Missing informations +#' in \code{x} are replaced by ".*". No extension information is used. +#' +#' If extension is given, the extension is added to be name produced. I no +#' extension is given, x\["extension"\] will be used if not NA. +#' +#' @export +#' +#' @encoding UTF-8 +#' @author Frédéric Grelot +#' +#' @examples +#' archive = "ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z" +#' x = analyse_archive(archive) +#' +#' format_archive(x, origin = "ign") +#' archive == format_archive(x, origin = "ign") +#' +#' format_archive(x, extension = "rds", origin = "ign") +#' format_archive(x, extension = "rds") +#' x["precision"] = "commune" +#' x["scope"] = "D972" +#' format_archive(x, extension = "rds") +#' +#' format_archive(origin = "version") + +format_archive = function( + x, + extension, + origin = c("floodam.data", "ign", "version") +) { + origin = match.arg(origin) + + result = NULL + if (origin == "ign") { + result = sprintf( + "%s_%s_%s_%s_%s_%s_%s", + toupper(x["data"]), + x["version"], + x["precision"], + toupper(x["type"]), + toupper(x["projection"]), + format_scope(x["scope"], check = FALSE), + x["vintage"] + ) + result = gsub("NA", "", result) + } + if (origin == "floodam.data") { + result = sprintf( + "%s_%s_%s_%s", + tolower(x["data"]), + tolower(x["precision"]), + format_scope(x["scope"]), + x["vintage"] + ) + result = gsub("_NA|NA_", "", result) + if (result == "NA") result = "" + } + if (origin == "version") { + if (missing(x)) x = character() + result = sprintf( + "%s_%s_%s_%s_%s", + x["version"], + x["precision"], + x["type"], + x["projection"], + format_scope(x["scope"], check = FALSE) + ) + result = gsub("NA", ".*", result) + extension = NA + } + + if (missing(extension)) extension = x["extension"] + if (!is.na(extension)) result = sprintf("%s.%s", result, extension) + + return(result) +} + +version_archive = function( + version = ".*", + precision = ".*", + type = ".*", + projection = ".*", + scope = ".*" +) { + make_default = function(x) { + if (is.null(x)) x = ".*" + if (length(x) == 0) x = ".*" + return(x) + } + paste( + make_default(version), + make_default(precision), + make_default(type), + make_default(projection), + make_default(scope), + sep = "_" + ) +} diff --git a/R/format_scope.r b/R/format_scope.r new file mode 100644 index 0000000000000000000000000000000000000000..0ef0abb237b47e5153d9ac8c0f855df17d767ab5 --- /dev/null +++ b/R/format_scope.r @@ -0,0 +1,95 @@ +#' @title Format scope +#' +#' @param x vector of scopes. +#' @param type character, either file or something else. +#' @param scope character, either department or region. +#' @param origin character, either department or commune. +#' @param check logical, should check occurs. +#' +#' @return character of formatted scopes +#' +#' @export +#' +#' @encoding UTF-8 +#' @author Frédéric Grelot +#' +#' @examples +#' format_scope(1:10) +#' format_scope(1:10, "insee") +#' format_scope(1:10, scope = "region") +#' format_scope(1:10, scope = "region", check = FALSE) +#' format_scope(1:10, "insee", scope = "region") +#' format_scope(c("FR", 1:10), "insee", scope = "region") +#' format_scope(c(1:10, "2A", "002B")) +#' format_scope(c(1:10, "2A", "002B"), "insee") +#' format_scope("R94", "insee", "region") +#' commune = c("01125", "2A123", "97223", "97723") +#' format_scope(commune, "insee", "department", "commune") + +format_scope = function( + x, + type = c("file", "insee"), + scope = c("department", "region"), + origin = c("department", "commune"), + check = TRUE +) { + type = match.arg(type) + scope = match.arg(scope) + origin = match.arg(origin) + x = as.character(x) + + if (scope == "department") { + if (origin == "department") { + x = gsub("^D", "", x) + int = !is.na(suppressWarnings(as.integer(x))) + if (type == "file") { + x[int] = sprintf("D%03d", as.integer(x[int])) + x = gsub("^0*(2[AB])$", "D0\\1", x) + } else { + x[int] = sprintf("%02d", as.integer(x[int])) + x = gsub("^0*(2[AB])$", "\\1", x) + } + } + if (origin == "commune") { + x[x < "96"] = substr(x[x < "96"], 1, 2) + x[x > "96"] = substr(x[x > "96"], 1, 3) + return(format_scope(x, type = type, check = check)) + } + if (check == TRUE) { + if (type == "file") { + admissible = format_scope( + floodam.data::department[["code"]], + check = FALSE + ) + } else { + admissible = floodam.data::department[["code"]] + } + x[! x %in% admissible] = as.character(NA) + } + } + + if (scope == "region") { + x = gsub("^R", "", x) + int = !is.na(suppressWarnings(as.integer(x))) + if (type == "file") { + x[int] = sprintf("R%02d", as.integer(x[int])) + } else { + x[int] = sprintf("%02d", as.integer(x[int])) + } + if (check == TRUE) { + if (type == "file") { + admissible = format_scope( + floodam.data::region[["code"]], + type = "file", + scope = "region", + check = FALSE + ) + } else { + admissible = floodam.data::region[["code"]] + } + x[! x %in% admissible] = as.character(NA) + } + } + + return(x) +} \ No newline at end of file diff --git a/R/get_archive.R b/R/get_archive.R index 31ed61b7195c56d3bbd65bd2a64fdc9e406447b3..13bb8a54f5190d83d1ce1c3476fc2374d867f043 100644 --- a/R/get_archive.R +++ b/R/get_archive.R @@ -1,5 +1,6 @@ -#' Find archive within an html-type vector +#' @title Find archive within an html-type vector #' +#' @description #' Find all archive of given type within a vector of html text. #' #' @param origin character, the url address where to find archives. @@ -17,7 +18,7 @@ #' @return A character vector of all archives or directory found in origin #' matching with given constraints. #' -#' @section Details: +#' @details #' #' First, a regex search is made to find in x names enclosed in href="name" or #' href='name'. @@ -46,8 +47,9 @@ #' #' @examples #' +#' \dontrun{ #' # RPG archive for year 2010 in data.cquest.org -#' origin = "http://data.cquest.org/registre_parcellaire_graphique/2010" +#' origin = "https://data.cquest.org/registre_parcellaire_graphique/2010" #' file_list = get_archive(origin) #' get_archive(origin) #' get_archive(origin, version = "34") @@ -55,13 +57,13 @@ #' #' # All RPG archives for any year for region "Occitanie" in data.cquest.org #' origin = get_archive( -#' "http://data.cquest.org/registre_parcellaire_graphique", +#' "https://data.cquest.org/registre_parcellaire_graphique", #' directory = TRUE #' ) #' get_archive(origin, version = "R76") #' #' # "geo_siret" archives in data.cquest.org -#' origin = "http://data.cquest.org/geo_sirene/v2019/last/dep" +#' origin = "https://data.cquest.org/geo_sirene/v2019/last/dep" #' get_archive(origin, "gz", c("geo_siret_34", "geo_siret_83")) #' get_archive(origin, "gz", c("geo_siret"), version = c("34", "83")) #' @@ -70,6 +72,7 @@ #' get_archive(origin, "7z", "ADMIN-EXPRESS-COG", date = "last") #' get_archive(origin, "7z", "ADMIN-EXPRESS-COG", version = "FRA", date = "last") #' get_archive(origin, "7z", "ADMIN-EXPRESS", date = 2021:2022) +#' } get_archive = function( origin, @@ -95,7 +98,9 @@ get_archive = function( } x = read_url(origin) - if ("try-error" %in% class(x)) return(invisible()) + if ("try-error" %in% class(x)) { + return(invisible()) + } if (directory == TRUE) {extension = "/"} pattern = "(?<=href=([\"'])).*?(?=\\1)" @@ -164,4 +169,4 @@ get_archive = function( } } return(result) -} \ No newline at end of file +} diff --git a/R/gpkg_from_7z.R b/R/gpkg_from_7z.R index 82dca2c690fc750c663a1ab0c45a8799175b64a3..973664ba0c03da6061f9ed6d0639e06b352e92b9 100644 --- a/R/gpkg_from_7z.R +++ b/R/gpkg_from_7z.R @@ -34,7 +34,7 @@ gpkg_from_7z = function(archive) { #' #' @description #' The function 'shp_from_7z' uses a system call to 7z to uncompress a 7z -#' archive. It looks specifically for a gkpg file inside the 7z archive. +#' archive. It looks specifically for a shp file inside the 7z archive. #' #' @param archive character, path to the 7z archive. #' @@ -47,16 +47,16 @@ gpkg_from_7z = function(archive) { shp_from_7z = function(archive) { path_temp = tempdir() - gpkg = gsub( + shp = gsub( ".+ ", "", grep( - "gpkg$", + "shp$", system(sprintf("7z l %s 2>&1", archive), intern = TRUE), value = TRUE ) ) system( - sprintf("7z e -y %s -o%s %s", archive, path_temp, gpkg), + sprintf("7z e -y %s -o%s %s", archive, path_temp, shp), ignore.stdout = TRUE, wait = TRUE ) return(path_temp) @@ -85,4 +85,4 @@ read_gpkg_layer = function(path, layer) { layer = layer, quiet = TRUE ) -} +} \ No newline at end of file diff --git a/R/read_url.R b/R/read_url.R index d4c46a99199635b8aedbd35ef042994e6e5951b1..787d1620d4ae6656a9a0cc6ccd78719284ddba25 100644 --- a/R/read_url.R +++ b/R/read_url.R @@ -9,7 +9,7 @@ #' @export #' #' @examples -#' origin = "http://data.cquest.org/registre_parcellaire_graphique/" +#' origin = "https://data.cquest.org/registre_parcellaire_graphique/" #' year = "2010" #' index = read_url(sprintf("%s/%s", origin, year)) #' \dontrun{ diff --git a/R/read_with_scheme.R b/R/read_with_scheme.R index 58f2da3ba87e87c06909d7839eeb01c661cf0033..afbf3881cea09d7a4fa94a231e8af839f9750408 100644 --- a/R/read_with_scheme.R +++ b/R/read_with_scheme.R @@ -1,18 +1,21 @@ -#' @title Read tabular data with a scheme +#' @name read_with_scheme +#' @title Read data with a scheme #' #' @description -#' The function relies on \code{data.table::fread} to read tabular data, and -#' to apply a scheme. The idea is to used the efficiency of \code{fread} to read -#' more quickly data (and without too many specifications on "sep" and "dec"), -#' and to used some options to read only data that will be kept with original -#' format given in scheme. As almost, everyhting is done after reading, the -#' remaining part of applying a scheme is also one: final format is applied, -#' and if, some "lon" and "lat" is found, data is transformed in sf object. +#' \code{read_with_scheme} is a wrapper for more specific functions. It uses +#' \code{type} and \code{extension} to call the good function. If those +#' parameters are not specified it tries to guess them from the name of the +#' archive included in \code{x}. #' #' @param x character, path of the data to be read. #' @param scheme data.frame, scheme to be applied. #' @param projection something that will be used in the option "crs" of #' \code{sf::st_as_sf}. +#' @param layer character, indicates the layer to be read for data organized by +#' layers. +#' @param type character, indicates the type of data that should be read. +#' @param extension character, indicate the exrtension of the archive. If +#' missing will be guessed from x. #' #' @return data adapted, either a data.frame or a 'sf' objects. #' @@ -23,12 +26,90 @@ #' #' If 'projection' is NA (default), no crs is given \code{sf::to st_as_sf}. #' +#' @rdname read_with_scheme #' @export #' #' @encoding UTF-8 #' @author Frédéric Grelot -read_with_scheme = function(x, scheme = NULL, projection = NA) { +read_with_scheme = function( + x, + scheme = NULL, + projection = NA, + layer, + type, + extension = tools::file_ext(x) +) { + if (missing(type)) { + test = suppressWarnings(analyse_archive(basename(x))[["type"]]) + if (!is.na(test)) { + type = test + } else if (extension == "gz") { + type = tools::file_ext(tools::file_path_sans_ext(x)) + } else { + type = extension + } + } + type = tolower(type) + extension = tolower(extension) + + if (type == "csv") { + return(read_csv_with_scheme(x, scheme, projection)) + } + if (extension == "shp") { + return(read_shp_with_scheme(x, scheme, projection, layer)) + } + if (extension == "gpkg") { + return(read_gpkg_with_scheme(x, scheme, projection, layer)) + } + if (extension == "7z" & type == "gpkg") { + return(read_gpkg_from_7z(x, scheme, projection, layer)) + } + if (extension == "7z" & type == "shp") { + return(read_shp_from_7z(x, scheme, projection, layer)) + } + if (type == "zip") { + x = sprintf("unzip -p %s", x) + old_option = options(datatable.fread.input.cmd.message = FALSE) + on.exit( + options( + datatable.fread.input.cmd.message = + old_option[["datatable.fread.input.cmd.message"]] + ) + ) + return(read_csv_with_scheme(x, scheme, projection)) + } + + message( + sprintf( + "Could not a way to read data of type '%s' and extension '%s'.", + type, + extension + ), + "NULL is returned." + ) + return(NULL) +} + +#' @rdname read_with_scheme +#' +#' @description +#' \code{read_csv_with_scheme} relies on \code{data.table::fread} to read +#' tabular data, and to apply a scheme. The idea is to used the efficiency of +#' \code{fread} to read more quickly data (and without too many specifications +#' on "sep" and "dec"), and to used some options to read only data that will be +#' kept with original format given in scheme. As almost, everyhting is done +#' after reading, the remaining part of applying a scheme is also one: final +#' format is applied, and if, some "lon" and "lat" is found, data is transformed +#' in sf object. +#' +#' @export + +read_csv_with_scheme = function( + x, + scheme = NULL, + projection = NA +) { if (!is.null(scheme)) { scheme = scheme[scheme[["keep"]], ] select = stats::setNames( @@ -51,7 +132,7 @@ read_with_scheme = function(x, scheme = NULL, projection = NA) { ) for (type in names(treatment)) { selection = scheme[["name"]][scheme[["type"]] == type] - x[selection] = lapply(x[selection], treatment[[type]]) + result[selection] = lapply(result[selection], treatment[[type]]) } } else { result = data.table::fread( @@ -70,4 +151,148 @@ read_with_scheme = function(x, scheme = NULL, projection = NA) { } return(result) -} \ No newline at end of file +} + +#' @rdname read_with_scheme +#' +#' @description +#' \code{read_shp_with_scheme} relies on \code{sf::st_read} to read gpkg data. +#' If given, projection is changed. If given scheme is applyed through +#' \code{apply_scheme}. It is supposed that the scheme given is organized with a +#' layer column. +#' +#' @export + +read_shp_with_scheme = function( + x, + scheme = NULL, + projection = NA, + layer +) { + result = sf::st_read(x, quiet = TRUE) + + if (!is.na(projection)) { + result = sf::st_transform(result, crs = projection) + } + if (!is.null(scheme)) { + if (missing(layer)) layer = basename_core(x) + result = apply_scheme(result, scheme, selection = list("layer" = layer)) + } + + return(result) +} + +#' @rdname read_with_scheme +#' +#' @description +#' \code{read_gpkg_with_scheme} relies on \code{sf::st_read} to read gpkg data. +#' If given, projection is changed. If given scheme is applyed through +#' \code{apply_scheme}. It is supposed that the scheme given is organized with a +#' layer column. +#' +#' @export + +read_gpkg_with_scheme = function( + x, + scheme = NULL, + projection = NA, + layer +) { + result = sf::st_read(x, layer = layer, quiet = TRUE) + + if (!is.na(projection)) { + result = sf::st_transform(result, crs = projection) + } + if (!is.null(scheme)) { + result = apply_scheme(result, scheme, selection = list("layer" = layer)) + } + + return(result) +} + +#' @rdname read_with_scheme +#' +#' @description +#' \code{read_shp_from_7z} uses a system call to 7z to uncompress a +#' 7z archive. It looks specifically for files that correspond to given layer. +#' It then reads the uncompressed gpkg file with a call to +#' \code{read_shp_with_scheme}. +#' +#' @export + +read_shp_from_7z = function( + x, + scheme = NULL, + projection = NA, + layer +) { + path_temp = tempdir() + on.exit(unlink(path_temp)) + file_list = gsub( + ".+ ", "", + grep( + sprintf("/%s.[a-z]+$", layer), + system(sprintf("7z l %s 2>&1", x), intern = TRUE), + value = TRUE + ) + ) + sapply( + sprintf("7z e -y %s -o%s %s", x, path_temp, file_list), + system, + ignore.stdout = TRUE, + wait = TRUE + ) + + x = file.path( + path_temp, + grep("shp$", basename(file_list), value = TRUE) + ) + return(read_shp_with_scheme(x, scheme, projection)) +} + +#' @rdname read_with_scheme +#' +#' @description +#' \code{read_gkpg_from_7z} uses a system call to 7z to uncompress a 7z archive. +#' It looks specifically for files with extension gkpg, and presumes that there +#' is only one. It then reads the uncompressed gpkg file with a call to +#' \code{read_gpkg_with_scheme}. +#' +#' @export + +read_gpkg_from_7z = function( + x, + scheme = NULL, + projection = NA, + layer +) { + path_temp = tempdir() + on.exit(unlink(path_temp)) + gpkg = gsub( + ".+ ", "", + grep( + "gpkg$", + system(sprintf("7z l %s 2>&1", x), intern = TRUE), + value = TRUE + ) + ) + if (length(gpkg) > 1) { + message( + "Too many gpkg archives found. ", + "Only the first one will be treated." + ) + gpkg = gpkg[1] + } + if (length(gpkg) == 0) { + message("No gpkg found, NULL is returned.") + return(NULL) + } + + system( + sprintf("7z e -y %s -o%s %s", x, path_temp, gpkg), + ignore.stdout = TRUE, wait = TRUE + ) + + x = file.path(path_temp, basename(gpkg)) + return(read_gpkg_with_scheme(x, scheme, projection, layer)) +} diff --git a/R/save_archive.R b/R/save_archive.R new file mode 100644 index 0000000000000000000000000000000000000000..8c254a534a1a28b821e234982f053c5f69950124 --- /dev/null +++ b/R/save_archive.R @@ -0,0 +1,114 @@ +#' @title Save an archive in a formatted way +#' +#' @description +#' \code{save_archive} saves archives in a formatted way, to help retrieve +#' those archives for a use in a typical 'floodam.data' perspective. +#' +#' @param x data.frame, data to be archived. +#' @param path character, the path from wich the archive's path is constructed. +#' See details. +#' @param scope character or factor. If factor or long character, how x will be +#' sliced. If character of length 1, may be the name of a variable of x. See +#' details. +#' @param extension character, the extension and so the format to be used for +#' saving. See details. +#' @param origin character, default value to "floodam.data". See details. +#' +#' @return Nothin useful. +#' +#' @details +#' +#' TO BE COMPLETED +#' +#' @export +#' +#' @encoding UTF-8 +#' @author Frédéric Grelot +#' +#' @examples +#' +#' x = data.frame(scope = 0:2) +#' temp_dir = tempdir() +#' scope = "scope" +#' +#' # No scope, no extension, only basename +#' save_archive(x, file.path(temp_dir, "x")) +#' +#' # Adding a scope +#' save_archive(x, file.path(temp_dir, "x"), scope = "scope") +#' +#' # Using a path with extension, but also parameter extension +#' save_archive(x, file.path(temp_dir, "x.7z"), extension = "rds", scope = "scope") + +save_archive = function( + x, + path, + scope = NULL, + extension = NULL, + origin = "floodam.data" +) { + if (!is.null(scope) & is.atomic(scope) & !is.factor(scope)) { + scope = as.character(scope) + } + if (is.character(scope)) { + if (length(scope) == 1 && scope %in% names(x)) { + scope = format_scope(x[[scope]]) + + } + if (length(scope) > 1) { + scope = as.factor(scope) + } + } + if (is.factor(scope)) { + if (any(is.na(scope))) { + warning( + "Some levels of scope ar NA. ", + "Corresponding data will not be saved." + ) + } + x = split(x, scope) + return( + invisible( + mapply( + save_archive, + x = x, + scope = levels(scope), + MoreArgs = list( + path = path, + extension = extension, + origin = origin + ) + ) + ) + ) + } + if (!is.null(scope) & !is.character(scope)) { + warning("scope should be a character at this stage. It is removed.") + scope = NULL + } + if (nrow(x) == 0) { + warning("Empty data. Nothing is saved.") + return(invisible(NULL)) + } + + if (is.null(extension)) { + extension = basename_ext(path) + if (extension == "") { + extension = analyse_archive(path, origin = origin)["extension"] + } + } + + if (extension %in% "rds") { + analyse = analyse_archive(path, origin = origin) + if (!is.null(scope)) analyse["scope"] = scope + path = file.path( + dirname(path), + format_archive(analyse, extension = extension) + ) + saveRDS(x, path) + return(invisible(NULL)) + } + + warning("Unmanaged extension. Nothing is saved.") + return(invisible(NULL)) +} \ No newline at end of file diff --git a/R/summarise_dwelling.R b/R/summarise_dwelling.R index 869c016b84a495cd1cfb0b741c6853e4bee3949a..b0a8470223c218c8cbe9bcc24ef7bb9867266e74 100644 --- a/R/summarise_dwelling.R +++ b/R/summarise_dwelling.R @@ -180,7 +180,7 @@ summarise_dwelling = function( # Save result dir.create(destination, showWarnings = FALSE, recursive = TRUE) - name = tools::file_path_sans_ext(basename(archive)) + name = basename_core(archive) data.table::fwrite( result, file = file.path(destination, sprintf("%s_%s.csv.gz", name, flood)), diff --git a/R/utilities.R b/R/utilities.R index 6ebc445639410acdcb2ae245c79eec395837c711..e9cd244f43fd63a228e8e22e42147aedae65e405 100644 --- a/R/utilities.R +++ b/R/utilities.R @@ -64,11 +64,11 @@ treat_na = function(x, value) { #' @author Frédéric Grelot #' #' @examples -#' journal = floodam.data:::add_journal("Operation started.") -#' floodam.data:::add_journal("No problem occurred.", journal = journal) -#' floodam.data:::add_journal("No problem occurred.", journal = journal, verbose = TRUE) +#' journal = floodam.data:::add_journal_old("Operation started.") +#' floodam.data:::add_journal_old("No problem occurred.", journal = journal) +#' floodam.data:::add_journal_old("No problem occurred.", journal = journal, verbose = TRUE) -add_journal = function(..., journal = character(), verbose = FALSE, first = FALSE) { +add_journal_old = function(..., journal = character(), verbose = FALSE, first = FALSE) { args = as.character(unlist(list(...))) if (identical(verbose, TRUE)) { if (identical(first, FALSE)) message(paste("\t...", args)) else message(args) @@ -77,158 +77,6 @@ add_journal = function(..., journal = character(), verbose = FALSE, first = FALS return(c(journal, args)) } -#' @title Format scope -#' -#' @param x vector of scopes. -#' @param type character, either file or something else. -#' @param scope character, either department or region. -#' @param origin character, either department or commune. -#' @param check logical, should check occurs. -#' -#' @return character of formatted scopes -#' -#' @export -#' -#' @encoding UTF-8 -#' @author Frédéric Grelot -#' -#' @examples -#' format_scope(1:10) -#' format_scope(1:10, "insee") -#' format_scope(1:10, scope = "region") -#' format_scope(1:10, scope = "region", check = FALSE) -#' format_scope(1:10, "insee", scope = "region") -#' format_scope(c("FR", 1:10), "insee", scope = "region") -#' format_scope(c(1:10, "2A", "002B")) -#' format_scope(c(1:10, "2A", "002B"), "insee") -#' format_scope("R94", "insee", "region") -#' commune = c("01125", "2A123", "97223", "97723") -#' format_scope(commune, "insee", "department", "commune") - -format_scope = function( - x, - type = c("file", "insee"), - scope = c("department", "region"), - origin = c("department", "commune"), - check = TRUE -) { - type = match.arg(type) - scope = match.arg(scope) - origin = match.arg(origin) - x = as.character(x) - - if (scope == "department") { - if (origin == "department") { - x = gsub("^D", "", x) - int = !is.na(suppressWarnings(as.integer(x))) - if (type == "file") { - x[int] = sprintf("D%03d", as.integer(x[int])) - x = gsub("^0*(2[AB])$", "D0\\1", x) - } else { - x[int] = sprintf("%02d", as.integer(x[int])) - x = gsub("^0*(2[AB])$", "\\1", x) - } - } - if (origin == "commune") { - x[x < "96"] = substr(x[x < "96"], 1, 2) - x[x > "96"] = substr(x[x > "96"], 1, 3) - return(format_scope(x, type = type, check = check)) - } - if (check == TRUE) { - if (type == "file") { - admissible = format_scope( - floodam.data::department[["code"]], - check = FALSE - ) - } else { - admissible = floodam.data::department[["code"]] - } - x[! x %in% admissible] = as.character(NA) - } - } - - if (scope == "region") { - x = gsub("^R", "", x) - int = !is.na(suppressWarnings(as.integer(x))) - if (type == "file") { - x[int] = sprintf("R%02d", as.integer(x[int])) - } else { - x[int] = sprintf("%02d", as.integer(x[int])) - } - if (check == TRUE) { - if (type == "file") { - admissible = format_scope( - floodam.data::region[["code"]], - type = "file", - scope = "region", - check = FALSE - ) - } else { - admissible = floodam.data::region[["code"]] - } - x[! x %in% admissible] = as.character(NA) - } - } - - return(x) -} - -analyse_archive = function(x, origin = "IGN") { - if (length(x) > 1) return(t(sapply(x, analyse_archive))) - - if (origin == "IGN") { - result = strsplit(x, "_")[[1]] - if (length(result) != 7) { - result = rep(NA_character_, 10) - } else { - result[8] = strsplit(result[6], "-")[[1]][2] - result[6] = strsplit(result[6], "-")[[1]][1] - if(is.na(result[8])) result[8] = strsplit(result[7], "-")[[1]][1] - result[9] = gsub("[0-9]{4}-[0-9]{2}-[0-9]{2}[.]*", "", result[7]) - result[7] = gsub("[.].*$", "", result[7]) - result[10] = gsub(sprintf("[.]%s$", result[9]), "", x) - } - names(result) = c( - "data", - "version", - "precision", - "format", - "projection", - "scope", - "date", - "year", - "extension", - "name" - ) - return(result) - } - - return(x) -} - -version_archive = function( - version = ".*", - precision = ".*", - type = ".*", - projection = ".*", - scope = ".*" -) { - make_default = function(x) { - if (is.null(x)) x = ".*" - if (length(x) == 0) x = ".*" - return(x) - } - paste( - make_default(version), - make_default(precision), - make_default(type), - make_default(projection), - make_default(scope), - sep = "_" - ) -} - - file_version = function(path, pattern, version = "last") { if (is.na(pattern)) return(character()) decreasing = switch( diff --git a/_pkgdown.yml b/_pkgdown.yml index aef5b124705bf57cb60d370bf99f89e07c600cf8..2cd346bd954895969cb1e6dc4b1e7a2d4e4f8eaf 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -15,6 +15,7 @@ articles: desc: French description of database managed navbar: database (Fr) contents: + - admin_express_fr - ban_fr - bd_topo_fr - gaspar_fr diff --git a/data-raw/scheme.R b/data-raw/scheme.R index c8915176182b49b0a9f76e5be45ea2bc5fc785d1..5a7088fd35db31ca87210038a896a40752ef0165 100644 --- a/data-raw/scheme.R +++ b/data-raw/scheme.R @@ -65,11 +65,19 @@ rownames(nomenclature_rpg_2) = scheme_rpg_1[["culture"]] Encoding(nomenclature_rpg_2[["culture_label_fr"]]) = "UTF-8" usethis::use_data(nomenclature_rpg_2, overwrite = TRUE) -scheme_admin_express = - data.table::fread("inst/extdata/scheme_admin_express.csv", data.table = FALSE, colClasses = "character") -Encoding(scheme_admin_express[["label.fr"]]) = "UTF-8" -Encoding(scheme_admin_express[["comment"]]) = "UTF-8" -usethis::use_data(scheme_admin_express, overwrite = TRUE) +scheme_admin_express_2_0 = + data.table::fread("inst/extdata/scheme_admin_express_2_0.csv", data.table = FALSE, colClasses = "character") +scheme_admin_express_2_0[["keep"]] = as.logical(scheme_admin_express_2_0[["keep"]]) +Encoding(scheme_admin_express_2_0[["label_fr"]]) = "UTF-8" +Encoding(scheme_admin_express_2_0[["comment"]]) = "UTF-8" +usethis::use_data(scheme_admin_express_2_0, overwrite = TRUE) + +scheme_admin_express_3_1 = + data.table::fread("inst/extdata/scheme_admin_express_3_1.csv", data.table = FALSE, colClasses = "character") +scheme_admin_express_3_1[["keep"]] = as.logical(scheme_admin_express_3_1[["keep"]]) +Encoding(scheme_admin_express_3_1[["label_fr"]]) = "UTF-8" +Encoding(scheme_admin_express_3_1[["comment"]]) = "UTF-8" +usethis::use_data(scheme_admin_express_3_1, overwrite = TRUE) scheme_ban = data.table::fread("inst/extdata/scheme_ban.csv", data.table = FALSE, colClasses = "character") diff --git a/data/scheme_admin_express.rda b/data/scheme_admin_express.rda deleted file mode 100644 index fc9c3db759392aab5b67cda7b5193f79c2a5b562..0000000000000000000000000000000000000000 Binary files a/data/scheme_admin_express.rda and /dev/null differ diff --git a/data/scheme_admin_express_2_0.rda b/data/scheme_admin_express_2_0.rda new file mode 100644 index 0000000000000000000000000000000000000000..46637cd80a19137cd64538a13de33112b0a665a6 Binary files /dev/null and b/data/scheme_admin_express_2_0.rda differ diff --git a/data/scheme_admin_express_3_1.rda b/data/scheme_admin_express_3_1.rda new file mode 100644 index 0000000000000000000000000000000000000000..5b8c336292ca2c75f2a9f5a286753dff3ab0b90d Binary files /dev/null and b/data/scheme_admin_express_3_1.rda differ diff --git a/data/scheme_insee_logement_2019.rda b/data/scheme_insee_logement_2019.rda index 602131f0a89ceab9c7a5507291ed493f6fcc3263..6bfb19bc31b301748c64f3e226852bb168bf6583 100644 Binary files a/data/scheme_insee_logement_2019.rda and b/data/scheme_insee_logement_2019.rda differ diff --git a/dev/tag-message b/dev/tag-message index 615d97ed0ae14ec1b7f5c11fcaa4f05a7731fc36..8e24bb6c868127f859d980ba4d5b97b06f39542a 100644 --- a/dev/tag-message +++ b/dev/tag-message @@ -1,14 +1,123 @@ -floodam.data Version: 0.9.34.1 +floodam.data Version: 0.9.35.0 0 errors ✔ | 0 warnings ✔ | 0 notes ✔ **Note de version** - * Amélioration de extract_building - * invisible même pour l'appel récursif - * Amélioration de extract_dwelling - * invisible même pour l'appel récursif + * Amélioration de adapt_admin_express + * Remplace adapt.admin_express + * Utilisation du nouveau système de journal + * Utilisation de read_with_scheme pour lecture et mise en formatter + * Utilisation de save_archive pour sauvegarde y compris de façon + découpée + * paramètre export renommé en extension pour cohérence avec save_archive + * MaJ de la documentation + * Amélioration de analyse_archive + * fonction isolée et exportée + * traite les formats "IGN" et "floodam.data" + * fait des tests sur les sorties et renvoie des warnings + * test dans test_analyse_archive + * TO DO : intégrer les formats attendus dans une variable globale, hors + de la fonction + * Ajout de format_archive + * permet de créer des noms formattés des archives à partir + d'informations standardisées + * origin = "floodam.data" (défault) pour créer les noms des archives de + sauvegarde + * origin = "ign" pour créer les noms à la façon IGN (inverse de + analyse_archive) + * origin = "version" pour créer des patterns pour chercher dans les noms + façon IGN. + * tests dans test_format_archive + * Ajout de save_archive + * sauvegarde d'une archive de façon standardisée + * analyse le path pour trouver les informations (possibilité d'utiliser + l'option origin pour spécifier si origin = "floodam.data" ou origin = + "ign") + * extension peut-être écrasée par paramètre dédié + * gestion du scope (attention ça peut-être un facteur qui découpe + les données ou le nom d'une colonne dans cet input). + * extension gérée pour le moment: rds + * tests dans test_save_archive + * Amélioration de downlaod_archive + * renvoie un message si aucune archive n'est trouvée avec les options + demandées + * utilisation de add_journal_new au lieu de add_journal + * Amélioration de add_journal + * reprise de add_journal_new + * ancienne add_journal renommée temporairement en add_journal_old le + temps de la migration + * meilleure présentation des sous-tâches en introduisant le paramètre + degree + * Ajout de write_journal + * permet d'écrire un journal produit par add_journal_new soit au format + "csv", soit au format "log" en fonction de l'extension du fichier + * si aucun fichier n'est donné, le message au format "log" est affiché + sur la sortie standard + * si un fichier existant est donné, le journal est ajouté au précédent, + quelque soit le format choisi ("log" ou "csv") + * Non exportée + * Ajout de basename_core + * trouve le nom d'une archive en enlevant le path et les doubles + extensions de type .csv.gz ou .7z.001 notamment + * déploiement dans les fonctions + * tests dans test_basename_utilities + * Ajout de basename_ext + * trouve les extensions y compris les doubles de type .csv.gz ou .7z.001 + notamment + * déploiements dans les fonctions + * tests + * Ajout de format_journal + * permet de formatter un journal (ou une partie de journal) pour + préparer des messages au format "log" + * Non exportée + * Amélioration de read_with_scheme + * wrapper pour différentes fonctions plus spécifiques + * gère csv, csv.gz, shp, gpkg, shp from 7z, gpkg from 7z, zip + * pour zip, attention fait appel à une commande 'system' en modifiant + le nom du fichier pour faire une commande qui sera détectée par + data.table::fread, et présume que le format sera csv et pourra être lu + avec read_csv_with_scheme + * pour zip, modifie temporairemen l'option + 'datatable.fread.input.cmd.message' pour éviter le message renvoyé par + data.table::fread + * Ajout de read_csv_with_scheme + * correspond à ancienne version de read_with_scheme qui était csv + spécifique + * Ajout de read_gpkg_with_scheme + * gestion de gpkg avec scheme et projection + * Ajout de read_shp_with_scheme + * gestion de shp avec scheme et projection + * Amélioration de read_shp_from_7z + * Ancienne version n'était pas finalisée + * Extraction en fonction de la layer spécifiée + * Amélioration de read_gpkg_from_7z + * Séparation claire de la décompression et de la lecture + * Sécurité si plusieurs gpkg + * download_admin_express + * transformation de download.admin_express + * meilleure gestion des options (et match.arg) + * scheme_admin_express_3_1 (data) + * nouveau format à partir des infos IGN (version 3-1) + * style des noms des variables "." → "_" + * MaJ de data-raw/scheme.R et R/data.R pour intégration & documentation + * scheme_admin_express_2_0 (data) + * renommage de scheme_admin_express (data) qui ne faisait pas mention de + la version (version 2-0) + * style des noms des variables "." → "_" + * MaJ de data-raw/scheme.R et R/data.R pour intégration & documentation + * scheme_insee_2019 (data) + * renommage de certaines variables ('type_loge' en 'type', 'n_loge' en + 'dwelling', 'cat_loge' en 'usage') pour plus de cohérénces + * documentation + * corrections de coquilles (à la volée) pour les datasets + * regroupement des documentions pour fonction de la famille + read_with_scheme + * data.cquest.org + * toutes les mentions à l'adresse passent en https au lieu de http + * Roxygen + * utilisation de l'option markdown = TRUE (dans DESCIPTION) **Détails** -# git tag -a v0.9.34.1 -F dev/tag-message +# git tag -a v0.9.35.0 -F dev/tag-message # git push --tags diff --git a/docs/404.html b/docs/404.html index f8d939fea8737de64d80936e4c44d553d92aed83..efe1cd20ddd5c47f77db48bd3270dc0eabd93951 100644 --- a/docs/404.html +++ b/docs/404.html @@ -39,7 +39,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -70,6 +70,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/articles/admin_express_fr.html b/docs/articles/admin_express_fr.html new file mode 100644 index 0000000000000000000000000000000000000000..86ac7485b32a815ec2ca054dd518fe734b6c93a9 --- /dev/null +++ b/docs/articles/admin_express_fr.html @@ -0,0 +1,479 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<meta charset="utf-8"> +<meta http-equiv="X-UA-Compatible" content="IE=edge"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> +<title>Admin express (French) • floodam.data</title> +<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"> +<link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"> +<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"> +<link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"> +<link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"> +<link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"> +<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"> +<script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"> +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"> +<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"> +<script src="../pkgdown.js"></script><meta property="og:title" content="Admin express (French)"> +<meta property="og:description" content="floodam.data"> +<meta property="og:image" content="/logo.png"> +<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--> +</head> +<body data-spy="scroll" data-target="#toc"> + + + <div class="container template-article"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"> +<li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"> +<li class="divider"> + </li> +<li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + </li> +<li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + </li> +<li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + </li> +<li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + </li> +<li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul> +</li> + </ul> +<ul class="nav navbar-nav navbar-right"></ul> +</div> +<!--/.nav-collapse --> + </div> +<!--/.container --> +</div> +<!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header toc-ignore"> + <h1 data-toc-skip>Admin express (French)</h1> + + <h4 data-toc-skip class="date">2023-01-27</h4> + + + <div class="hidden name"><code>admin_express_fr.Rmd</code></div> + + </div> + + + +<div class="section level2"> +<h2 id="description-de-la-base-de-données-admin-express">Description de la base de données ADMIN EXPRESS<a class="anchor" aria-label="anchor" href="#description-de-la-base-de-donn%C3%A9es-admin-express"></a> +</h2> +<p>La base de données <strong>ADMIN EXPRESS</strong> décrit le découpage administratif du territoire métropolitain français et des Départements et Régions d’Outre-Mer (DROM). Les Collectivités d’Outre-Mer (COM) ne sont pas couvertes par ce produit.</p> +<p>Cette base de données contient les informations suivantes :</p> +<ul> +<li>ARRONDISSEMENT</li> +<li>ARRONDISSEMENT_MUNICIPAL</li> +<li>CANTON</li> +<li>CHFLIEU_ARRONDISSEMENT_MUNICIPAL</li> +<li>CHFLIEU_COMMUNE</li> +<li>CHFLIEU_COMMUNE_ASSOCIEE_OU_DELEGUEE</li> +<li>COLLECTIVITE_TERRITORIALE</li> +<li>COMMUNE</li> +<li>COMMUNE_ASSOCIEE_OU_DELEGUEE</li> +<li>DEPARTEMENT</li> +<li>EPCI</li> +<li>REGION</li> +</ul> +<p>La base de données ADMIN EXPRESS est actuellement dans sa version 3.1. Elle est livrée avec un rythme de mise à jour mensuel depuis 2016. Elle compte aussi avec une édition annuelle, conforme au COG (Code Officiel Géographique) de l’INSEE, qui rassemble les codes et libellés des entités administratives y compris d’outre-mer au 1er janvier de l’année en cours.</p> +<p><strong>→ ADMIN EXPRESS COG CARTO à definir (pas d’information claire dans le site)</strong></p> +<p>La dernière version d’ADMIN EXPRESS est disponible à l’adresse suivante : <a href="https://geoservices.ign.fr/adminexpress#telechargement" class="external-link uri">https://geoservices.ign.fr/adminexpress#telechargement</a>. Ainsi, la documentation peut être consultée ici : <a href="https://geoservices.ign.fr/documentation/donnees/vecteur/adminexpress" class="external-link uri">https://geoservices.ign.fr/documentation/donnees/vecteur/adminexpress</a> et l’évolution du produit ici : <a href="https://geoservices.ign.fr/sites/default/files/2022-12/SE_ADMIN_EXPRESS.pdf" class="external-link uri">https://geoservices.ign.fr/sites/default/files/2022-12/SE_ADMIN_EXPRESS.pdf</a></p> +<p>ADMIN EXPRESS est diffusée sous licence ouverte Etalab.</p> +<p>La base de données ADMIN EXPRESS est disponible uniquement en format vectoriel. Il existe plusieurs systèmes de coordonnées de référence disponibles en fonction du territoire :</p> +<ul> +<li>RGF93 Lambert 93 (France metropolitaine)</li> +<li>WGS84 geographiques (France metropolitaine + DROM)</li> +<li>RGAF09 UTM Nord Fuseau 20 (Guadeloupe et Martinique)</li> +<li>RGFG95 UTM Nord f.22 (Guyane)</li> +<li>RGM04 UTM Sud fuseau 38 (Mayotte)</li> +<li>RGR92 UTM 40 Sud (La Réunion)</li> +</ul> +</div> +<div class="section level2"> +<h2 id="manipulation-dadmin-express-avec-floodam-data">Manipulation d’ADMIN EXPRESS avec floodam.data<a class="anchor" aria-label="anchor" href="#manipulation-dadmin-express-avec-floodam-data"></a> +</h2> +<p><strong>floodam.data</strong> permet de gérer la maintenance d’une base de données adaptée à partir de la base de données ADMIN EXPRESS.</p> +<p>Pour ce faire, <strong>floodam.data</strong> utilise la séquence de fonctions suivantes :</p> +<p><img src="img/admin_express.png" width="384"></p> +<div class="section level3"> +<h3 id="téléchargement-de-la-base-de-données-admin-express">Téléchargement de la base de données ADMIN EXPRESS<a class="anchor" aria-label="anchor" href="#t%C3%A9l%C3%A9chargement-de-la-base-de-donn%C3%A9es-admin-express"></a> +</h3> +<p>Pour cette tâche, <strong>floodam.data</strong> se sert de la fonction <code><a href="../reference/download_admin_express.html">download_admin_express()</a></code>.</p> +<p>Il y a 2 sources possibles pour le téléchargement de la base de données :</p> +<ul> +<li><a href="https://geoservices.ign.fr/adminexpress" class="external-link uri">https://geoservices.ign.fr/adminexpress</a></li> +<li><a href="https://data.cquest.org/ign/adminexpress" class="external-link uri">https://data.cquest.org/ign/adminexpress</a></li> +</ul> +<p>La dernière source est un miroir de la première.</p> +<p>La fonction <code><a href="../reference/download_admin_express.html">download_admin_express()</a></code> La fonction permet de télécharger la base de données, en premier lieu, à partir de la première adresse. En cas d’échec, la deuxième source de données est utilisée. Des sources alternatives peuvent être utilisées en fournissant des paramètres additionnels (voir aide de la fonction : <a href="http://www.floodam.org/floodam.data/reference/download.admin_express.html" class="external-link uri">http://www.floodam.org/floodam.data/reference/download.admin_express.html</a>).</p> +<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r"> +<code class="sourceCode R"><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va">floodam.data</span><span class="op">)</span> +<span class="va">destination</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/file.path.html" class="external-link">file.path</a></span><span class="op">(</span><span class="st">"admin_express"</span>, <span class="st">"download"</span><span class="op">)</span> +<span class="fu">download.bd_topo</span><span class="op">(</span><span class="va">destination</span><span class="op">)</span> +<span class="fu">download.bd_topo</span><span class="op">(</span><span class="va">destination</span>, origin <span class="op">=</span> <span class="st">"cquest"</span><span class="op">)</span></code></pre></div> +</div> +<div class="section level3"> +<h3 id="traitement-de-la-base-de-données-admin-express">Traitement de la base de données ADMIN EXPRESS<a class="anchor" aria-label="anchor" href="#traitement-de-la-base-de-donn%C3%A9es-admin-express"></a> +</h3> +<p>Pour cette tâche, <strong>floodam.data</strong> utilise la fonction <code><a href="../reference/adapt_admin_express.html">adapt_admin_express()</a></code>.</p> +<p>Une fois telechargée, la base de données peut être traitée avec la fonction <code><a href="../reference/adapt_admin_express.html">adapt_admin_express()</a></code>. Cette fonction effectue plusieures transformations sur la base de données originale :</p> +<ol style="list-style-type: decimal"> +<li>Le système de référence des coordonnées (CRS) est vérifié. Si aucun n’est présent, le CRS <strong>EPSG:4326</strong> est défini par défaut. Si un autre CRS est fourni par le paramètre <code>projection</code>, la base de données est reprojetée pour correspondre au CRS fourni.</li> +<li>Les géométries sont vérifiées et rendues valides si nécessaire.</li> +<li>Un schéma pré-configuré (<code>floodam.data::scheme_admin_express</code>) est appliqué à chaque couche de la base de données afin de consolider les noms et types de variables.</li> +<li>La sortie est sauvegardée comme fichier <em>rds</em> dans le dossier fourni dans le paramètre <code>destination</code>.</li> +<li>Concernant la couche COMMUNE, la sortie est enregistrée au niveau du département.</li> +<li>Dans le cas où plusieurs couches sont présentes, la fonction s’applique de façon recursive.</li> +</ol> +<div class="section level4"> +<h4 id="schéma-appliqué-aux-données">Schéma appliqué aux données<a class="anchor" aria-label="anchor" href="#sch%C3%A9ma-appliqu%C3%A9-aux-donn%C3%A9es"></a> +</h4> +<p>Le schéma appliqué aux données dépend de la couche à traiter. Le détail du schema est montré dans le tableau suivant :</p> +<table class="table"> +<caption>Schéma appliqué à la base de donnée ADMIN EXPRESS</caption> +<colgroup> +<col width="22%"> +<col width="11%"> +<col width="11%"> +<col width="5%"> +<col width="5%"> +<col width="9%"> +<col width="35%"> +</colgroup> +<thead><tr class="header"> +<th align="left">name</th> +<th align="left">name_origin</th> +<th align="left">layer</th> +<th align="left">order</th> +<th align="left">keep</th> +<th align="left">type</th> +<th align="left">label_fr</th> +</tr></thead> +<tbody> +<tr class="odd"> +<td align="left">id</td> +<td align="left">ID</td> +<td align="left">COMMUNE</td> +<td align="left">1</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Identifiant de la commune</td> +</tr> +<tr class="even"> +<td align="left">commune_label_fr</td> +<td align="left">NOM</td> +<td align="left">COMMUNE</td> +<td align="left">2</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Nom de la commune</td> +</tr> +<tr class="odd"> +<td align="left">commune_label_fr_cap</td> +<td align="left">NOM_M</td> +<td align="left">COMMUNE</td> +<td align="left">3</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Nom de la commune en majuscules</td> +</tr> +<tr class="even"> +<td align="left">commune</td> +<td align="left">INSEE_COM</td> +<td align="left">COMMUNE</td> +<td align="left">4</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Code INSEE de la commune</td> +</tr> +<tr class="odd"> +<td align="left">status</td> +<td align="left">STATUT</td> +<td align="left">COMMUNE</td> +<td align="left">5</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Statut administratif</td> +</tr> +<tr class="even"> +<td align="left">population</td> +<td align="left">POPULATION</td> +<td align="left">COMMUNE</td> +<td align="left">6</td> +<td align="left">TRUE</td> +<td align="left">integer</td> +<td align="left">Population de la commune</td> +</tr> +<tr class="odd"> +<td align="left">canton</td> +<td align="left">INSEE_CAN</td> +<td align="left">COMMUNE</td> +<td align="left">7</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Code INSEE du canton</td> +</tr> +<tr class="even"> +<td align="left">district</td> +<td align="left">INSEE_ARR</td> +<td align="left">COMMUNE</td> +<td align="left">8</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Code INSEE de l’arrondissement</td> +</tr> +<tr class="odd"> +<td align="left">department</td> +<td align="left">INSEE_DEP</td> +<td align="left">COMMUNE</td> +<td align="left">9</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Code INSEE du département</td> +</tr> +<tr class="even"> +<td align="left">region</td> +<td align="left">INSEE_REG</td> +<td align="left">COMMUNE</td> +<td align="left">10</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Code INSEE de la région</td> +</tr> +<tr class="odd"> +<td align="left">epci</td> +<td align="left">SIREN_EPCI</td> +<td align="left">COMMUNE</td> +<td align="left">11</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Code SIREN des EPCI</td> +</tr> +<tr class="even"> +<td align="left">id</td> +<td align="left">ID</td> +<td align="left">DEPARTEMENT</td> +<td align="left">1</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Identifiant du département</td> +</tr> +<tr class="odd"> +<td align="left">department_label_fr_cap</td> +<td align="left">NOM_M</td> +<td align="left">DEPARTEMENT</td> +<td align="left">2</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Nom du département en majuscules</td> +</tr> +<tr class="even"> +<td align="left">department_label_fr</td> +<td align="left">NOM</td> +<td align="left">DEPARTEMENT</td> +<td align="left">3</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Nom du département</td> +</tr> +<tr class="odd"> +<td align="left">department</td> +<td align="left">INSEE_DEP</td> +<td align="left">DEPARTEMENT</td> +<td align="left">4</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Code INSEE du département</td> +</tr> +<tr class="even"> +<td align="left">region</td> +<td align="left">INSEE_REG</td> +<td align="left">DEPARTEMENT</td> +<td align="left">5</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Code INSEE de la région</td> +</tr> +<tr class="odd"> +<td align="left">id</td> +<td align="left">ID</td> +<td align="left">EPCI</td> +<td align="left">1</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Identifiant de l’EPCI</td> +</tr> +<tr class="even"> +<td align="left">epci</td> +<td align="left">CODE_SIREN</td> +<td align="left">EPCI</td> +<td align="left">2</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Code SIREN de l’entité administrative</td> +</tr> +<tr class="odd"> +<td align="left">epci_label_fr</td> +<td align="left">NOM</td> +<td align="left">EPCI</td> +<td align="left">3</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Nom de l’EPCI</td> +</tr> +<tr class="even"> +<td align="left">type</td> +<td align="left">NATURE</td> +<td align="left">EPCI</td> +<td align="left">4</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Nature de l’EPCI</td> +</tr> +<tr class="odd"> +<td align="left">id</td> +<td align="left">ID</td> +<td align="left">REGION</td> +<td align="left">1</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Identifiant de la région</td> +</tr> +<tr class="even"> +<td align="left">region_label_fr_cap</td> +<td align="left">NOM_REG_M</td> +<td align="left">REGION</td> +<td align="left">2</td> +<td align="left">FALSE</td> +<td align="left">character</td> +<td align="left">Nom de la région en majuscules</td> +</tr> +<tr class="odd"> +<td align="left">region_label_fr</td> +<td align="left">NOM_REG</td> +<td align="left">REGION</td> +<td align="left">3</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Nom de la région</td> +</tr> +<tr class="even"> +<td align="left">region</td> +<td align="left">INSEE_REG</td> +<td align="left">REGION</td> +<td align="left">4</td> +<td align="left">TRUE</td> +<td align="left">character</td> +<td align="left">Code INSEE de la région</td> +</tr> +</tbody> +</table> +</div> +</div> +<div class="section level3"> +<h3 id="analyse-de-la-base-de-données-admin-express">Analyse de la base de données ADMIN EXPRESS<a class="anchor" aria-label="anchor" href="#analyse-de-la-base-de-donn%C3%A9es-admin-express"></a> +</h3> +<p>Pour cette tâche, <strong>floodam.data</strong> se sert de la fonction <code>analyse_admin_express()</code>.</p> +<p><strong>→ A fournir une fois que la fonction sera finie</strong></p> +</div> +</div> + </div> + + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + + <nav id="toc" data-toggle="toc"><h2 data-toc-skip>Contents</h2> + </nav> +</div> + +</div> + + + + <footer><div class="copyright"> + <p></p> +<p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p> +<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer> +</div> + + + + + + + </body> +</html> diff --git a/docs/articles/ban_fr.html b/docs/articles/ban_fr.html index a5d6de89be364669942b59e9d8c4ba7c6e717147..7fcb93859ee5148ddf71c0a20ad1b0cc13e5da98 100644 --- a/docs/articles/ban_fr.html +++ b/docs/articles/ban_fr.html @@ -40,7 +40,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -71,6 +71,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/articles/bd_topo_dwelling_en.html b/docs/articles/bd_topo_dwelling_en.html index e220a7fcf2b5aab40780c9f8d2daa913199fbe14..e989c881c8b29d4f04e014770e0b0054ea81192a 100644 --- a/docs/articles/bd_topo_dwelling_en.html +++ b/docs/articles/bd_topo_dwelling_en.html @@ -40,7 +40,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -71,6 +71,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/articles/bd_topo_en.html b/docs/articles/bd_topo_en.html index 6dcff37a11d32ea1ec259902dbc52916351a216b..ed3eeaaa7b5a9c797c5973b212a711c315aa3609 100644 --- a/docs/articles/bd_topo_en.html +++ b/docs/articles/bd_topo_en.html @@ -40,7 +40,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -71,6 +71,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/articles/bd_topo_fr.html b/docs/articles/bd_topo_fr.html index 40ae780003ffb4cbecb1c30110d625e6d450fd48..7180a3573abe65fd3dfb654207c586f18893397e 100644 --- a/docs/articles/bd_topo_fr.html +++ b/docs/articles/bd_topo_fr.html @@ -40,7 +40,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -71,6 +71,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/articles/download-data.html b/docs/articles/download-data.html index 72be7e23cf513559d8bee2f2ac93faf44d1688a4..5d726c89ddd284064650f05982c24bcad8dfbaee 100644 --- a/docs/articles/download-data.html +++ b/docs/articles/download-data.html @@ -40,7 +40,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -71,6 +71,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -113,7 +116,7 @@ <h1 data-toc-skip>How to use floodam.data for downloads</h1> <h4 data-toc-skip class="author">Frédéric Grelot</h4> - <h4 data-toc-skip class="date">2023-02-03</h4> + <h4 data-toc-skip class="date">2023-02-15</h4> <div class="hidden name"><code>download-data.Rmd</code></div> diff --git a/docs/articles/gaspar_fr.html b/docs/articles/gaspar_fr.html index 21b7257a8b0a877a3ef2b38b599b6fd7b2b67f08..c02963a3364d05eb01c9292ee978bc452bcc18e7 100644 --- a/docs/articles/gaspar_fr.html +++ b/docs/articles/gaspar_fr.html @@ -40,7 +40,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -71,6 +71,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -108,7 +111,7 @@ </header><script src="gaspar_fr_files/htmlwidgets-1.6.1/htmlwidgets.js"></script><link href="gaspar_fr_files/datatables-css-0.0.0/datatables-crosstalk.css" rel="stylesheet"> -<script src="gaspar_fr_files/datatables-binding-0.26/datatables.js"></script><link href="gaspar_fr_files/dt-core-1.12.1/css/jquery.dataTables.min.css" rel="stylesheet"> +<script src="gaspar_fr_files/datatables-binding-0.27/datatables.js"></script><link href="gaspar_fr_files/dt-core-1.12.1/css/jquery.dataTables.min.css" rel="stylesheet"> <link href="gaspar_fr_files/dt-core-1.12.1/css/jquery.dataTables.extra.css" rel="stylesheet"> <script src="gaspar_fr_files/dt-core-1.12.1/js/jquery.dataTables.min.js"></script><link href="gaspar_fr_files/crosstalk-1.2.0/css/crosstalk.min.css" rel="stylesheet"> <script src="gaspar_fr_files/crosstalk-1.2.0/js/crosstalk.min.js"></script><div class="row"> @@ -198,8 +201,8 @@ </tbody> </table> <p>Le type de risque (“num_risque_jo†dans la nomemclature d’oririgine et ‘catnat’ dans la nomenclature après traitement) est codifié selon les deux premières colonnes du tableau @ref(tab:catnat-classification). La variable ‘catnat’ correspond à la codification du type de risque utilisé lors de la publication dans le journal officiel.</p> -<div class="datatables html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-ccc751c2ed30302301f6" style="width:100%;height:auto;"></div> -<script type="application/json" data-for="htmlwidget-ccc751c2ed30302301f6">{"x":{"filter":"none","vertical":false,"caption":"<caption>Classification des événements pour le thème catnat<\/caption>","data":[["ALS","AVA","CMV","COB","DIV","ECB","EFA","VOL","GLT","GER","GET","GRL","ICB","IRN","LVT","MVT","PDN","RAZ","SEC","SEI","TMP","VCY"],["Algues Sargasses","Avalanche","Chocs Mécaniques liés à l'action des Vagues","Coulée de Boue","Divers","Eboulement et/ou Chute de Blocs","Effondrement et/ou Affaisement","Eruption Volcanique","Glissement de Terrain","Glissement et Eboulement Rocheux","Glissement et Effondrement de Terrain","Grêle","Inondations et/ou Coulées de Boue","Inondations Remontée Nappe","Lave Torrentielle","Mouvement de Terrain","Poids de la Neige","Raz de Marée","Sécheresse","Secousse Sismique","Tempête","Vents Cycloniques"],[false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false],[false,false,false,true,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false],[false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th>catnat<\/th>\n <th>catnat_label_fr<\/th>\n <th>flooding<\/th>\n <th>mudslide<\/th>\n <th>water_table<\/th>\n <th>torrential<\/th>\n <th>submersion<\/th>\n <th>hurricane<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"tip","columnDefs":[],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script> +<div class="datatables html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-e895bb1d7bc8d2f1fd40" style="width:100%;height:auto;"></div> +<script type="application/json" data-for="htmlwidget-e895bb1d7bc8d2f1fd40">{"x":{"filter":"none","vertical":false,"caption":"<caption>Classification des événements pour le thème catnat<\/caption>","data":[["ALS","AVA","CMV","COB","DIV","ECB","EFA","VOL","GLT","GER","GET","GRL","ICB","IRN","LVT","MVT","PDN","RAZ","SEC","SEI","TMP","VCY"],["Algues Sargasses","Avalanche","Chocs Mécaniques liés à l'action des Vagues","Coulée de Boue","Divers","Eboulement et/ou Chute de Blocs","Effondrement et/ou Affaisement","Eruption Volcanique","Glissement de Terrain","Glissement et Eboulement Rocheux","Glissement et Effondrement de Terrain","Grêle","Inondations et/ou Coulées de Boue","Inondations Remontée Nappe","Lave Torrentielle","Mouvement de Terrain","Poids de la Neige","Raz de Marée","Sécheresse","Secousse Sismique","Tempête","Vents Cycloniques"],[false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false],[false,false,false,true,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false],[false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th>catnat<\/th>\n <th>catnat_label_fr<\/th>\n <th>flooding<\/th>\n <th>mudslide<\/th>\n <th>water_table<\/th>\n <th>torrential<\/th>\n <th>submersion<\/th>\n <th>hurricane<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"tip","columnDefs":[],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script> </div> <div class="section level3"> <h3 id="thème-pprn">Thème “pprnâ€<a class="anchor" aria-label="anchor" href="#th%C3%A8me-pprn"></a> @@ -565,8 +568,8 @@ date de mise à jour de la fiche gaspar </tbody> </table> <p>Le type de risque (“num_risque†dans la nomemclature d’oririgine et “hazard†dans la nomenclature après traitement) est codifié selon les deux premières colonnes du tableau @ref(tab:pprn-classification).</p> -<div class="datatables html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-2ba6c3a6a059c58854f4" style="width:100%;height:auto;"></div> -<script type="application/json" data-for="htmlwidget-2ba6c3a6a059c58854f4">{"x":{"filter":"none","vertical":false,"caption":"<caption>Classification des événements pour le thème pprn<\/caption>","data":[["180","140","134","143","183","147","130","285","135","157","158","159","166","131","286","152","153","194","195","288","252","129","160","168","167"],["Par une crue à débordement lent de cours d'eau","Inondation","Mouvement de terrain","Eboulement ou chutes de pierres et de blocs","Par une crue torrentielle ou à montée rapide de cours d'eau","Glissement de terrain","Par ruissellement et coulée de boue","Par remontées de nappes naturelles","Affaissements et effondrements (cavités souterraines hors mines)","Tassements différentiels","Séisme","Avalanche","Feu de forêt","Par lave torrentielle (torrent et talweg)","Par submersion marine","Avancée dunaire","Recul du trait de côte et de falaises","Zones marécageuses","Suffosion","Glissements ou mouvements de pente","Effondrements généralisés","Risques naturels","Eruption volcanique","Cyclone/ouragan (vent)","Phénomène lié à l'atmosphère"],[true,true,false,false,false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,true,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,true,false]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th>hazard<\/th>\n <th>hazard_label_fr<\/th>\n <th>flooding<\/th>\n <th>mudslide<\/th>\n <th>water_table<\/th>\n <th>torrential<\/th>\n <th>submersion<\/th>\n <th>hurricane<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"tip","columnDefs":[],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script> +<div class="datatables html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-4f6602d538a41481a8b0" style="width:100%;height:auto;"></div> +<script type="application/json" data-for="htmlwidget-4f6602d538a41481a8b0">{"x":{"filter":"none","vertical":false,"caption":"<caption>Classification des événements pour le thème pprn<\/caption>","data":[["180","140","134","143","183","147","130","285","135","157","158","159","166","131","286","152","153","194","195","288","252","129","160","168","167"],["Par une crue à débordement lent de cours d'eau","Inondation","Mouvement de terrain","Eboulement ou chutes de pierres et de blocs","Par une crue torrentielle ou à montée rapide de cours d'eau","Glissement de terrain","Par ruissellement et coulée de boue","Par remontées de nappes naturelles","Affaissements et effondrements (cavités souterraines hors mines)","Tassements différentiels","Séisme","Avalanche","Feu de forêt","Par lave torrentielle (torrent et talweg)","Par submersion marine","Avancée dunaire","Recul du trait de côte et de falaises","Zones marécageuses","Suffosion","Glissements ou mouvements de pente","Effondrements généralisés","Risques naturels","Eruption volcanique","Cyclone/ouragan (vent)","Phénomène lié à l'atmosphère"],[true,true,false,false,false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,true,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,true,false,false,false],[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,true,false]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th>hazard<\/th>\n <th>hazard_label_fr<\/th>\n <th>flooding<\/th>\n <th>mudslide<\/th>\n <th>water_table<\/th>\n <th>torrential<\/th>\n <th>submersion<\/th>\n <th>hurricane<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"tip","columnDefs":[],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script> </div> </div> <div class="section level2"> @@ -608,7 +611,7 @@ date de mise à jour de la fiche gaspar <span class="fu"><a href="../reference/download_gaspar.html">download_gaspar</a></span><span class="op">(</span><span class="va">destination</span><span class="op">)</span> <span class="fu"><a href="../reference/download_gaspar.html">download_gaspar</a></span><span class="op">(</span><span class="va">destination</span>, origin <span class="op">=</span> <span class="st">"cquest"</span><span class="op">)</span> <span class="fu"><a href="../reference/download_gaspar.html">download_gaspar</a></span><span class="op">(</span><span class="va">destination</span>, origin <span class="op">=</span> <span class="st">"opendatarchives"</span><span class="op">)</span></code></pre></div> -<p>Comme il n’y aucune indication de la version de la base de donnée téléchargée, le téléchargement se fait dans un sous-dossier du chemin indiqué dans le paramètre “destination†indiquant le jour du téléchargement. Les téléchargements du chunk précédent auraient par exemple été réalisés dans le dossier gaspar/download/2023-02-03.</p> +<p>Comme il n’y aucune indication de la version de la base de donnée téléchargée, le téléchargement se fait dans un sous-dossier du chemin indiqué dans le paramètre “destination†indiquant le jour du téléchargement. Les téléchargements du chunk précédent auraient par exemple été réalisés dans le dossier gaspar/download/2023-02-15.</p> </div> <div class="section level3"> <h3 id="adaptation-des-données">Adaptation des données<a class="anchor" aria-label="anchor" href="#adaptation-des-donn%C3%A9es"></a> diff --git a/docs/articles/gaspar_fr_files/datatables-binding-0.27/datatables.js b/docs/articles/gaspar_fr_files/datatables-binding-0.27/datatables.js new file mode 100644 index 0000000000000000000000000000000000000000..55d81876c5e0487bf9498239abf0e2807bc447b2 --- /dev/null +++ b/docs/articles/gaspar_fr_files/datatables-binding-0.27/datatables.js @@ -0,0 +1,1512 @@ +(function() { + +// some helper functions: using a global object DTWidget so that it can be used +// in JS() code, e.g. datatable(options = list(foo = JS('code'))); unlike R's +// dynamic scoping, when 'code' is eval()'ed, JavaScript does not know objects +// from the "parent frame", e.g. JS('DTWidget') will not work unless it was made +// a global object +var DTWidget = {}; + +// 123456666.7890 -> 123,456,666.7890 +var markInterval = function(d, digits, interval, mark, decMark, precision) { + x = precision ? d.toPrecision(digits) : d.toFixed(digits); + if (!/^-?[\d.]+$/.test(x)) return x; + var xv = x.split('.'); + if (xv.length > 2) return x; // should have at most one decimal point + xv[0] = xv[0].replace(new RegExp('\\B(?=(\\d{' + interval + '})+(?!\\d))', 'g'), mark); + return xv.join(decMark); +}; + +DTWidget.formatCurrency = function(data, currency, digits, interval, mark, decMark, before, zeroPrint) { + var d = parseFloat(data); + if (isNaN(d)) return ''; + if (zeroPrint !== null && d === 0.0) return zeroPrint; + var res = markInterval(d, digits, interval, mark, decMark); + res = before ? (/^-/.test(res) ? '-' + currency + res.replace(/^-/, '') : currency + res) : + res + currency; + return res; +}; + +DTWidget.formatString = function(data, prefix, suffix) { + var d = data; + if (d === null) return ''; + return prefix + d + suffix; +}; + +DTWidget.formatPercentage = function(data, digits, interval, mark, decMark, zeroPrint) { + var d = parseFloat(data); + if (isNaN(d)) return ''; + if (zeroPrint !== null && d === 0.0) return zeroPrint; + return markInterval(d * 100, digits, interval, mark, decMark) + '%'; +}; + +DTWidget.formatRound = function(data, digits, interval, mark, decMark, zeroPrint) { + var d = parseFloat(data); + if (isNaN(d)) return ''; + if (zeroPrint !== null && d === 0.0) return zeroPrint; + return markInterval(d, digits, interval, mark, decMark); +}; + +DTWidget.formatSignif = function(data, digits, interval, mark, decMark, zeroPrint) { + var d = parseFloat(data); + if (isNaN(d)) return ''; + if (zeroPrint !== null && d === 0.0) return zeroPrint; + return markInterval(d, digits, interval, mark, decMark, true); +}; + +DTWidget.formatDate = function(data, method, params) { + var d = data; + if (d === null) return ''; + // (new Date('2015-10-28')).toDateString() may return 2015-10-27 because the + // actual time created could be like 'Tue Oct 27 2015 19:00:00 GMT-0500 (CDT)', + // i.e. the date-only string is treated as UTC time instead of local time + if ((method === 'toDateString' || method === 'toLocaleDateString') && /^\d{4,}\D\d{2}\D\d{2}$/.test(d)) { + d = d.split(/\D/); + d = new Date(d[0], d[1] - 1, d[2]); + } else { + d = new Date(d); + } + return d[method].apply(d, params); +}; + +window.DTWidget = DTWidget; + +// A helper function to update the properties of existing filters +var setFilterProps = function(td, props) { + // Update enabled/disabled state + var $input = $(td).find('input').first(); + var searchable = $input.data('searchable'); + $input.prop('disabled', !searchable || props.disabled); + + // Based on the filter type, set its new values + var type = td.getAttribute('data-type'); + if (['factor', 'logical'].includes(type)) { + // Reformat the new dropdown options for use with selectize + var new_vals = props.params.options.map(function(item) { + return { text: item, value: item }; + }); + + // Find the selectize object + var dropdown = $(td).find('.selectized').eq(0)[0].selectize; + + // Note the current values + var old_vals = dropdown.getValue(); + + // Remove the existing values + dropdown.clearOptions(); + + // Add the new options + dropdown.addOption(new_vals); + + // Preserve the existing values + dropdown.setValue(old_vals); + + } else if (['number', 'integer', 'date', 'time'].includes(type)) { + // Apply internal scaling to new limits. Updating scale not yet implemented. + var slider = $(td).find('.noUi-target').eq(0); + var scale = Math.pow(10, Math.max(0, +slider.data('scale') || 0)); + var new_vals = [props.params.min * scale, props.params.max * scale]; + + // Note what the new limits will be just for this filter + var new_lims = new_vals.slice(); + + // Determine the current values and limits + var old_vals = slider.val().map(Number); + var old_lims = slider.noUiSlider('options').range; + old_lims = [old_lims.min, old_lims.max]; + + // Preserve the current values if filters have been applied; otherwise, apply no filtering + if (old_vals[0] != old_lims[0]) { + new_vals[0] = Math.max(old_vals[0], new_vals[0]); + } + + if (old_vals[1] != old_lims[1]) { + new_vals[1] = Math.min(old_vals[1], new_vals[1]); + } + + // Update the endpoints of the slider + slider.noUiSlider({ + start: new_vals, + range: {'min': new_lims[0], 'max': new_lims[1]} + }, true); + } +}; + +var transposeArray2D = function(a) { + return a.length === 0 ? a : HTMLWidgets.transposeArray2D(a); +}; + +var crosstalkPluginsInstalled = false; + +function maybeInstallCrosstalkPlugins() { + if (crosstalkPluginsInstalled) + return; + crosstalkPluginsInstalled = true; + + $.fn.dataTable.ext.afnFiltering.push( + function(oSettings, aData, iDataIndex) { + var ctfilter = oSettings.nTable.ctfilter; + if (ctfilter && !ctfilter[iDataIndex]) + return false; + + var ctselect = oSettings.nTable.ctselect; + if (ctselect && !ctselect[iDataIndex]) + return false; + + return true; + } + ); +} + +HTMLWidgets.widget({ + name: "datatables", + type: "output", + renderOnNullValue: true, + initialize: function(el, width, height) { + // in order that the type=number inputs return a number + $.valHooks.number = { + get: function(el) { + var value = parseFloat(el.value); + return isNaN(value) ? "" : value; + } + }; + $(el).html(' '); + return { + data: null, + ctfilterHandle: new crosstalk.FilterHandle(), + ctfilterSubscription: null, + ctselectHandle: new crosstalk.SelectionHandle(), + ctselectSubscription: null + }; + }, + renderValue: function(el, data, instance) { + if (el.offsetWidth === 0 || el.offsetHeight === 0) { + instance.data = data; + return; + } + instance.data = null; + var $el = $(el); + $el.empty(); + + if (data === null) { + $el.append(' '); + // clear previous Shiny inputs (if any) + for (var i in instance.clearInputs) instance.clearInputs[i](); + instance.clearInputs = {}; + return; + } + + var crosstalkOptions = data.crosstalkOptions; + if (!crosstalkOptions) crosstalkOptions = { + 'key': null, 'group': null + }; + if (crosstalkOptions.group) { + maybeInstallCrosstalkPlugins(); + instance.ctfilterHandle.setGroup(crosstalkOptions.group); + instance.ctselectHandle.setGroup(crosstalkOptions.group); + } + + // if we are in the viewer then we always want to fillContainer and + // and autoHideNavigation (unless the user has explicitly set these) + if (window.HTMLWidgets.viewerMode) { + if (!data.hasOwnProperty("fillContainer")) + data.fillContainer = true; + if (!data.hasOwnProperty("autoHideNavigation")) + data.autoHideNavigation = true; + } + + // propagate fillContainer to instance (so we have it in resize) + instance.fillContainer = data.fillContainer; + + var cells = data.data; + + if (cells instanceof Array) cells = transposeArray2D(cells); + + $el.append(data.container); + var $table = $el.find('table'); + if (data.class) $table.addClass(data.class); + if (data.caption) $table.prepend(data.caption); + + if (!data.selection) data.selection = { + mode: 'none', selected: null, target: 'row', selectable: null + }; + if (HTMLWidgets.shinyMode && data.selection.mode !== 'none' && + data.selection.target === 'row+column') { + if ($table.children('tfoot').length === 0) { + $table.append($('<tfoot>')); + $table.find('thead tr').clone().appendTo($table.find('tfoot')); + } + } + + // column filters + var filterRow; + switch (data.filter) { + case 'top': + $table.children('thead').append(data.filterHTML); + filterRow = $table.find('thead tr:last td'); + break; + case 'bottom': + if ($table.children('tfoot').length === 0) { + $table.append($('<tfoot>')); + } + $table.children('tfoot').prepend(data.filterHTML); + filterRow = $table.find('tfoot tr:first td'); + break; + } + + var options = { searchDelay: 1000 }; + if (cells !== null) $.extend(options, { + data: cells + }); + + // options for fillContainer + var bootstrapActive = typeof($.fn.popover) != 'undefined'; + if (instance.fillContainer) { + + // force scrollX/scrollY and turn off autoWidth + options.scrollX = true; + options.scrollY = "100px"; // can be any value, we'll adjust below + + // if we aren't paginating then move around the info/filter controls + // to save space at the bottom and rephrase the info callback + if (data.options.paging === false) { + + // we know how to do this cleanly for bootstrap, not so much + // for other themes/layouts + if (bootstrapActive) { + options.dom = "<'row'<'col-sm-4'i><'col-sm-8'f>>" + + "<'row'<'col-sm-12'tr>>"; + } + + options.fnInfoCallback = function(oSettings, iStart, iEnd, + iMax, iTotal, sPre) { + return Number(iTotal).toLocaleString() + " records"; + }; + } + } + + // auto hide navigation if requested + // Note, this only works on client-side processing mode as on server-side, + // cells (data.data) is null; In addition, we require the pageLength option + // being provided explicitly to enable this. Despite we may be able to deduce + // the default value of pageLength, it may complicate things so we'd rather + // put this responsiblity to users and warn them on the R side. + if (data.autoHideNavigation === true && data.options.paging !== false) { + // strip all nav if length >= cells + if ((cells instanceof Array) && data.options.pageLength >= cells.length) + options.dom = bootstrapActive ? "<'row'<'col-sm-12'tr>>" : "t"; + // alternatively lean things out for flexdashboard mobile portrait + else if (bootstrapActive && window.FlexDashboard && window.FlexDashboard.isMobilePhone()) + options.dom = "<'row'<'col-sm-12'f>>" + + "<'row'<'col-sm-12'tr>>" + + "<'row'<'col-sm-12'p>>"; + } + + $.extend(true, options, data.options || {}); + + var searchCols = options.searchCols; + if (searchCols) { + searchCols = searchCols.map(function(x) { + return x === null ? '' : x.search; + }); + // FIXME: this means I don't respect the escapeRegex setting + delete options.searchCols; + } + + // server-side processing? + var server = options.serverSide === true; + + // use the dataSrc function to pre-process JSON data returned from R + var DT_rows_all = [], DT_rows_current = []; + if (server && HTMLWidgets.shinyMode && typeof options.ajax === 'object' && + /^session\/[\da-z]+\/dataobj/.test(options.ajax.url) && !options.ajax.dataSrc) { + options.ajax.dataSrc = function(json) { + DT_rows_all = $.makeArray(json.DT_rows_all); + DT_rows_current = $.makeArray(json.DT_rows_current); + var data = json.data; + if (!colReorderEnabled()) return data; + var table = $table.DataTable(), order = table.colReorder.order(), flag = true, i, j, row; + for (i = 0; i < order.length; ++i) if (order[i] !== i) flag = false; + if (flag) return data; + for (i = 0; i < data.length; ++i) { + row = data[i].slice(); + for (j = 0; j < order.length; ++j) data[i][j] = row[order[j]]; + } + return data; + }; + } + + var thiz = this; + if (instance.fillContainer) $table.on('init.dt', function(e) { + thiz.fillAvailableHeight(el, $(el).innerHeight()); + }); + // If the page contains serveral datatables and one of which enables colReorder, + // the table.colReorder.order() function will exist but throws error when called. + // So it seems like the only way to know if colReorder is enabled or not is to + // check the options. + var colReorderEnabled = function() { return "colReorder" in options; }; + var table = $table.DataTable(options); + $el.data('datatable', table); + + // Unregister previous Crosstalk event subscriptions, if they exist + if (instance.ctfilterSubscription) { + instance.ctfilterHandle.off("change", instance.ctfilterSubscription); + instance.ctfilterSubscription = null; + } + if (instance.ctselectSubscription) { + instance.ctselectHandle.off("change", instance.ctselectSubscription); + instance.ctselectSubscription = null; + } + + if (!crosstalkOptions.group) { + $table[0].ctfilter = null; + $table[0].ctselect = null; + } else { + var key = crosstalkOptions.key; + function keysToMatches(keys) { + if (!keys) { + return null; + } else { + var selectedKeys = {}; + for (var i = 0; i < keys.length; i++) { + selectedKeys[keys[i]] = true; + } + var matches = {}; + for (var j = 0; j < key.length; j++) { + if (selectedKeys[key[j]]) + matches[j] = true; + } + return matches; + } + } + + function applyCrosstalkFilter(e) { + $table[0].ctfilter = keysToMatches(e.value); + table.draw(); + } + instance.ctfilterSubscription = instance.ctfilterHandle.on("change", applyCrosstalkFilter); + applyCrosstalkFilter({value: instance.ctfilterHandle.filteredKeys}); + + function applyCrosstalkSelection(e) { + if (e.sender !== instance.ctselectHandle) { + table + .rows('.' + selClass, {search: 'applied'}) + .nodes() + .to$() + .removeClass(selClass); + if (selectedRows) + changeInput('rows_selected', selectedRows(), void 0, true); + } + + if (e.sender !== instance.ctselectHandle && e.value && e.value.length) { + var matches = keysToMatches(e.value); + + // persistent selection with plotly (& leaflet) + var ctOpts = crosstalk.var("plotlyCrosstalkOpts").get() || {}; + if (ctOpts.persistent === true) { + var matches = $.extend(matches, $table[0].ctselect); + } + + $table[0].ctselect = matches; + table.draw(); + } else { + if ($table[0].ctselect) { + $table[0].ctselect = null; + table.draw(); + } + } + } + instance.ctselectSubscription = instance.ctselectHandle.on("change", applyCrosstalkSelection); + // TODO: This next line doesn't seem to work when renderDataTable is used + applyCrosstalkSelection({value: instance.ctselectHandle.value}); + } + + var inArray = function(val, array) { + return $.inArray(val, $.makeArray(array)) > -1; + }; + + // search the i-th column + var searchColumn = function(i, value) { + var regex = false, ci = true; + if (options.search) { + regex = options.search.regex, + ci = options.search.caseInsensitive !== false; + } + return table.column(i).search(value, regex, !regex, ci); + }; + + if (data.filter !== 'none') { + + filterRow.each(function(i, td) { + + var $td = $(td), type = $td.data('type'), filter; + var $input = $td.children('div').first().children('input'); + var disabled = $input.prop('disabled'); + var searchable = table.settings()[0].aoColumns[i].bSearchable; + $input.prop('disabled', !searchable || disabled); + $input.data('searchable', searchable); // for updating later + $input.on('input blur', function() { + $input.next('span').toggle(Boolean($input.val())); + }); + // Bootstrap sets pointer-events to none and we won't be able to click + // the clear button + $input.next('span').css('pointer-events', 'auto').hide().click(function() { + $(this).hide().prev('input').val('').trigger('input').focus(); + }); + var searchCol; // search string for this column + if (searchCols && searchCols[i]) { + searchCol = searchCols[i]; + $input.val(searchCol).trigger('input'); + } + var $x = $td.children('div').last(); + + // remove the overflow: hidden attribute of the scrollHead + // (otherwise the scrolling table body obscures the filters) + // The workaround and the discussion from + // https://github.com/rstudio/DT/issues/554#issuecomment-518007347 + // Otherwise the filter selection will not be anchored to the values + // when the columns number is many and scrollX is enabled. + var scrollHead = $(el).find('.dataTables_scrollHead,.dataTables_scrollFoot'); + var cssOverflowHead = scrollHead.css('overflow'); + var scrollBody = $(el).find('.dataTables_scrollBody'); + var cssOverflowBody = scrollBody.css('overflow'); + var scrollTable = $(el).find('.dataTables_scroll'); + var cssOverflowTable = scrollTable.css('overflow'); + if (cssOverflowHead === 'hidden') { + $x.on('show hide', function(e) { + if (e.type === 'show') { + scrollHead.css('overflow', 'visible'); + scrollBody.css('overflow', 'visible'); + scrollTable.css('overflow-x', 'scroll'); + } else { + scrollHead.css('overflow', cssOverflowHead); + scrollBody.css('overflow', cssOverflowBody); + scrollTable.css('overflow-x', cssOverflowTable); + } + }); + $x.css('z-index', 25); + } + + if (inArray(type, ['factor', 'logical'])) { + $input.on({ + click: function() { + $input.parent().hide(); $x.show().trigger('show'); filter[0].selectize.focus(); + }, + input: function() { + if ($input.val() === '') filter[0].selectize.setValue([]); + } + }); + var $input2 = $x.children('select'); + filter = $input2.selectize({ + options: $input2.data('options').map(function(v, i) { + return ({text: v, value: v}); + }), + plugins: ['remove_button'], + hideSelected: true, + onChange: function(value) { + if (value === null) value = []; // compatibility with jQuery 3.0 + $input.val(value.length ? JSON.stringify(value) : ''); + if (value.length) $input.trigger('input'); + $input.attr('title', $input.val()); + if (server) { + table.column(i).search(value.length ? JSON.stringify(value) : '').draw(); + return; + } + // turn off filter if nothing selected + $td.data('filter', value.length > 0); + table.draw(); // redraw table, and filters will be applied + } + }); + if (searchCol) filter[0].selectize.setValue(JSON.parse(searchCol)); + filter[0].selectize.on('blur', function() { + $x.hide().trigger('hide'); $input.parent().show(); $input.trigger('blur'); + }); + filter.next('div').css('margin-bottom', 'auto'); + } else if (type === 'character') { + var fun = function() { + searchColumn(i, $input.val()).draw(); + }; + if (server) { + fun = $.fn.dataTable.util.throttle(fun, options.searchDelay); + } + $input.on('input', fun); + } else if (inArray(type, ['number', 'integer', 'date', 'time'])) { + var $x0 = $x; + $x = $x0.children('div').first(); + $x0.css({ + 'background-color': '#fff', + 'border': '1px #ddd solid', + 'border-radius': '4px', + 'padding': data.vertical ? '35px 20px': '20px 20px 10px 20px' + }); + var $spans = $x0.children('span').css({ + 'margin-top': data.vertical ? '0' : '10px', + 'white-space': 'nowrap' + }); + var $span1 = $spans.first(), $span2 = $spans.last(); + var r1 = +$x.data('min'), r2 = +$x.data('max'); + // when the numbers are too small or have many decimal places, the + // slider may have numeric precision problems (#150) + var scale = Math.pow(10, Math.max(0, +$x.data('scale') || 0)); + r1 = Math.round(r1 * scale); r2 = Math.round(r2 * scale); + var scaleBack = function(x, scale) { + if (scale === 1) return x; + var d = Math.round(Math.log(scale) / Math.log(10)); + // to avoid problems like 3.423/100 -> 0.034230000000000003 + return (x / scale).toFixed(d); + }; + var slider_min = function() { + return filter.noUiSlider('options').range.min; + }; + var slider_max = function() { + return filter.noUiSlider('options').range.max; + }; + $input.on({ + focus: function() { + $x0.show().trigger('show'); + // first, make sure the slider div leaves at least 20px between + // the two (slider value) span's + $x0.width(Math.max(160, $span1.outerWidth() + $span2.outerWidth() + 20)); + // then, if the input is really wide or slider is vertical, + // make the slider the same width as the input + if ($x0.outerWidth() < $input.outerWidth() || data.vertical) { + $x0.outerWidth($input.outerWidth()); + } + // make sure the slider div does not reach beyond the right margin + if ($(window).width() < $x0.offset().left + $x0.width()) { + $x0.offset({ + 'left': $input.offset().left + $input.outerWidth() - $x0.outerWidth() + }); + } + }, + blur: function() { + $x0.hide().trigger('hide'); + }, + input: function() { + if ($input.val() === '') filter.val([slider_min(), slider_max()]); + }, + change: function() { + var v = $input.val().replace(/\s/g, ''); + if (v === '') return; + v = v.split('...'); + if (v.length !== 2) { + $input.parent().addClass('has-error'); + return; + } + if (v[0] === '') v[0] = slider_min(); + if (v[1] === '') v[1] = slider_max(); + $input.parent().removeClass('has-error'); + // treat date as UTC time at midnight + var strTime = function(x) { + var s = type === 'date' ? 'T00:00:00Z' : ''; + var t = new Date(x + s).getTime(); + // add 10 minutes to date since it does not hurt the date, and + // it helps avoid the tricky floating point arithmetic problems, + // e.g. sometimes the date may be a few milliseconds earlier + // than the midnight due to precision problems in noUiSlider + return type === 'date' ? t + 3600000 : t; + }; + if (inArray(type, ['date', 'time'])) { + v[0] = strTime(v[0]); + v[1] = strTime(v[1]); + } + if (v[0] != slider_min()) v[0] *= scale; + if (v[1] != slider_max()) v[1] *= scale; + filter.val(v); + } + }); + var formatDate = function(d, isoFmt) { + d = scaleBack(d, scale); + if (type === 'number') return d; + if (type === 'integer') return parseInt(d); + var x = new Date(+d); + var fmt = ('filterDateFmt' in data) ? data.filterDateFmt[i] : undefined; + if (fmt !== undefined && isoFmt === false) return x[fmt.method].apply(x, fmt.params); + if (type === 'date') { + var pad0 = function(x) { + return ('0' + x).substr(-2, 2); + }; + return x.getUTCFullYear() + '-' + pad0(1 + x.getUTCMonth()) + + '-' + pad0(x.getUTCDate()); + } else { + return x.toISOString(); + } + }; + var opts = type === 'date' ? { step: 60 * 60 * 1000 } : + type === 'integer' ? { step: 1 } : {}; + + opts.orientation = data.vertical ? 'vertical': 'horizontal'; + opts.direction = data.vertical ? 'rtl': 'ltr'; + + filter = $x.noUiSlider($.extend({ + start: [r1, r2], + range: {min: r1, max: r2}, + connect: true + }, opts)); + if (scale > 1) (function() { + var t1 = r1, t2 = r2; + var val = filter.val(); + while (val[0] > r1 || val[1] < r2) { + if (val[0] > r1) { + t1 -= val[0] - r1; + } + if (val[1] < r2) { + t2 += r2 - val[1]; + } + filter = $x.noUiSlider($.extend({ + start: [t1, t2], + range: {min: t1, max: t2}, + connect: true + }, opts), true); + val = filter.val(); + } + r1 = t1; r2 = t2; + })(); + var updateSliderText = function(v1, v2) { + $span1.text(formatDate(v1, false)); $span2.text(formatDate(v2, false)); + }; + updateSliderText(r1, r2); + var updateSlider = function(e) { + var val = filter.val(); + // turn off filter if in full range + $td.data('filter', val[0] > slider_min() || val[1] < slider_max()); + var v1 = formatDate(val[0]), v2 = formatDate(val[1]), ival; + if ($td.data('filter')) { + ival = v1 + ' ... ' + v2; + $input.attr('title', ival).val(ival).trigger('input'); + } else { + $input.attr('title', '').val(''); + } + updateSliderText(val[0], val[1]); + if (e.type === 'slide') return; // no searching when sliding only + if (server) { + table.column(i).search($td.data('filter') ? ival : '').draw(); + return; + } + table.draw(); + }; + filter.on({ + set: updateSlider, + slide: updateSlider + }); + } + + // server-side processing will be handled by R (or whatever server + // language you use); the following code is only needed for client-side + // processing + if (server) { + // if a search string has been pre-set, search now + if (searchCol) searchColumn(i, searchCol).draw(); + return; + } + + var customFilter = function(settings, data, dataIndex) { + // there is no way to attach a search function to a specific table, + // and we need to make sure a global search function is not applied to + // all tables (i.e. a range filter in a previous table should not be + // applied to the current table); we use the settings object to + // determine if we want to perform searching on the current table, + // since settings.sTableId will be different to different tables + if (table.settings()[0] !== settings) return true; + // no filter on this column or no need to filter this column + if (typeof filter === 'undefined' || !$td.data('filter')) return true; + + var r = filter.val(), v, r0, r1; + var i_data = function(i) { + if (!colReorderEnabled()) return i; + var order = table.colReorder.order(), k; + for (k = 0; k < order.length; ++k) if (order[k] === i) return k; + return i; // in theory it will never be here... + } + v = data[i_data(i)]; + if (type === 'number' || type === 'integer') { + v = parseFloat(v); + // how to handle NaN? currently exclude these rows + if (isNaN(v)) return(false); + r0 = parseFloat(scaleBack(r[0], scale)) + r1 = parseFloat(scaleBack(r[1], scale)); + if (v >= r0 && v <= r1) return true; + } else if (type === 'date' || type === 'time') { + v = new Date(v); + r0 = new Date(r[0] / scale); r1 = new Date(r[1] / scale); + if (v >= r0 && v <= r1) return true; + } else if (type === 'factor') { + if (r.length === 0 || inArray(v, r)) return true; + } else if (type === 'logical') { + if (r.length === 0) return true; + if (inArray(v === '' ? 'na' : v, r)) return true; + } + return false; + }; + + $.fn.dataTable.ext.search.push(customFilter); + + // search for the preset search strings if it is non-empty + if (searchCol) { + if (inArray(type, ['factor', 'logical'])) { + filter[0].selectize.setValue(JSON.parse(searchCol)); + } else if (type === 'character') { + $input.trigger('input'); + } else if (inArray(type, ['number', 'integer', 'date', 'time'])) { + $input.trigger('change'); + } + } + + }); + + } + + // highlight search keywords + var highlight = function() { + var body = $(table.table().body()); + // removing the old highlighting first + body.unhighlight(); + + // don't highlight the "not found" row, so we get the rows using the api + if (table.rows({ filter: 'applied' }).data().length === 0) return; + // highlight global search keywords + body.highlight($.trim(table.search()).split(/\s+/)); + // then highlight keywords from individual column filters + if (filterRow) filterRow.each(function(i, td) { + var $td = $(td), type = $td.data('type'); + if (type !== 'character') return; + var $input = $td.children('div').first().children('input'); + var column = table.column(i).nodes().to$(), + val = $.trim($input.val()); + if (type !== 'character' || val === '') return; + column.highlight(val.split(/\s+/)); + }); + }; + + if (options.searchHighlight) { + table + .on('draw.dt.dth column-visibility.dt.dth column-reorder.dt.dth', highlight) + .on('destroy', function() { + // remove event handler + table.off('draw.dt.dth column-visibility.dt.dth column-reorder.dt.dth'); + }); + + // Set the option for escaping regex characters in our search string. This will be used + // for all future matching. + jQuery.fn.highlight.options.escapeRegex = (!options.search || !options.search.regex); + + // initial highlight for state saved conditions and initial states + highlight(); + } + + // run the callback function on the table instance + if (typeof data.callback === 'function') data.callback(table); + + // double click to edit the cell, row, column, or all cells + if (data.editable) table.on('dblclick.dt', 'tbody td', function(e) { + // only bring up the editor when the cell itself is dbclicked, and ignore + // other dbclick events bubbled up (e.g. from the <input>) + if (e.target !== this) return; + var target = [], immediate = false; + switch (data.editable.target) { + case 'cell': + target = [this]; + immediate = true; // edit will take effect immediately + break; + case 'row': + target = table.cells(table.cell(this).index().row, '*').nodes(); + break; + case 'column': + target = table.cells('*', table.cell(this).index().column).nodes(); + break; + case 'all': + target = table.cells().nodes(); + break; + default: + throw 'The editable parameter must be "cell", "row", "column", or "all"'; + } + var disableCols = data.editable.disable ? data.editable.disable.columns : null; + var numericCols = data.editable.numeric; + var areaCols = data.editable.area; + for (var i = 0; i < target.length; i++) { + (function(cell, current) { + var $cell = $(cell), html = $cell.html(); + var _cell = table.cell(cell), value = _cell.data(), index = _cell.index().column; + var $input; + if (inArray(index, numericCols)) { + $input = $('<input type="number">'); + } else if (inArray(index, areaCols)) { + $input = $('<textarea></textarea>'); + } else { + $input = $('<input type="text">'); + } + if (!immediate) { + $cell.data('input', $input).data('html', html); + $input.attr('title', 'Hit Ctrl+Enter to finish editing, or Esc to cancel'); + } + $input.val(value); + if (inArray(index, disableCols)) { + $input.attr('readonly', '').css('filter', 'invert(25%)'); + } + $cell.empty().append($input); + if (cell === current) $input.focus(); + $input.css('width', '100%'); + + if (immediate) $input.on('blur', function(e) { + var valueNew = $input.val(); + if (valueNew !== value) { + _cell.data(valueNew); + if (HTMLWidgets.shinyMode) { + changeInput('cell_edit', [cellInfo(cell)], 'DT.cellInfo', null, {priority: 'event'}); + } + // for server-side processing, users have to call replaceData() to update the table + if (!server) table.draw(false); + } else { + $cell.html(html); + } + }).on('keyup', function(e) { + // hit Escape to cancel editing + if (e.keyCode === 27) $input.trigger('blur'); + }); + + // bulk edit (row, column, or all) + if (!immediate) $input.on('keyup', function(e) { + var removeInput = function($cell, restore) { + $cell.data('input').remove(); + if (restore) $cell.html($cell.data('html')); + } + if (e.keyCode === 27) { + for (var i = 0; i < target.length; i++) { + removeInput($(target[i]), true); + } + } else if (e.keyCode === 13 && e.ctrlKey) { + // Ctrl + Enter + var cell, $cell, _cell, cellData = []; + for (var i = 0; i < target.length; i++) { + cell = target[i]; $cell = $(cell); _cell = table.cell(cell); + _cell.data($cell.data('input').val()); + HTMLWidgets.shinyMode && cellData.push(cellInfo(cell)); + removeInput($cell, false); + } + if (HTMLWidgets.shinyMode) { + changeInput('cell_edit', cellData, 'DT.cellInfo', null, {priority: "event"}); + } + if (!server) table.draw(false); + } + }); + })(target[i], this); + } + }); + + // interaction with shiny + if (!HTMLWidgets.shinyMode && !crosstalkOptions.group) return; + + var methods = {}; + var shinyData = {}; + + methods.updateCaption = function(caption) { + if (!caption) return; + $table.children('caption').replaceWith(caption); + } + + // register clear functions to remove input values when the table is removed + instance.clearInputs = {}; + + var changeInput = function(id, value, type, noCrosstalk, opts) { + var event = id; + id = el.id + '_' + id; + if (type) id = id + ':' + type; + // do not update if the new value is the same as old value + if (event !== 'cell_edit' && !/_clicked$/.test(event) && shinyData.hasOwnProperty(id) && shinyData[id] === JSON.stringify(value)) + return; + shinyData[id] = JSON.stringify(value); + if (HTMLWidgets.shinyMode && Shiny.setInputValue) { + Shiny.setInputValue(id, value, opts); + if (!instance.clearInputs[id]) instance.clearInputs[id] = function() { + Shiny.setInputValue(id, null); + } + } + + // HACK + if (event === "rows_selected" && !noCrosstalk) { + if (crosstalkOptions.group) { + var keys = crosstalkOptions.key; + var selectedKeys = null; + if (value) { + selectedKeys = []; + for (var i = 0; i < value.length; i++) { + // The value array's contents use 1-based row numbers, so we must + // convert to 0-based before indexing into the keys array. + selectedKeys.push(keys[value[i] - 1]); + } + } + instance.ctselectHandle.set(selectedKeys); + } + } + }; + + var addOne = function(x) { + return x.map(function(i) { return 1 + i; }); + }; + + var unique = function(x) { + var ux = []; + $.each(x, function(i, el){ + if ($.inArray(el, ux) === -1) ux.push(el); + }); + return ux; + } + + // change the row index of a cell + var tweakCellIndex = function(cell) { + var info = cell.index(); + // some cell may not be valid. e.g, #759 + // when using the RowGroup extension, datatables will + // generate the row label and the cells are not part of + // the data thus contain no row/col info + if (info === undefined) + return {row: null, col: null}; + if (server) { + info.row = DT_rows_current[info.row]; + } else { + info.row += 1; + } + return {row: info.row, col: info.column}; + } + + var cleanSelectedValues = function() { + changeInput('rows_selected', []); + changeInput('columns_selected', []); + changeInput('cells_selected', transposeArray2D([]), 'shiny.matrix'); + } + // #828 we should clean the selection on the server-side when the table reloads + cleanSelectedValues(); + + // a flag to indicates if select extension is initialized or not + var flagSelectExt = table.settings()[0]._select !== undefined; + // the Select extension should only be used in the client mode and + // when the selection.mode is set to none + if (data.selection.mode === 'none' && !server && flagSelectExt) { + var updateRowsSelected = function() { + var rows = table.rows({selected: true}); + var selected = []; + $.each(rows.indexes().toArray(), function(i, v) { + selected.push(v + 1); + }); + changeInput('rows_selected', selected); + } + var updateColsSelected = function() { + var columns = table.columns({selected: true}); + changeInput('columns_selected', columns.indexes().toArray()); + } + var updateCellsSelected = function() { + var cells = table.cells({selected: true}); + var selected = []; + cells.every(function() { + var row = this.index().row; + var col = this.index().column; + selected = selected.concat([[row + 1, col]]); + }); + changeInput('cells_selected', transposeArray2D(selected), 'shiny.matrix'); + } + table.on('select deselect', function(e, dt, type, indexes) { + updateRowsSelected(); + updateColsSelected(); + updateCellsSelected(); + }) + } + + var selMode = data.selection.mode, selTarget = data.selection.target; + var selDisable = data.selection.selectable === false; + if (inArray(selMode, ['single', 'multiple'])) { + var selClass = inArray(data.style, ['bootstrap', 'bootstrap4']) ? 'active' : 'selected'; + // selected1: row indices; selected2: column indices + var initSel = function(x) { + if (x === null || typeof x === 'boolean' || selTarget === 'cell') { + return {rows: [], cols: []}; + } else if (selTarget === 'row') { + return {rows: $.makeArray(x), cols: []}; + } else if (selTarget === 'column') { + return {rows: [], cols: $.makeArray(x)}; + } else if (selTarget === 'row+column') { + return {rows: $.makeArray(x.rows), cols: $.makeArray(x.cols)}; + } + } + var selected = data.selection.selected; + var selected1 = initSel(selected).rows, selected2 = initSel(selected).cols; + // selectable should contain either all positive or all non-positive values, not both + // positive values indicate "selectable" while non-positive values means "nonselectable" + // the assertion is performed on R side. (only column indicides could be zero which indicates + // the row name) + var selectable = data.selection.selectable; + var selectable1 = initSel(selectable).rows, selectable2 = initSel(selectable).cols; + + // After users reorder the rows or filter the table, we cannot use the table index + // directly. Instead, we need this function to find out the rows between the two clicks. + // If user filter the table again between the start click and the end click, the behavior + // would be undefined, but it should not be a problem. + var shiftSelRowsIndex = function(start, end) { + var indexes = server ? DT_rows_all : table.rows({ search: 'applied' }).indexes().toArray(); + start = indexes.indexOf(start); end = indexes.indexOf(end); + // if start is larger than end, we need to swap + if (start > end) { + var tmp = end; end = start; start = tmp; + } + return indexes.slice(start, end + 1); + } + + var serverRowIndex = function(clientRowIndex) { + return server ? DT_rows_current[clientRowIndex] : clientRowIndex + 1; + } + + // row, column, or cell selection + var lastClickedRow; + if (inArray(selTarget, ['row', 'row+column'])) { + // Get the current selected rows. It will also + // update the selected1's value based on the current row selection state + // Note we can't put this function inside selectRows() directly, + // the reason is method.selectRows() will override selected1's value but this + // function will add rows to selected1 (keep the existing selection), which is + // inconsistent with column and cell selection. + var selectedRows = function() { + var rows = table.rows('.' + selClass); + var idx = rows.indexes().toArray(); + if (!server) { + selected1 = addOne(idx); + return selected1; + } + idx = idx.map(function(i) { + return DT_rows_current[i]; + }); + selected1 = selMode === 'multiple' ? unique(selected1.concat(idx)) : idx; + return selected1; + } + // Change selected1's value based on selectable1, then refresh the row state + var onlyKeepSelectableRows = function() { + if (selDisable) { // users can't select; useful when only want backend select + selected1 = []; + return; + } + if (selectable1.length === 0) return; + var nonselectable = selectable1[0] <= 0; + if (nonselectable) { + // should make selectable1 positive + selected1 = $(selected1).not(selectable1.map(function(i) { return -i; })).get(); + } else { + selected1 = $(selected1).filter(selectable1).get(); + } + } + // Change selected1's value based on selectable1, then + // refresh the row selection state according to values in selected1 + var selectRows = function(ignoreSelectable) { + if (!ignoreSelectable) onlyKeepSelectableRows(); + table.$('tr.' + selClass).removeClass(selClass); + if (selected1.length === 0) return; + if (server) { + table.rows({page: 'current'}).every(function() { + if (inArray(DT_rows_current[this.index()], selected1)) { + $(this.node()).addClass(selClass); + } + }); + } else { + var selected0 = selected1.map(function(i) { return i - 1; }); + $(table.rows(selected0).nodes()).addClass(selClass); + } + } + table.on('mousedown.dt', 'tbody tr', function(e) { + var $this = $(this), thisRow = table.row(this); + if (selMode === 'multiple') { + if (e.shiftKey && lastClickedRow !== undefined) { + // select or de-select depends on the last clicked row's status + var flagSel = !$this.hasClass(selClass); + var crtClickedRow = serverRowIndex(thisRow.index()); + if (server) { + var rowsIndex = shiftSelRowsIndex(lastClickedRow, crtClickedRow); + // update current page's selClass + rowsIndex.map(function(i) { + var rowIndex = DT_rows_current.indexOf(i); + if (rowIndex >= 0) { + var row = table.row(rowIndex).nodes().to$(); + var flagRowSel = !row.hasClass(selClass); + if (flagSel === flagRowSel) row.toggleClass(selClass); + } + }); + // update selected1 + if (flagSel) { + selected1 = unique(selected1.concat(rowsIndex)); + } else { + selected1 = selected1.filter(function(index) { + return !inArray(index, rowsIndex); + }); + } + } else { + // js starts from 0 + shiftSelRowsIndex(lastClickedRow - 1, crtClickedRow - 1).map(function(value) { + var row = table.row(value).nodes().to$(); + var flagRowSel = !row.hasClass(selClass); + if (flagSel === flagRowSel) row.toggleClass(selClass); + }); + } + e.preventDefault(); + } else { + $this.toggleClass(selClass); + } + } else { + if ($this.hasClass(selClass)) { + $this.removeClass(selClass); + } else { + table.$('tr.' + selClass).removeClass(selClass); + $this.addClass(selClass); + } + } + if (server && !$this.hasClass(selClass)) { + var id = DT_rows_current[thisRow.index()]; + // remove id from selected1 since its class .selected has been removed + if (inArray(id, selected1)) selected1.splice($.inArray(id, selected1), 1); + } + selectedRows(); // update selected1's value based on selClass + selectRows(false); // only keep the selectable rows + changeInput('rows_selected', selected1); + changeInput('row_last_clicked', serverRowIndex(thisRow.index()), null, null, {priority: 'event'}); + lastClickedRow = serverRowIndex(thisRow.index()); + }); + selectRows(false); // in case users have specified pre-selected rows + // restore selected rows after the table is redrawn (e.g. sort/search/page); + // client-side tables will preserve the selections automatically; for + // server-side tables, we have to *real* row indices are in `selected1` + changeInput('rows_selected', selected1); + if (server) table.on('draw.dt', function(e) { selectRows(false); }); + methods.selectRows = function(selected, ignoreSelectable) { + selected1 = $.makeArray(selected); + selectRows(ignoreSelectable); + changeInput('rows_selected', selected1); + } + } + + if (inArray(selTarget, ['column', 'row+column'])) { + if (selTarget === 'row+column') { + $(table.columns().footer()).css('cursor', 'pointer'); + } + // update selected2's value based on selectable2 + var onlyKeepSelectableCols = function() { + if (selDisable) { // users can't select; useful when only want backend select + selected2 = []; + return; + } + if (selectable2.length === 0) return; + var nonselectable = selectable2[0] <= 0; + if (nonselectable) { + // need to make selectable2 positive + selected2 = $(selected2).not(selectable2.map(function(i) { return -i; })).get(); + } else { + selected2 = $(selected2).filter(selectable2).get(); + } + } + // update selected2 and then + // refresh the col selection state according to values in selected2 + var selectCols = function(ignoreSelectable) { + if (!ignoreSelectable) onlyKeepSelectableCols(); + // if selected2 is not a valide index (e.g., larger than the column number) + // table.columns(selected2) will fail and result in a blank table + // this is different from the table.rows(), where the out-of-range indexes + // doesn't affect at all + selected2 = $(selected2).filter(table.columns().indexes()).get(); + table.columns().nodes().flatten().to$().removeClass(selClass); + if (selected2.length > 0) + table.columns(selected2).nodes().flatten().to$().addClass(selClass); + } + var callback = function() { + var colIdx = selTarget === 'column' ? table.cell(this).index().column : + $.inArray(this, table.columns().footer()), + thisCol = $(table.column(colIdx).nodes()); + if (colIdx === -1) return; + if (thisCol.hasClass(selClass)) { + thisCol.removeClass(selClass); + selected2.splice($.inArray(colIdx, selected2), 1); + } else { + if (selMode === 'single') $(table.cells().nodes()).removeClass(selClass); + thisCol.addClass(selClass); + selected2 = selMode === 'single' ? [colIdx] : unique(selected2.concat([colIdx])); + } + selectCols(false); // update selected2 based on selectable + changeInput('columns_selected', selected2); + } + if (selTarget === 'column') { + $(table.table().body()).on('click.dt', 'td', callback); + } else { + $(table.table().footer()).on('click.dt', 'tr th', callback); + } + selectCols(false); // in case users have specified pre-selected columns + changeInput('columns_selected', selected2); + if (server) table.on('draw.dt', function(e) { selectCols(false); }); + methods.selectColumns = function(selected, ignoreSelectable) { + selected2 = $.makeArray(selected); + selectCols(ignoreSelectable); + changeInput('columns_selected', selected2); + } + } + + if (selTarget === 'cell') { + var selected3 = [], selectable3 = []; + if (selected !== null) selected3 = selected; + if (selectable !== null && typeof selectable !== 'boolean') selectable3 = selectable; + var findIndex = function(ij, sel) { + for (var i = 0; i < sel.length; i++) { + if (ij[0] === sel[i][0] && ij[1] === sel[i][1]) return i; + } + return -1; + } + // Change selected3's value based on selectable3, then refresh the cell state + var onlyKeepSelectableCells = function() { + if (selDisable) { // users can't select; useful when only want backend select + selected3 = []; + return; + } + if (selectable3.length === 0) return; + var nonselectable = selectable3[0][0] <= 0; + var out = []; + if (nonselectable) { + selected3.map(function(ij) { + // should make selectable3 positive + if (findIndex([-ij[0], -ij[1]], selectable3) === -1) { out.push(ij); } + }); + } else { + selected3.map(function(ij) { + if (findIndex(ij, selectable3) > -1) { out.push(ij); } + }); + } + selected3 = out; + } + // Change selected3's value based on selectable3, then + // refresh the cell selection state according to values in selected3 + var selectCells = function(ignoreSelectable) { + if (!ignoreSelectable) onlyKeepSelectableCells(); + table.$('td.' + selClass).removeClass(selClass); + if (selected3.length === 0) return; + if (server) { + table.cells({page: 'current'}).every(function() { + var info = tweakCellIndex(this); + if (findIndex([info.row, info.col], selected3) > -1) + $(this.node()).addClass(selClass); + }); + } else { + selected3.map(function(ij) { + $(table.cell(ij[0] - 1, ij[1]).node()).addClass(selClass); + }); + } + }; + table.on('click.dt', 'tbody td', function() { + var $this = $(this), info = tweakCellIndex(table.cell(this)); + if ($this.hasClass(selClass)) { + $this.removeClass(selClass); + selected3.splice(findIndex([info.row, info.col], selected3), 1); + } else { + if (selMode === 'single') $(table.cells().nodes()).removeClass(selClass); + $this.addClass(selClass); + selected3 = selMode === 'single' ? [[info.row, info.col]] : + unique(selected3.concat([[info.row, info.col]])); + } + selectCells(false); // must call this to update selected3 based on selectable3 + changeInput('cells_selected', transposeArray2D(selected3), 'shiny.matrix'); + }); + selectCells(false); // in case users have specified pre-selected columns + changeInput('cells_selected', transposeArray2D(selected3), 'shiny.matrix'); + + if (server) table.on('draw.dt', function(e) { selectCells(false); }); + methods.selectCells = function(selected, ignoreSelectable) { + selected3 = selected ? selected : []; + selectCells(ignoreSelectable); + changeInput('cells_selected', transposeArray2D(selected3), 'shiny.matrix'); + } + } + } + + // expose some table info to Shiny + var updateTableInfo = function(e, settings) { + // TODO: is anyone interested in the page info? + // changeInput('page_info', table.page.info()); + var updateRowInfo = function(id, modifier) { + var idx; + if (server) { + idx = modifier.page === 'current' ? DT_rows_current : DT_rows_all; + } else { + var rows = table.rows($.extend({ + search: 'applied', + page: 'all' + }, modifier)); + idx = addOne(rows.indexes().toArray()); + } + changeInput('rows' + '_' + id, idx); + }; + updateRowInfo('current', {page: 'current'}); + updateRowInfo('all', {}); + } + table.on('draw.dt', updateTableInfo); + updateTableInfo(); + + // state info + table.on('draw.dt column-visibility.dt', function() { + changeInput('state', table.state()); + }); + changeInput('state', table.state()); + + // search info + var updateSearchInfo = function() { + changeInput('search', table.search()); + if (filterRow) changeInput('search_columns', filterRow.toArray().map(function(td) { + return $(td).find('input').first().val(); + })); + } + table.on('draw.dt', updateSearchInfo); + updateSearchInfo(); + + var cellInfo = function(thiz) { + var info = tweakCellIndex(table.cell(thiz)); + info.value = table.cell(thiz).data(); + return info; + } + // the current cell clicked on + table.on('click.dt', 'tbody td', function() { + changeInput('cell_clicked', cellInfo(this), null, null, {priority: 'event'}); + }) + changeInput('cell_clicked', {}); + + // do not trigger table selection when clicking on links unless they have classes + table.on('click.dt', 'tbody td a', function(e) { + if (this.className === '') e.stopPropagation(); + }); + + methods.addRow = function(data, rowname, resetPaging) { + var n = table.columns().indexes().length, d = n - data.length; + if (d === 1) { + data = rowname.concat(data) + } else if (d !== 0) { + console.log(data); + console.log(table.columns().indexes()); + throw 'New data must be of the same length as current data (' + n + ')'; + }; + table.row.add(data).draw(resetPaging); + } + + methods.updateSearch = function(keywords) { + if (keywords.global !== null) + $(table.table().container()).find('input[type=search]').first() + .val(keywords.global).trigger('input'); + var columns = keywords.columns; + if (!filterRow || columns === null) return; + filterRow.toArray().map(function(td, i) { + var v = typeof columns === 'string' ? columns : columns[i]; + if (typeof v === 'undefined') { + console.log('The search keyword for column ' + i + ' is undefined') + return; + } + $(td).find('input').first().val(v); + searchColumn(i, v); + }); + table.draw(); + } + + methods.hideCols = function(hide, reset) { + if (reset) table.columns().visible(true, false); + table.columns(hide).visible(false); + } + + methods.showCols = function(show, reset) { + if (reset) table.columns().visible(false, false); + table.columns(show).visible(true); + } + + methods.colReorder = function(order, origOrder) { + table.colReorder.order(order, origOrder); + } + + methods.selectPage = function(page) { + if (table.page.info().pages < page || page < 1) { + throw 'Selected page is out of range'; + }; + table.page(page - 1).draw(false); + } + + methods.reloadData = function(resetPaging, clearSelection) { + // empty selections first if necessary + if (methods.selectRows && inArray('row', clearSelection)) methods.selectRows([]); + if (methods.selectColumns && inArray('column', clearSelection)) methods.selectColumns([]); + if (methods.selectCells && inArray('cell', clearSelection)) methods.selectCells([]); + table.ajax.reload(null, resetPaging); + } + + // update table filters (set new limits of sliders) + methods.updateFilters = function(newProps) { + // loop through each filter in the filter row + filterRow.each(function(i, td) { + var k = i; + if (filterRow.length > newProps.length) { + if (i === 0) return; // first column is row names + k = i - 1; + } + // Update the filters to reflect the updated data. + // Allow "falsy" (e.g. NULL) to signify a no-op. + if (newProps[k]) { + setFilterProps(td, newProps[k]); + } + }); + }; + + table.shinyMethods = methods; + }, + resize: function(el, width, height, instance) { + if (instance.data) this.renderValue(el, instance.data, instance); + + // dynamically adjust height if fillContainer = TRUE + if (instance.fillContainer) + this.fillAvailableHeight(el, height); + + this.adjustWidth(el); + }, + + // dynamically set the scroll body to fill available height + // (used with fillContainer = TRUE) + fillAvailableHeight: function(el, availableHeight) { + + // see how much of the table is occupied by header/footer elements + // and use that to compute a target scroll body height + var dtWrapper = $(el).find('div.dataTables_wrapper'); + var dtScrollBody = $(el).find($('div.dataTables_scrollBody')); + var framingHeight = dtWrapper.innerHeight() - dtScrollBody.innerHeight(); + var scrollBodyHeight = availableHeight - framingHeight; + + // we need to set `max-height` to none as datatables library now sets this + // to a fixed height, disabling the ability to resize to fill the window, + // as it will be set to a fixed 100px under such circumstances, e.g., RStudio IDE, + // or FlexDashboard + // see https://github.com/rstudio/DT/issues/951#issuecomment-1026464509 + dtScrollBody.css('max-height', 'none'); + // set the height + dtScrollBody.height(scrollBodyHeight + 'px'); + }, + + // adjust the width of columns; remove the hard-coded widths on table and the + // scroll header when scrollX/Y are enabled + adjustWidth: function(el) { + var $el = $(el), table = $el.data('datatable'); + if (table) table.columns.adjust(); + $el.find('.dataTables_scrollHeadInner').css('width', '') + .children('table').css('margin-left', ''); + } +}); + + if (!HTMLWidgets.shinyMode) return; + + Shiny.addCustomMessageHandler('datatable-calls', function(data) { + var id = data.id; + var el = document.getElementById(id); + var table = el ? $(el).data('datatable') : null; + if (!table) { + console.log("Couldn't find table with id " + id); + return; + } + + var methods = table.shinyMethods, call = data.call; + if (methods[call.method]) { + methods[call.method].apply(table, call.args); + } else { + console.log("Unknown method " + call.method); + } + }); + +})(); diff --git a/docs/articles/gaspar_fr_files/datatables-css-0.0.0/datatables-crosstalk.css b/docs/articles/gaspar_fr_files/datatables-css-0.0.0/datatables-crosstalk.css index fb5bae84963d5646b90fb317242e59067e851590..bd1159c829500c3c0e583023a3b0cf6aba3bcf48 100644 --- a/docs/articles/gaspar_fr_files/datatables-css-0.0.0/datatables-crosstalk.css +++ b/docs/articles/gaspar_fr_files/datatables-css-0.0.0/datatables-crosstalk.css @@ -21,3 +21,12 @@ See https://github.com/DataTables/DataTablesSrc/issues/160 table.dataTable { display: table; } + + +/* +When DTOutput(fill = TRUE), it receives a .html-fill-item class (via htmltools::bindFillRole()), which effectively amounts to `flex: 1 1 auto`. That's mostly fine, but the case where `fillContainer=TRUE`+`height:auto`+`flex-basis:auto` and the container (e.g., a bslib::card()) doesn't have a defined height is a bit problematic since the table wants to fit the parent but the parent wants to fit the table, which results pretty small table height (maybe because there is a minimum height somewhere?). It seems better in this case to impose a 400px height default for the table, which we can do by setting `flex-basis` to 400px (the table is still allowed to grow/shrink when the container has an opinionated height). +*/ + +.html-fill-container > .html-fill-item.datatables { + flex-basis: 400px; +} diff --git a/docs/articles/index.html b/docs/articles/index.html index 1cb227ae0ce9a6dc6a42d58f41bbabf216cd61db..0f211cdbd8c660d3dbfc0ddf9ad8029a9a177e04 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -95,7 +98,9 @@ <h3>database (French)</h3> <p class="section-desc"></p><p>French description of database managed</p> - <dl><dt><a href="ban_fr.html">BAN (French)</a></dt> + <dl><dt><a href="admin_express_fr.html">Admin express (French)</a></dt> + <dd> + </dd><dt><a href="ban_fr.html">BAN (French)</a></dt> <dd> </dd><dt><a href="bd_topo_fr.html">BD Topo (French)</a></dt> <dd> diff --git a/docs/articles/rpg_fr.html b/docs/articles/rpg_fr.html index a82d4558322bda53dd3c912a975cdb3a9b1c7c47..84ec3e6626c8dcc1ff7e3386e78edd96cf9aa50d 100644 --- a/docs/articles/rpg_fr.html +++ b/docs/articles/rpg_fr.html @@ -40,7 +40,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -71,6 +71,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/authors.html b/docs/authors.html index 4df2c81621ec36be54c8bc69b2848d584f83c8dd..41e4f502d25b4a1d3160832d418039f09d79d625 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="articles/ban_fr.html">BAN (French)</a> </li> @@ -106,13 +109,13 @@ <p>Grelot F, Nortes Martinez D, Balzergue P, Champonnois V (2023). <em>floodam.data: Collect and Process Data on Flood Damage (French Context)</em>. -R package version 0.9.34.1. +R package version 0.9.35.0. </p> <pre>@Manual{, title = {floodam.data: Collect and Process Data on Flood Damage (French Context)}, author = {Frédéric Grelot and David {Nortes Martinez} and Pierre Balzergue and Victor Champonnois}, year = {2023}, - note = {R package version 0.9.34.1}, + note = {R package version 0.9.35.0}, }</pre> </div> diff --git a/docs/index.html b/docs/index.html index 534b9b595e5f537cae0222583df36505159d86bf..6150183535c9035d0b3335614a7025bd5711f3af 100644 --- a/docs/index.html +++ b/docs/index.html @@ -44,7 +44,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -75,6 +75,9 @@ <li class="divider"> </li> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 2cc63d5a4213454cd7c10346995527076da23457..1d8bb35f7f5f24c9b44bb4be90420eb09d089616 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,6 +2,7 @@ pandoc: '2.5' pkgdown: 2.0.3 pkgdown_sha: ~ articles: + admin_express_fr: admin_express_fr.html ban_fr: ban_fr.html bd_topo_dwelling_en: bd_topo_dwelling_en.html bd_topo_en: bd_topo_en.html @@ -9,5 +10,5 @@ articles: download-data: download-data.html gaspar_fr: gaspar_fr.html rpg_fr: rpg_fr.html -last_built: 2023-02-03T10:54Z +last_built: 2023-02-15T14:29Z diff --git a/docs/reference/adapt.eaip.html b/docs/reference/adapt.eaip.html index eb2257e2464f00f4412150c7396e15963ed931ef..3e4cf1b1897560f4da15a1fa8afc1d0a5211f080 100644 --- a/docs/reference/adapt.eaip.html +++ b/docs/reference/adapt.eaip.html @@ -1,10 +1,12 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Adapt eaip data — adapt.eaip • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Adapt eaip data — adapt.eaip"><meta property="og:description" content="The following treatment are performed: -- all files for a given department are grouped (through a sf rbind) -- only some common variables are kept -- the projection is set to projection -- the geometry is made valid -- the output is saved at department level as rds in given destination"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +all files for a given department are grouped (through a sf rbind) +only some common variables are kept +the projection is set to projection +the geometry is made valid +the output is saved at department level as rds in given destination + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -22,7 +24,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -48,6 +50,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -85,13 +90,12 @@ </div> <div class="ref-description"> - <p>The following treatment are performed: -- all files for a given department are grouped (through a sf rbind) -- only some common variables are kept -- the projection is set to projection -- the geometry is made valid -- the output is saved at department level as rds in given destination</p> - </div> + <p>The following treatment are performed:</p><ul><li><p>all files for a given department are grouped (through a sf rbind)</p></li> +<li><p>only some common variables are kept</p></li> +<li><p>the projection is set to projection</p></li> +<li><p>the geometry is made valid</p></li> +<li><p>the output is saved at department level as rds in given destination</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">adapt.eaip</span><span class="op">(</span> diff --git a/docs/reference/adapt.geo_sirene.html b/docs/reference/adapt.geo_sirene.html index 2332806295e7c837d875144c7a1e9e0a127c4123..955009f184e32dfc38aabe696da7a30715cec0ad 100644 --- a/docs/reference/adapt.geo_sirene.html +++ b/docs/reference/adapt.geo_sirene.html @@ -1,11 +1,13 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Adapt sirene data — adapt.geo_sirene • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Adapt sirene data — adapt.geo_sirene"><meta property="og:description" content="The following treatment are performed: -- Only some fileds are selected, field names (colnames) are consistently set. -- NA values are consistently set. -- Type of fields are consistently set, some checks are performed on transformations. -- Data set is cut and saved by departments -- Only observations with spatial coordinates are kept. -- Exposition of observations (belonging or not to eaip) is added."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +Only some fileds are selected, field names (colnames) are consistently set. +NA values are consistently set. +Type of fields are consistently set, some checks are performed on transformations. +Data set is cut and saved by departments +Only observations with spatial coordinates are kept. +Exposition of observations (belonging or not to eaip) is added. + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -23,7 +25,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -49,6 +51,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -86,14 +91,13 @@ </div> <div class="ref-description"> - <p>The following treatment are performed: -- Only some fileds are selected, field names (colnames) are consistently set. -- NA values are consistently set. -- Type of fields are consistently set, some checks are performed on transformations. -- Data set is cut and saved by departments -- Only observations with spatial coordinates are kept. -- Exposition of observations (belonging or not to eaip) is added.</p> - </div> + <p>The following treatment are performed:</p><ul><li><p>Only some fileds are selected, field names (colnames) are consistently set.</p></li> +<li><p>NA values are consistently set.</p></li> +<li><p>Type of fields are consistently set, some checks are performed on transformations.</p></li> +<li><p>Data set is cut and saved by departments</p></li> +<li><p>Only observations with spatial coordinates are kept.</p></li> +<li><p>Exposition of observations (belonging or not to eaip) is added.</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">adapt.geo_sirene</span><span class="op">(</span> @@ -130,7 +134,7 @@ <dt>projection</dt> <dd><p>optional numeric, 4 digits projection to use</p></dd> <dt>order_by</dt> -<dd><p>optional character, name of the variable to sort the output data. +<dd><p>optional character, name of the variable to sort the output data. Default sorting is by state and eaip (if added).</p></dd> <dt>retrieve</dt> <dd><p>logical, should the result be returned</p></dd> diff --git a/docs/reference/adapt_admin_express.html b/docs/reference/adapt_admin_express.html new file mode 100644 index 0000000000000000000000000000000000000000..c36815f8686544585a919d0142a3afa1400d3c59 --- /dev/null +++ b/docs/reference/adapt_admin_express.html @@ -0,0 +1,196 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Adapt Admin Express archives — adapt_admin_express • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Adapt Admin Express archives — adapt_admin_express"><meta property="og:description" content="adapt_admin_express treats Admin Express archives to be in a standard +format. It is suited for IGN archives. It used by default +scheme_admin_express_3_1 as scheme. For older versions +scheme_admin_express_2_0 is also available. +Beware that codeadapt_admin_express will perform all possibles combinations +of archives present in origin and layers available in scheme if those +parameters are not specified."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Adapt Admin Express archives</h1> + + <div class="hidden name"><code>adapt_admin_express.Rd</code></div> + </div> + + <div class="ref-description"> + <p><code>adapt_admin_express</code> treats Admin Express archives to be in a standard +format. It is suited for IGN archives. It used by default +<code>scheme_admin_express_3_1</code> as scheme. For older versions +<code>scheme_admin_express_2_0</code> is also available.</p> +<p>Beware that codeadapt_admin_express will perform all possibles combinations +of archives present in origin and layers available in scheme if those +parameters are not specified.</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">adapt_admin_express</span><span class="op">(</span> + <span class="va">origin</span>, + <span class="va">destination</span>, + <span class="va">archive</span>, + layer <span class="op">=</span> <span class="cn">NULL</span>, + scheme <span class="op">=</span> <span class="fu">floodam.data</span><span class="fu">::</span><span class="va"><a href="scheme_admin_express_3_1.html">scheme_admin_express_3_1</a></span>, + projection <span class="op">=</span> <span class="fl">4326</span>, + extension <span class="op">=</span> <span class="st">"rds"</span>, + journal <span class="op">=</span> <span class="cn">TRUE</span>, + retrieve <span class="op">=</span> <span class="cn">FALSE</span>, + verbose <span class="op">=</span> <span class="cn">TRUE</span> +<span class="op">)</span></code></pre></div> + </div> + + <div id="arguments"> + <h2>Arguments</h2> + <dl><dt>origin</dt> +<dd><p>character, path to the directory where archive are stored.</p></dd> +<dt>destination</dt> +<dd><p>character, path to the directory where results should be +saved.</p></dd> +<dt>archive</dt> +<dd><p>character, vector of archive to be adpated.</p></dd> +<dt>layer</dt> +<dd><p>character, which layer should be treated.</p></dd> +<dt>scheme</dt> +<dd><p>data.frame, how archive variables should be treated.</p></dd> +<dt>projection</dt> +<dd><p>integer or object of type CRS giving projection.</p></dd> +<dt>extension</dt> +<dd><p>character, option for extension and so format of saving of +results.</p></dd> +<dt>journal</dt> +<dd><p>logical, should a journal file be saved.</p></dd> +<dt>retrieve</dt> +<dd><p>logical, should the result be returned.</p></dd> +<dt>verbose</dt> +<dd><p>logical, should the function give some sumup informations.</p></dd> +</dl></div> + <div id="value"> + <h2>Value</h2> + <p>if retrieve = TRUE, sf object of adapated data stored in archive. +This may be a list if the function implies recursive calls.</p> + </div> + <div id="details"> + <h2>Details</h2> + <p>The following treatment are performed:</p><ul><li><p>depending on how many archives and layers are to be treated, a recursive +call may be perform to do all desired combinations.</p></li> +<li><p>archive is read with <code><a href="read_with_scheme.html">read_with_scheme()</a></code>, which may imply that it is +uncompressed, then read (usually as a shp or a gpkg file), reprojected if +asked, and finally adapted.</p></li> +<li><p>the output is saved as rds in given destination withe<code><a href="save_archive.html">save_archive()</a></code>. The +name of archive include a precision depending on the layer chosen. For layer +'COMMUNE', the saving is made by departments.</p></li> +</ul></div> + <div id="author"> + <h2>Author</h2> + <p>Frédéric Grelot and Victor Champonnois</p> + </div> + + <div id="ref-examples"> + <h2>Examples</h2> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"></span> +<span class="r-in"><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span> +<span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">""</span></span> +<span class="r-in"><span class="va">destination</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/tempfile.html" class="external-link">tempdir</a></span><span class="op">(</span><span class="op">)</span></span> +<span class="r-in"><span class="va">archive</span> <span class="op">=</span> <span class="st">"RPG_2-0__SHP_LAMB93_FR-2018_2018-01-15.7z"</span></span> +<span class="r-in"><span class="va">result</span> <span class="op">=</span> <span class="fu"><a href="adapt_rpg.html">adapt_rpg</a></span><span class="op">(</span><span class="va">archive</span>, <span class="va">origin</span>, <span class="va">destination</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span>, retrieve <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span> +<span class="r-in"><span class="op">}</span></span> +</code></pre></div> + </div> + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/adapt_ban.html b/docs/reference/adapt_ban.html index 5ccbd57c5e9c6f74094d4328fe8502f4bcb26f3a..d76ba084066a3fa6e9192d5207f2db730c6f23b8 100644 --- a/docs/reference/adapt_ban.html +++ b/docs/reference/adapt_ban.html @@ -1,8 +1,10 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Adapt BAN database — adapt_ban • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Adapt BAN database — adapt_ban"><meta property="og:description" content="The following treatments are performed: -- data is adapated consistently with theme -- eaip information is added. -- if scope is given, a subpart of data is also saved."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +data is adapated consistently with theme +eaip information is added. +if scope is given, a subpart of data is also saved. + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -20,7 +22,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -46,6 +48,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -83,11 +88,10 @@ </div> <div class="ref-description"> - <p>The following treatments are performed: -- data is adapated consistently with theme -- eaip information is added. -- if scope is given, a subpart of data is also saved.</p> - </div> + <p>The following treatments are performed:</p><ul><li><p>data is adapated consistently with theme</p></li> +<li><p>eaip information is added.</p></li> +<li><p>if scope is given, a subpart of data is also saved.</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">adapt_ban</span><span class="op">(</span> @@ -98,8 +102,8 @@ projection <span class="op">=</span> <span class="fl">4326</span>, path_eaip <span class="op">=</span> <span class="cn">NULL</span>, path_admin <span class="op">=</span> <span class="cn">NULL</span>, - journal <span class="op">=</span> <span class="cn">TRUE</span>, map <span class="op">=</span> <span class="cn">FALSE</span>, + journal <span class="op">=</span> <span class="cn">TRUE</span>, retrieve <span class="op">=</span> <span class="cn">FALSE</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span> <span class="op">)</span></code></pre></div> @@ -121,10 +125,10 @@ <dd><p>character, path where eaip archives should be found.</p></dd> <dt>path_admin</dt> <dd><p>character, path where admin archives should be found.</p></dd> -<dt>journal</dt> -<dd><p>logical, should a journal file be saved.</p></dd> <dt>map</dt> <dd><p>logical, should a map be plotted (for check purpose).</p></dd> +<dt>journal</dt> +<dd><p>logical, should a journal file be saved.</p></dd> <dt>retrieve</dt> <dd><p>logical, should the result be returned.</p></dd> <dt>verbose</dt> diff --git a/docs/reference/adapt_gaspar.html b/docs/reference/adapt_gaspar.html index 50a15ca1733d9438c7538eb515058ec18bdfe218..7f01b705ffd0dd624439d6c950204d6e92f1f4ee 100644 --- a/docs/reference/adapt_gaspar.html +++ b/docs/reference/adapt_gaspar.html @@ -1,8 +1,10 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Adapt gaspar database — adapt_gaspar • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Adapt gaspar database — adapt_gaspar"><meta property="og:description" content="The following treatments are performed: -- data is adapated consistently with theme -- only data corresponding to flood hazards are kept -- if scope is given, a subpart of data is also saved"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +data is adapated consistently with theme +only data corresponding to flood hazards are kept +if scope is given, a subpart of data is also saved + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -20,7 +22,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -46,6 +48,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -83,11 +88,10 @@ </div> <div class="ref-description"> - <p>The following treatments are performed: -- data is adapated consistently with theme -- only data corresponding to flood hazards are kept -- if scope is given, a subpart of data is also saved</p> - </div> + <p>The following treatments are performed:</p><ul><li><p>data is adapated consistently with theme</p></li> +<li><p>only data corresponding to flood hazards are kept</p></li> +<li><p>if scope is given, a subpart of data is also saved</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">adapt_gaspar</span><span class="op">(</span> diff --git a/docs/reference/adapt_rpg.html b/docs/reference/adapt_rpg.html index 2d66afce1cf6fb7b382ab013d140ddb5555bd547..4e50cc5ba28ba67b500207341c61ecc34d5ed4bf 100644 --- a/docs/reference/adapt_rpg.html +++ b/docs/reference/adapt_rpg.html @@ -1,9 +1,11 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Adapt rpg data — adapt_rpg • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Adapt rpg data — adapt_rpg"><meta property="og:description" content="The following treatment are performed: -- the projection is set to projection -- the geometry is made valid -- flood exposition is set through intersection with eaip -- the output is saved at department level as rds in given destination"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +the projection is set to projection +the geometry is made valid +flood exposition is set through intersection with eaip +the output is saved at department level as rds in given destination + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -21,7 +23,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -47,6 +49,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -84,12 +89,11 @@ </div> <div class="ref-description"> - <p>The following treatment are performed: -- the projection is set to projection -- the geometry is made valid -- flood exposition is set through intersection with eaip -- the output is saved at department level as rds in given destination</p> - </div> + <p>The following treatment are performed:</p><ul><li><p>the projection is set to projection</p></li> +<li><p>the geometry is made valid</p></li> +<li><p>flood exposition is set through intersection with eaip</p></li> +<li><p>the output is saved at department level as rds in given destination</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">adapt_rpg</span><span class="op">(</span> diff --git a/docs/reference/add_commune.html b/docs/reference/add_commune.html index dbe2c6ae0efbc782cc1ab6b689881380d4615920..b7ce7d658b433e3cad32d6cdb807824d8b289bb7 100644 --- a/docs/reference/add_commune.html +++ b/docs/reference/add_commune.html @@ -20,7 +20,7 @@ intersects more than one commune, one is chosen (more or less randomously)."><me </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -46,6 +46,9 @@ intersects more than one commune, one is chosen (more or less randomously)."><me </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/add_journal.html b/docs/reference/add_journal.html index d9ab868fbe8317c4fde7d78110617eb5ceef6ca5..9e113fb7c07ccce30d474c7d382dadb211f8c739 100644 --- a/docs/reference/add_journal.html +++ b/docs/reference/add_journal.html @@ -1,5 +1,8 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Add information to a journal — add_journal • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Add information to a journal — add_journal"><meta property="og:description" content="Use a modality for TRUE and onther for FALSE"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Manage a journal for follow-up of tasks — add_journal • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Manage a journal for follow-up of tasks — add_journal"><meta property="og:description" content="The function manages the log information for tasks that need to be linked to +each other. While the information is stored as a data.frame, it is presented +or saved as formatted character when asked to be presented (for instance when +verbose is set to TRUE)."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -17,7 +20,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +46,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -74,33 +80,66 @@ </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Add information to a journal</h1> + <h1>Manage a journal for follow-up of tasks</h1> <div class="hidden name"><code>add_journal.Rd</code></div> </div> <div class="ref-description"> - <p>Use a modality for TRUE and onther for FALSE</p> + <p>The function manages the log information for tasks that need to be linked to +each other. While the information is stored as a data.frame, it is presented +or saved as formatted character when asked to be presented (for instance when +verbose is set to TRUE).</p> </div> <div id="ref-usage"> - <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">add_journal</span><span class="op">(</span><span class="va">...</span>, journal <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/character.html" class="external-link">character</a></span><span class="op">(</span><span class="op">)</span>, verbose <span class="op">=</span> <span class="cn">FALSE</span>, first <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></code></pre></div> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">add_journal</span><span class="op">(</span><span class="va">journal</span>, <span class="va">task</span>, <span class="va">status</span>, <span class="va">id</span>, degree <span class="op">=</span> <span class="fl">0</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></code></pre></div> </div> <div id="arguments"> <h2>Arguments</h2> - <dl><dt>...</dt> -<dd><p>zero or more objects which can be coerced to character.</p></dd> -<dt>journal</dt> -<dd><p>character vector, journal</p></dd> + <dl><dt>journal</dt> +<dd><p>data.frame, journal to be amended. May be missing (see +details).</p></dd> +<dt>task</dt> +<dd><p>character, description of the task. May be missing (see +details).</p></dd> +<dt>status</dt> +<dd><p>character, description of how the task has been performed. May +be missing (see details).</p></dd> +<dt>id</dt> +<dd><p>integer, row of the task to be amended. May be missing (see +details).</p></dd> +<dt>degree</dt> +<dd><p>integer, indicates how deep is the task</p></dd> <dt>verbose</dt> -<dd><p>logical, should x generates a diagnostic message</p></dd> -<dt>first</dt> -<dd><p>logical, should ... be considered as a first message or a second one preceeded by tabulation</p></dd> +<dd><p>logical, should a message be sent. Default to TRUE.</p></dd> </dl></div> <div id="value"> <h2>Value</h2> - <p>updated journal</p> + <p>a data frame of journal information.</p> + </div> + <div id="details"> + <h2>Details</h2> + <p>If the parameter 'journal' is missing, <code>add_journal</code> creates an +empty journal (a data.frame with the expected format). The data.frame have +5 columns: 'start', 'end', 'task', 'status', 'degree', and 'elapsed'.</p> +<p>If the parameter 'task' is not missing, and if no 'status' is given, +<code>add_journal</code> adds a new line to journal, and sets 'start' to +current time, 'task' to given 'task'.</p> +<p>If the parameter 'status' is not missing, <code>add_journal</code> try to find +to which 'task' this is relevant. This can be done by giving explictly the +'id', or by ginving the 'task'. If nothing is given, it is supposed that it +corresponds with the the last task with missing 'status'. For found 'task', +it sets 'status' to given 'status', 'end' to current time. 'elapsed' to the +formatted difftime between 'end' and 'start' with <code><a href="fmt.html">floodam.data::fmt</a></code>.</p> +<p>If verbose == TRUE, a message is sent. If 'task' is given, a new line is +sent, but not ended by 'EOL'. When 'status' is given, message depend on what +was sent just before. If the last message was announcing the start of the +current task, it is completed with status and elapsed time. If not, a new +line is sent with the whole information (start, task, status, elapsed). +'degree' is used to have some tabular formatting. The message sent is +formatted by <code>floodam.date:::format_journal</code>.</p> </div> <div id="author"> <h2>Author</h2> @@ -109,12 +148,59 @@ <div id="ref-examples"> <h2>Examples</h2> - <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">floodam.data</span><span class="fu">:::</span><span class="fu">add_journal</span><span class="op">(</span><span class="st">"Operation started."</span><span class="op">)</span></span> -<span class="r-in"><span class="fu">floodam.data</span><span class="fu">:::</span><span class="fu">add_journal</span><span class="op">(</span><span class="st">"No problem occurred."</span>, journal <span class="op">=</span> <span class="va">journal</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> [1] "\tOperation started." "\tNo problem occurred."</span> -<span class="r-in"><span class="fu">floodam.data</span><span class="fu">:::</span><span class="fu">add_journal</span><span class="op">(</span><span class="st">"No problem occurred."</span>, journal <span class="op">=</span> <span class="va">journal</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span> -<span class="r-msg co"><span class="r-pr">#></span> ... No problem occurred.</span> -<span class="r-out co"><span class="r-pr">#></span> [1] "\tOperation started." "\tNo problem occurred."</span> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"></span> +<span class="r-in"><span class="fu">add_journal</span><span class="op">(</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] task status start end elapsed</span> +<span class="r-out co"><span class="r-pr">#></span> <0 rows> (or 0-length row.names)</span> +<span class="r-in"><span class="fu">add_journal</span><span class="op">(</span>status <span class="op">=</span> <span class="st">"Nothing to be done..."</span>, verbose <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>Trying to add status information to an empty journal.</span> +<span class="r-out co"><span class="r-pr">#></span> [1] task status start end elapsed</span> +<span class="r-out co"><span class="r-pr">#></span> <0 rows> (or 0-length row.names)</span> +<span class="r-in"><span class="op">{</span></span> +<span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">add_journal</span><span class="op">(</span></span> +<span class="r-in"> task <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/sprintf.html" class="external-link">sprintf</a></span><span class="op">(</span></span> +<span class="r-in"> <span class="st">"maintain gaspar with floodam.data (%s)"</span>,</span> +<span class="r-in"> <span class="fu">utils</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/r/utils/packageDescription.html" class="external-link">packageVersion</a></span><span class="op">(</span><span class="st">"floodam.data"</span><span class="op">)</span></span> +<span class="r-in"> <span class="op">)</span></span> +<span class="r-in"><span class="op">)</span></span> +<span class="r-in"><span class="fu"><a href="https://rdrr.io/r/base/Sys.sleep.html" class="external-link">Sys.sleep</a></span><span class="op">(</span><span class="fl">.1</span><span class="op">)</span></span> +<span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">add_journal</span><span class="op">(</span><span class="va">journal</span>, task <span class="op">=</span> <span class="st">"download_gaspar"</span>, degree <span class="op">=</span> <span class="fl">1</span><span class="op">)</span></span> +<span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">add_journal</span><span class="op">(</span><span class="va">journal</span>, task <span class="op">=</span> <span class="st">"adapt_gaspar"</span>, degree <span class="op">=</span> <span class="fl">1</span><span class="op">)</span></span> +<span class="r-in"><span class="fu"><a href="https://rdrr.io/r/base/Sys.sleep.html" class="external-link">Sys.sleep</a></span><span class="op">(</span><span class="fl">.1</span><span class="op">)</span></span> +<span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">add_journal</span><span class="op">(</span><span class="va">journal</span>, task <span class="op">=</span> <span class="st">"alert_gaspar"</span>, degree <span class="op">=</span> <span class="fl">1</span><span class="op">)</span></span> +<span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">add_journal</span><span class="op">(</span><span class="va">journal</span>, status <span class="op">=</span> <span class="st">"Done"</span>, id <span class="op">=</span> <span class="fl">2</span><span class="op">)</span></span> +<span class="r-in"><span class="fu"><a href="https://rdrr.io/r/base/Sys.sleep.html" class="external-link">Sys.sleep</a></span><span class="op">(</span><span class="fl">.1</span><span class="op">)</span></span> +<span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">add_journal</span><span class="op">(</span><span class="va">journal</span>, status <span class="op">=</span> <span class="st">"Done"</span>, task <span class="op">=</span> <span class="st">"alert_gaspar"</span><span class="op">)</span></span> +<span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">add_journal</span><span class="op">(</span><span class="va">journal</span>, status <span class="op">=</span> <span class="st">"Done"</span><span class="op">)</span></span> +<span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">add_journal</span><span class="op">(</span><span class="va">journal</span>, status <span class="op">=</span> <span class="st">"Done"</span><span class="op">)</span></span> +<span class="r-in"><span class="va">journal</span></span> +<span class="r-in"><span class="op">}</span></span> +<span class="r-msg co"><span class="r-pr">#></span> </span> +<span class="r-msg co"><span class="r-pr">#></span> 2023-02-15 15:29:19: [1] maintain gaspar with floodam.data (0.9.35.0)...</span> +<span class="r-msg co"><span class="r-pr">#></span> </span> +<span class="r-msg co"><span class="r-pr">#></span> 2023-02-15 15:29:20: [2] download_gaspar...</span> +<span class="r-msg co"><span class="r-pr">#></span> </span> +<span class="r-msg co"><span class="r-pr">#></span> 2023-02-15 15:29:20: [3] adapt_gaspar...</span> +<span class="r-msg co"><span class="r-pr">#></span> </span> +<span class="r-msg co"><span class="r-pr">#></span> 2023-02-15 15:29:20: [4] alert_gaspar...</span> +<span class="r-msg co"><span class="r-pr">#></span> </span> +<span class="r-msg co"><span class="r-pr">#></span> 2023-02-15 15:29:20: [2] download_gaspar... Done [00:00:00:00.11]</span> +<span class="r-msg co"><span class="r-pr">#></span> </span> +<span class="r-msg co"><span class="r-pr">#></span> 2023-02-15 15:29:20: [4] alert_gaspar... Done [00:00:00:00.11]</span> +<span class="r-msg co"><span class="r-pr">#></span> </span> +<span class="r-msg co"><span class="r-pr">#></span> 2023-02-15 15:29:20: [3] adapt_gaspar... Done [00:00:00:00.21]</span> +<span class="r-msg co"><span class="r-pr">#></span> </span> +<span class="r-msg co"><span class="r-pr">#></span> 2023-02-15 15:29:19: [1] maintain gaspar with floodam.data (0.9.35.0)... Done [00:00:00:00.32]</span> +<span class="r-out co"><span class="r-pr">#></span> start end</span> +<span class="r-out co"><span class="r-pr">#></span> 1 2023-02-15 15:29:19 2023-02-15 15:29:20</span> +<span class="r-out co"><span class="r-pr">#></span> 2 2023-02-15 15:29:20 2023-02-15 15:29:20</span> +<span class="r-out co"><span class="r-pr">#></span> 3 2023-02-15 15:29:20 2023-02-15 15:29:20</span> +<span class="r-out co"><span class="r-pr">#></span> 4 2023-02-15 15:29:20 2023-02-15 15:29:20</span> +<span class="r-out co"><span class="r-pr">#></span> task status degree elapsed</span> +<span class="r-out co"><span class="r-pr">#></span> 1 maintain gaspar with floodam.data (0.9.35.0) Done 0 00:00:00:00.32</span> +<span class="r-out co"><span class="r-pr">#></span> 2 download_gaspar Done 1 00:00:00:00.11</span> +<span class="r-out co"><span class="r-pr">#></span> 3 adapt_gaspar Done 1 00:00:00:00.21</span> +<span class="r-out co"><span class="r-pr">#></span> 4 alert_gaspar Done 1 00:00:00:00.11</span> </code></pre></div> </div> </div> diff --git a/docs/reference/add_journal_old.html b/docs/reference/add_journal_old.html new file mode 100644 index 0000000000000000000000000000000000000000..0459adbae81aa06ca824e91683ba09a82d20ba76 --- /dev/null +++ b/docs/reference/add_journal_old.html @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Add information to a journal — add_journal_old • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Add information to a journal — add_journal_old"><meta property="og:description" content="Use a modality for TRUE and onther for FALSE"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Add information to a journal</h1> + + <div class="hidden name"><code>add_journal_old.Rd</code></div> + </div> + + <div class="ref-description"> + <p>Use a modality for TRUE and onther for FALSE</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">add_journal_old</span><span class="op">(</span><span class="va">...</span>, journal <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/character.html" class="external-link">character</a></span><span class="op">(</span><span class="op">)</span>, verbose <span class="op">=</span> <span class="cn">FALSE</span>, first <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></code></pre></div> + </div> + + <div id="arguments"> + <h2>Arguments</h2> + <dl><dt>...</dt> +<dd><p>zero or more objects which can be coerced to character.</p></dd> +<dt>journal</dt> +<dd><p>character vector, journal</p></dd> +<dt>verbose</dt> +<dd><p>logical, should x generates a diagnostic message</p></dd> +<dt>first</dt> +<dd><p>logical, should ... be considered as a first message or a second one preceeded by tabulation</p></dd> +</dl></div> + <div id="value"> + <h2>Value</h2> + <p>updated journal</p> + </div> + <div id="author"> + <h2>Author</h2> + <p>Frédéric Grelot</p> + </div> + + <div id="ref-examples"> + <h2>Examples</h2> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="va">journal</span> <span class="op">=</span> <span class="fu">floodam.data</span><span class="fu">:::</span><span class="fu">add_journal_old</span><span class="op">(</span><span class="st">"Operation started."</span><span class="op">)</span></span> +<span class="r-in"><span class="fu">floodam.data</span><span class="fu">:::</span><span class="fu">add_journal_old</span><span class="op">(</span><span class="st">"No problem occurred."</span>, journal <span class="op">=</span> <span class="va">journal</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "\tOperation started." "\tNo problem occurred."</span> +<span class="r-in"><span class="fu">floodam.data</span><span class="fu">:::</span><span class="fu">add_journal_old</span><span class="op">(</span><span class="st">"No problem occurred."</span>, journal <span class="op">=</span> <span class="va">journal</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span> +<span class="r-msg co"><span class="r-pr">#></span> ... No problem occurred.</span> +<span class="r-out co"><span class="r-pr">#></span> [1] "\tOperation started." "\tNo problem occurred."</span> +</code></pre></div> + </div> + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/add_log_info.html b/docs/reference/add_log_info.html index 6372b1889d7030e51a51254ef08ed97615d365a5..84fe3a691e7521db93a081eee91979eb6fa6edc2 100644 --- a/docs/reference/add_log_info.html +++ b/docs/reference/add_log_info.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Apply a step to data analysis — add_log_info • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Apply a step to data analysis — add_log_info"><meta property="og:description" content="This function allows to embed a analysis made by a function, so that log information can be saved in a consistent way, messages can be sent depending -on the parameter verbose"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +on the parameter verbose."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -19,7 +19,7 @@ on the parameter verbose"><meta property="og:image" content="/logo.png"><!-- mat </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ on the parameter verbose"><meta property="og:image" content="/logo.png"><!-- mat </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -84,7 +87,7 @@ on the parameter verbose"><meta property="og:image" content="/logo.png"><!-- mat <div class="ref-description"> <p>This function allows to embed a analysis made by a function, so that log information can be saved in a consistent way, messages can be sent depending -on the parameter verbose</p> +on the parameter verbose.</p> </div> <div id="ref-usage"> @@ -101,9 +104,9 @@ on the parameter verbose</p> <dd><p>list, gives the name of the step both in 'short' and 'long' terms.</p></dd> <dt>journal</dt> -<dd><p>either FALSE, if not must be a character of length one, and will -be interpreted at the log file where to save any log information. Its -format should be in '*.log' in order to create also a '*-log.csv' log file +<dd><p>either FALSE, if not must be a character of length one, and +will be interpreted at the log file where to save any log information. Its +format should be in '<em>.log' in order to create also a '</em>-log.csv' log file that will store information on time and any given verification in csv format.</p></dd> <dt>verbose</dt> <dd><p>logical, should the some messages be sent in real time.</p></dd> diff --git a/docs/reference/add_transparency.html b/docs/reference/add_transparency.html index b1f22e37ad793bfdae545f4924acf3297d45ef83..8b8deb4570ce62a94e7db44b816ec92417cc4fd5 100644 --- a/docs/reference/add_transparency.html +++ b/docs/reference/add_transparency.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/alert_gaspar.html b/docs/reference/alert_gaspar.html index a0f9d4cf18e887d101c6f0ff04792fcad008e9c5..baa64e8e018bab1f0263b78df5dd33e0b41c81ab 100644 --- a/docs/reference/alert_gaspar.html +++ b/docs/reference/alert_gaspar.html @@ -1,11 +1,13 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Analyse gaspar to send an alert to mattermost — alert_gaspar • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Analyse gaspar to send an alert to mattermost — alert_gaspar"><meta property="og:description" content="The following treatments are performed: -- If no sufficient versions are found, nothing is done. -- NA values are consistently set. -- Type of fields are consistently set, some checks are performed on transformations. -- Data set is cut and saved by departments -- Only observations with spatial coordinates are kept. -- Exposition of observations (belonging or not to eaip) is added."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +If no sufficient versions are found, nothing is done. +NA values are consistently set. +Type of fields are consistently set, some checks are performed on transformations. +Data set is cut and saved by departments +Only observations with spatial coordinates are kept. +Exposition of observations (belonging or not to eaip) is added. + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -23,7 +25,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -49,6 +51,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -86,14 +91,13 @@ </div> <div class="ref-description"> - <p>The following treatments are performed: -- If no sufficient versions are found, nothing is done. -- NA values are consistently set. -- Type of fields are consistently set, some checks are performed on transformations. -- Data set is cut and saved by departments -- Only observations with spatial coordinates are kept. -- Exposition of observations (belonging or not to eaip) is added.</p> - </div> + <p>The following treatments are performed:</p><ul><li><p>If no sufficient versions are found, nothing is done.</p></li> +<li><p>NA values are consistently set.</p></li> +<li><p>Type of fields are consistently set, some checks are performed on transformations.</p></li> +<li><p>Data set is cut and saved by departments</p></li> +<li><p>Only observations with spatial coordinates are kept.</p></li> +<li><p>Exposition of observations (belonging or not to eaip) is added.</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">alert_gaspar</span><span class="op">(</span><span class="va">origin</span>, <span class="va">current</span>, <span class="va">past</span>, <span class="va">scope</span>, alert <span class="op">=</span> <span class="cn">TRUE</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></code></pre></div> diff --git a/docs/reference/alert_mattermost.html b/docs/reference/alert_mattermost.html index 61b8e3d46cd7c04896187c45e73156ac9ac2dc56..7bee0526a92d58e55668a2f337e58a446cc7c354 100644 --- a/docs/reference/alert_mattermost.html +++ b/docs/reference/alert_mattermost.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/analyse_archive.html b/docs/reference/analyse_archive.html new file mode 100644 index 0000000000000000000000000000000000000000..d5291a11c02cc5c95279d6ac800101f1202f4584 --- /dev/null +++ b/docs/reference/analyse_archive.html @@ -0,0 +1,395 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Analyse names of archive to get useful infomations. — analyse_archive • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Analyse names of archive to get useful infomations. — analyse_archive"><meta property="og:description" content="The function is set for IGN's names of archive, that should normally be +"well" structured with this scheme : +data-type_version_precision_format_projection_scope_date.ext. Sometimes a +less frequent format is +data-name_version_precision_format_projection_scope_proj_date.ext. In the +latter case, "proj" is given in another format than "projection", but also in +a documented way. +From this structure, an analysis is done to retrieve, the type of data, the +version, the precision (very often it is empty), the format used (something +in "SHP", "GPKG" or "SQL"), the projection (something in "WGS84G", "LAMB93", +"RGAF09UTM20", "UTM22RGFG95", "RGR92UTM40S", "RGM04UTM38S"), the scope ( +something in "FRA", "FXX", "GLP", "MTQ", "GUF", "REU", "MYT"), the date (in +the format YYYY-MM-DD), the year (YYYY), the extension, and the name (the +name of the archive without the extension.) +This is also done when the format is the less frequent case, because in this +case, the projection is not given."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Analyse names of archive to get useful infomations.</h1> + + <div class="hidden name"><code>analyse_archive.Rd</code></div> + </div> + + <div class="ref-description"> + <p>The function is set for IGN's names of archive, that should normally be +"well" structured with this scheme : +data-type_version_precision_format_projection_scope_date.ext. Sometimes a +less frequent format is +data-name_version_precision_format_projection_scope_proj_date.ext. In the +latter case, "proj" is given in another format than "projection", but also in +a documented way.</p> +<p>From this structure, an analysis is done to retrieve, the type of data, the +version, the precision (very often it is empty), the format used (something +in "SHP", "GPKG" or "SQL"), the projection (something in "WGS84G", "LAMB93", +"RGAF09UTM20", "UTM22RGFG95", "RGR92UTM40S", "RGM04UTM38S"), the scope ( +something in "FRA", "FXX", "GLP", "MTQ", "GUF", "REU", "MYT"), the date (in +the format YYYY-MM-DD), the year (YYYY), the extension, and the name (the +name of the archive without the extension.)</p> +<p>This is also done when the format is the less frequent case, because in this +case, the projection is not given.</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">analyse_archive</span><span class="op">(</span><span class="va">x</span>, origin <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"ign"</span>, <span class="st">"floodam.data"</span><span class="op">)</span><span class="op">)</span></code></pre></div> + </div> + + <div id="arguments"> + <h2>Arguments</h2> + <dl><dt>x</dt> +<dd><p>character vector</p></dd> +<dt>origin</dt> +<dd><p>character, to choose the format. Only "ign" is available at the +moment.</p></dd> +</dl></div> + <div id="value"> + <h2>Value</h2> + <p>either a vector or a matrix depending on the length of x.</p> + </div> + <div id="author"> + <h2>Author</h2> + <p>Frédéric Grelot</p> + </div> + + <div id="ref-examples"> + <h2>Examples</h2> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="va">ign</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span></span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z"</span>,</span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001"</span>,</span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA"</span>,</span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto"</span></span> +<span class="r-in"><span class="op">)</span></span> +<span class="r-in"><span class="fu">analyse_archive</span><span class="op">(</span><span class="va">ign</span><span class="op">)</span></span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN scope.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN projection.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN type.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: 6 slots found in ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA. This is not compatible with IGN's scheme. NAs returned.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: 8 slots found in ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto. This is not compatible with IGN's scheme. NAs returned.</span> +<span class="r-out co"><span class="r-pr">#></span> data </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA </span> +<span class="r-out co"><span class="r-pr">#></span> version precision type </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "3-1" NA "BAD"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> projection scope</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "LAMB93" "BAD"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "BAD" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> vintage year </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> extension</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "7z" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "7z.001" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA </span> +<span class="r-out co"><span class="r-pr">#></span> name </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto"</span> +<span class="r-in"><span class="fu">analyse_archive</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><span class="op">(</span><span class="va">ign</span>, <span class="fl">2</span><span class="op">)</span><span class="op">)</span></span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN scope.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN projection.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN type.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: 6 slots found in ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA. This is not compatible with IGN's scheme. NAs returned.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: 8 slots found in ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto. This is not compatible with IGN's scheme. NAs returned.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN scope.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN projection.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: BAD is not an official IGN type.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: 6 slots found in ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA. This is not compatible with IGN's scheme. NAs returned.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: 8 slots found in ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto. This is not compatible with IGN's scheme. NAs returned.</span> +<span class="r-out co"><span class="r-pr">#></span> data </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA </span> +<span class="r-out co"><span class="r-pr">#></span> version precision type </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "3-1" NA "BAD"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "3-1" NA "SHP"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "3-1" NA "BAD"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> projection scope</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "LAMB93" "BAD"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "BAD" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "LAMB93" "BAD"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "BAD" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "LAMB93" "FRA"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> vintage year </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "2022-04-15" "2022"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> extension</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "7z" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "7z.001" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "7z" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "7z.001" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto NA </span> +<span class="r-out co"><span class="r-pr">#></span> name </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto"</span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15 "ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto"</span> +<span class="r-in"></span> +<span class="r-in"><span class="va">floodam</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span></span> +<span class="r-in"> <span class="st">"admin-express_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"admin-express_2022-04-15.rds"</span>,</span> +<span class="r-in"> <span class="st">"admin-express_commune_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"admin-express_D034_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"admin-express_commune_D034_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"admin-express_D034_commune_2022-04-15"</span>,</span> +<span class="r-in"> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z"</span></span> +<span class="r-in"><span class="op">)</span></span> +<span class="r-in"><span class="fu">analyse_archive</span><span class="op">(</span><span class="va">floodam</span>, <span class="st">"floodam.data"</span><span class="op">)</span></span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: admin-express_D034_commune_2022-04-15 cannot be analysed. Should be data_precision_scope_vintage, with possible missings but not reordering. NAs returned.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>analyse_archive WARNING: 7 slot(s) found in ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15. This is not compatible with floodam.data's scheme. NAs returned.</span> +<span class="r-out co"><span class="r-pr">#></span> data </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_2022-04-15 "admin-express"</span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_2022-04-15.rds "admin-express"</span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_commune_2022-04-15 "admin-express"</span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_D034_2022-04-15 "admin-express"</span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_commune_D034_2022-04-15 "admin-express"</span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_D034_commune_2022-04-15 NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z NA </span> +<span class="r-out co"><span class="r-pr">#></span> precision scope </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_2022-04-15 NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_2022-04-15.rds NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_commune_2022-04-15 "commune" NA </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_D034_2022-04-15 NA "D034"</span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_commune_D034_2022-04-15 "commune" "D034"</span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_D034_commune_2022-04-15 NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> vintage extension</span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_2022-04-15 "2022-04-15" NA </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_2022-04-15.rds "2022-04-15" "rds" </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_commune_2022-04-15 "2022-04-15" NA </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_D034_2022-04-15 "2022-04-15" NA </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_commune_D034_2022-04-15 "2022-04-15" NA </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_D034_commune_2022-04-15 NA NA </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z NA "7z" </span> +<span class="r-out co"><span class="r-pr">#></span> name </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_2022-04-15 "admin-express_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_2022-04-15.rds "admin-express_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_commune_2022-04-15 "admin-express_commune_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_D034_2022-04-15 "admin-express_D034_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_commune_D034_2022-04-15 "admin-express_commune_D034_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> admin-express_D034_commune_2022-04-15 "admin-express_D034_commune_2022-04-15" </span> +<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z "ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15"</span> +</code></pre></div> + </div> + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/analyse_catnat.html b/docs/reference/analyse_catnat.html index 730160adbca083719ad3405bd1ea6ac55736dd28..f645a8a82eb9e9fa50ca795395f1fc63b6355950 100644 --- a/docs/reference/analyse_catnat.html +++ b/docs/reference/analyse_catnat.html @@ -1,10 +1,12 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Analyse catnat theme from gaspar to give some elementary results — analyse_catnat • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Analyse catnat theme from gaspar to give some elementary results — analyse_catnat"><meta property="og:description" content="The following treatments are performed: -- catnat declaration are grouped by type of risks, and dates of events. This - leads to event data.frame, for which number of communes concerned are - summed. -- From event data.frame, number of events by year, month, and type are - computed."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +catnat declaration are grouped by type of risks, and dates of events. This +leads to event data.frame, for which number of communes concerned are +summed. +From event data.frame, number of events by year, month, and type are +computed. + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -22,7 +24,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -48,6 +50,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -85,13 +90,12 @@ </div> <div class="ref-description"> - <p>The following treatments are performed: -- catnat declaration are grouped by type of risks, and dates of events. This - leads to event data.frame, for which number of communes concerned are - summed. -- From event data.frame, number of events by year, month, and type are - computed.</p> - </div> + <p>The following treatments are performed:</p><ul><li><p>catnat declaration are grouped by type of risks, and dates of events. This +leads to event data.frame, for which number of communes concerned are +summed.</p></li> +<li><p>From event data.frame, number of events by year, month, and type are +computed.</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">analyse_catnat</span><span class="op">(</span><span class="va">catnat</span><span class="op">)</span></code></pre></div> diff --git a/docs/reference/analyse_dwelling.html b/docs/reference/analyse_dwelling.html index 2e43041a44796103291056652babf74613e6069f..526238c0438152583fdd172a4b365a8e48628f61 100644 --- a/docs/reference/analyse_dwelling.html +++ b/docs/reference/analyse_dwelling.html @@ -21,7 +21,7 @@ function creates tables in csv format and png image files in path."><meta proper </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -47,6 +47,9 @@ function creates tables in csv format and png image files in path."><meta proper </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/analyse_intersection.html b/docs/reference/analyse_intersection.html index d45ab5979968027db9d2bc61655cbb9696e068a6..4980412ef3e03fb626d062eb30fc6dbff0812b74 100644 --- a/docs/reference/analyse_intersection.html +++ b/docs/reference/analyse_intersection.html @@ -1,8 +1,10 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Analyse intersections between spatial DBs — analyse_intersection • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Analyse intersections between spatial DBs — analyse_intersection"><meta property="og:description" content="The following treatments are performed: -- data is adapated consistently with theme -- only data corresponding to flood hazards are kept -- if scope is given, a subpart of data is also saved"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +data is adapated consistently with theme +only data corresponding to flood hazards are kept +if scope is given, a subpart of data is also saved + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -20,7 +22,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -46,6 +48,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -83,11 +88,10 @@ </div> <div class="ref-description"> - <p>The following treatments are performed: -- data is adapated consistently with theme -- only data corresponding to flood hazards are kept -- if scope is given, a subpart of data is also saved</p> - </div> + <p>The following treatments are performed:</p><ul><li><p>data is adapated consistently with theme</p></li> +<li><p>only data corresponding to flood hazards are kept</p></li> +<li><p>if scope is given, a subpart of data is also saved</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">analyse_intersection</span><span class="op">(</span> diff --git a/docs/reference/analyse_ppr.html b/docs/reference/analyse_ppr.html index c32ac7f9eb7e9679d53f75003f3bb9beb610d9fb..94ff928b77dbf62edcac21a5b273ae98938dab22 100644 --- a/docs/reference/analyse_ppr.html +++ b/docs/reference/analyse_ppr.html @@ -1,15 +1,17 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Analyse ppr theme from gaspar to give some elementary results — analyse_ppr • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Analyse ppr theme from gaspar to give some elementary results — analyse_ppr"><meta property="og:description" content="The following treatments are performed: -- In the element detail, a matrix gives for each commune (rows), the count - of all procedures depening on their state (columns). The column &lt;NA&gt; is - alwas given even if, normally, it should stay at 0 for each commune. -- In the element summary, from the information in element detail, a state at - the commune is given. It is performed this way: if one document is in state - "use", the commune is in state "use", otherwise if one document is in state - "progress", the commune is in state "progress", otherwise if one document - is in state "cancelled", the commune is in state "cancelled", otherwise if - one document is in state "unknown", the commune is in state "unknown", - otherwise the commune's state is NA."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +In the element detail, a matrix gives for each commune (rows), the count +of all procedures depending on their state (columns). The column NA is +always given even if, normally, it should stay at 0 for each commune. +In the element summary, from the information in element detail, a state at +the commune is given. It is performed this way: if one document is in state +"use", the commune is in state "use", otherwise if one document is in state +"progress", the commune is in state "progress", otherwise if one document +is in state "cancelled", the commune is in state "cancelled", otherwise if +one document is in state "unknown", the commune is in state "unknown", +otherwise the commune's state is NA. + +"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -27,7 +29,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -53,6 +55,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -90,18 +95,17 @@ </div> <div class="ref-description"> - <p>The following treatments are performed: -- In the element detail, a matrix gives for each commune (rows), the count - of all procedures depening on their state (columns). The column <NA> is - alwas given even if, normally, it should stay at 0 for each commune. -- In the element summary, from the information in element detail, a state at - the commune is given. It is performed this way: if one document is in state - "use", the commune is in state "use", otherwise if one document is in state - "progress", the commune is in state "progress", otherwise if one document - is in state "cancelled", the commune is in state "cancelled", otherwise if - one document is in state "unknown", the commune is in state "unknown", - otherwise the commune's state is NA.</p> - </div> + <p>The following treatments are performed:</p><ul><li><p>In the element detail, a matrix gives for each commune (rows), the count +of all procedures depending on their state (columns). The column NA is +always given even if, normally, it should stay at 0 for each commune.</p></li> +<li><p>In the element summary, from the information in element detail, a state at +the commune is given. It is performed this way: if one document is in state +"use", the commune is in state "use", otherwise if one document is in state +"progress", the commune is in state "progress", otherwise if one document +is in state "cancelled", the commune is in state "cancelled", otherwise if +one document is in state "unknown", the commune is in state "unknown", +otherwise the commune's state is NA.</p></li> +</ul></div> <div id="ref-usage"> <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">analyse_ppr</span><span class="op">(</span><span class="va">ppr</span><span class="op">)</span></code></pre></div> diff --git a/docs/reference/analyse_ppr_state.html b/docs/reference/analyse_ppr_state.html index 100dde00fdc50edc890e22baa8a0af1043bed443..74913b7cdd65a3b6d5d5c7e13392d3d08032d0e6 100644 --- a/docs/reference/analyse_ppr_state.html +++ b/docs/reference/analyse_ppr_state.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/apply_scheme.html b/docs/reference/apply_scheme.html index 735601fd1d0772cbc8c1922fef18e145a106e4d4..25db8b28123d2412de665dddef4fe567d3cbdc8f 100644 --- a/docs/reference/apply_scheme.html +++ b/docs/reference/apply_scheme.html @@ -19,7 +19,7 @@ the type of variable."><meta property="og:image" content="/logo.png"><!-- mathja </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ the type of variable."><meta property="og:image" content="/logo.png"><!-- mathja </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/basename_extended.html b/docs/reference/basename_extended.html new file mode 100644 index 0000000000000000000000000000000000000000..48f6c2b371c8976f6b85addca0da68934261ba8f --- /dev/null +++ b/docs/reference/basename_extended.html @@ -0,0 +1,170 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Utilities enhancing basename() — basename_extended • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Utilities enhancing basename() — basename_extended"><meta property="og:description" content="Utilities for getting name of files and extension in another whay than of +tools::file_ext() and others corresponding functions."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Utilities enhancing basename()</h1> + + <div class="hidden name"><code>basename_extended.Rd</code></div> + </div> + + <div class="ref-description"> + <p>Utilities for getting name of files and extension in another whay than of +<code><a href="https://rdrr.io/r/tools/fileutils.html" class="external-link">tools::file_ext()</a></code> and others corresponding functions.</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">basename_core</span><span class="op">(</span><span class="va">x</span><span class="op">)</span> + +<span class="fu">basename_ext</span><span class="op">(</span><span class="va">x</span><span class="op">)</span></code></pre></div> + </div> + + <div id="arguments"> + <h2>Arguments</h2> + <dl><dt>x</dt> +<dd><p>character vector, file paths</p></dd> +</dl></div> + <div id="value"> + <h2>Value</h2> + <p>character vector of processed files.</p> + </div> + <div id="details"> + <h2>Details</h2> + <p><code>basename_core()</code> differs from <code><a href="https://rdrr.io/r/tools/fileutils.html" class="external-link">tools::file_path_sans_ext()</a></code> in this:</p><ul><li><p><code><a href="https://rdrr.io/r/base/basename.html" class="external-link">basename()</a></code> is first applied</p></li> +<li><p>"compounded" extensions are removed. See examples.</p></li> +</ul><p><code>basename_ext()</code> differs from <code><a href="https://rdrr.io/r/tools/fileutils.html" class="external-link">tools::file_path_sans_ext()</a></code> in this:</p><ul><li><p><code><a href="https://rdrr.io/r/base/basename.html" class="external-link">basename()</a></code> is first applied</p></li> +<li><p>"compounded" extensions are extracted. See examples.</p></li> +</ul></div> + <div id="author"> + <h2>Author</h2> + <p>Frédéric Grelot</p> + </div> + + <div id="ref-examples"> + <h2>Examples</h2> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"></span> +<span class="r-in"><span class="co"># equivalent to tools::file_path_sans_ext</span></span> +<span class="r-in"><span class="fu">basename_core</span><span class="op">(</span><span class="st">"toto.7z"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "toto"</span> +<span class="r-in"></span> +<span class="r-in"><span class="co"># different from tools::file_path_sans_ext</span></span> +<span class="r-in"><span class="fu">basename_core</span><span class="op">(</span><span class="st">"toto.7z.001"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "toto"</span> +<span class="r-in"><span class="fu">basename_core</span><span class="op">(</span><span class="st">"path/toto.csv"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "toto"</span> +<span class="r-in"><span class="fu">basename_core</span><span class="op">(</span><span class="st">"path/toto.csv.gz"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "toto"</span> +<span class="r-in"></span> +<span class="r-in"></span> +<span class="r-in"><span class="co"># equivalent to tools::file__ext</span></span> +<span class="r-in"><span class="fu">basename_ext</span><span class="op">(</span><span class="st">"toto.7z"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "7z"</span> +<span class="r-in"><span class="fu">basename_ext</span><span class="op">(</span><span class="st">"path/toto.csv"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "csv"</span> +<span class="r-in"></span> +<span class="r-in"><span class="co">#'different from tools::file__ext</span></span> +<span class="r-in"><span class="fu">basename_ext</span><span class="op">(</span><span class="st">"toto.7z.001"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "7z.001"</span> +<span class="r-in"><span class="fu">basename_ext</span><span class="op">(</span><span class="st">"path/toto.csv.gz"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "csv.gz"</span> +</code></pre></div> + </div> + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/bd_topo_nature_reclass.html b/docs/reference/bd_topo_nature_reclass.html index 78de76c49bd6cedde3ab0117229d013f69a72caa..661470c9707d0bd0a35250221a2812e0b57d52d8 100644 --- a/docs/reference/bd_topo_nature_reclass.html +++ b/docs/reference/bd_topo_nature_reclass.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Scheme to rename levels of variable 'nature' in the BT TOPO version 3.0 — bd_topo_nature_reclass • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Scheme to rename levels of variable 'nature' in the BT TOPO version 3.0 — bd_topo_nature_reclass"><meta property="og:description" content="This dataset controls how the categories in the variable 'nature' are to be +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Scheme to rename levels of variable 'nature' in the BT TOPO version 3.0 — bd_topo_nature_reclass • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Scheme to rename levels of variable 'nature' in the BT TOPO version 3.0 — bd_topo_nature_reclass"><meta property="og:description" content="This dataset controls how the categories in the variable 'nature' are to be renamed."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +18,7 @@ renamed."><meta property="og:image" content="/logo.png"><!-- mathjax --><script </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ renamed."><meta property="og:image" content="/logo.png"><!-- mathjax --><script </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -81,7 +84,7 @@ renamed."><meta property="og:image" content="/logo.png"><!-- mathjax --><script </div> <div class="ref-description"> - <p>This dataset controls how the categories in the variable 'nature' are to be + <p>This dataset controls how the categories in the variable 'nature' are to be renamed.</p> </div> @@ -92,14 +95,14 @@ renamed.</p> <div id="format"> <h2>Format</h2> <p>A data frame with 14 rows and 2 variables:</p><dl><dt>nature</dt> -<dd><p>character, name of categories originally used variable - 'nature' of the bdtopo.</p></dd> +<dd><p>character, name of categories originally used variable +'nature' of the bdtopo.</p></dd> - <dt>classification_fr</dt> +<dt>classification_fr</dt> <dd><p>character, name of categories to be used to - transform the categories in variable 'nature'.</p></dd> +transform the categories in variable 'nature'.</p></dd> - <dt>order</dt> +<dt>order</dt> <dd><p>character, order of the level in the factor variable.</p></dd> diff --git a/docs/reference/bd_topo_roof.html b/docs/reference/bd_topo_roof.html index 0f326c3756d98df5c608b4a617de99db87797a65..c295b7c5945a2496ae383ac7cf8ecc8b4e2b7128 100644 --- a/docs/reference/bd_topo_roof.html +++ b/docs/reference/bd_topo_roof.html @@ -18,7 +18,7 @@ to be renamed."><meta property="og:image" content="/logo.png"><!-- mathjax --><s </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ to be renamed."><meta property="og:image" content="/logo.png"><!-- mathjax --><s </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -94,17 +97,17 @@ to be renamed.</p> <p>A data frame with 36 rows and 4 variables:</p><dl><dt>material_roof</dt> <dd><p>character, categories of materials.</p></dd> - <dt>label_roof_bdtopo</dt> +<dt>label_roof_bdtopo</dt> <dd><p>character, originally given name to the - categories of materials in BD Topo.</p></dd> +categories of materials in BD Topo.</p></dd> - <dt>label_roof_fr</dt> +<dt>label_roof_fr</dt> <dd><p>character, simplified name to the categories of - materials in French.</p></dd> +materials in French.</p></dd> - <dt>combined_roof</dt> +<dt>combined_roof</dt> <dd><p>character, TRUE if two categories of materials are - mixed.</p></dd> +mixed.</p></dd> </dl></div> diff --git a/docs/reference/bd_topo_wall.html b/docs/reference/bd_topo_wall.html index 44dcab79778954fd5afc23f43775ff32ec5443d1..d70e88780cb82c0afaef508704be5e248c31b9ea 100644 --- a/docs/reference/bd_topo_wall.html +++ b/docs/reference/bd_topo_wall.html @@ -18,7 +18,7 @@ to be renamed."><meta property="og:image" content="/logo.png"><!-- mathjax --><s </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ to be renamed."><meta property="og:image" content="/logo.png"><!-- mathjax --><s </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -94,16 +97,17 @@ to be renamed.</p> <p>A data frame with 64 rows and 4 variables:</p><dl><dt>material_wall</dt> <dd><p>character, categories of materials.</p></dd> - <dt>label_wall_bdtopo</dt> +<dt>label_wall_bdtopo</dt> <dd><p>character, originally given name to the - categories of materials in the BDTopo.</p></dd> +categories of materials in the BDTopo.</p></dd> - <dt>label_wall_fr</dt> +<dt>label_wall_fr</dt> <dd><p>character, simplified name to the categories of - materials in French.</p></dd> +materials in French.</p></dd> - <dt>combined_wall</dt> -<dd><p>character, TRUE if two categories of materials are mixed.</p></dd> +<dt>combined_wall</dt> +<dd><p>character, TRUE if two categories of materials are +mixed.</p></dd> </dl></div> diff --git a/docs/reference/category_label.html b/docs/reference/category_label.html index 96426ff0abf8cadd5be3605c8ef54baca44ef0a2..e6a7b30275433bb17e7b7be5e8c7aad195be7bb6 100644 --- a/docs/reference/category_label.html +++ b/docs/reference/category_label.html @@ -18,7 +18,7 @@ the typology of activities used within floodam.building"><meta property="og:imag </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ the typology of activities used within floodam.building"><meta property="og:imag </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -94,7 +97,7 @@ the typology of activities used within floodam.building</p> <p>A data frame with 21 rows and 2 variables:</p><dl><dt>code</dt> <dd><p>character, code of the type.</p></dd> - <dt>label.fr</dt> +<dt>label.fr</dt> <dd><p>character, label in French corresponding with the code.</p></dd> diff --git a/docs/reference/catnat_classification.html b/docs/reference/catnat_classification.html index 99d10df5191509e01d02f904380841f8b512a34f..a97178b25574f2c9b79e6bd8b1a9ba8e89a1d692 100644 --- a/docs/reference/catnat_classification.html +++ b/docs/reference/catnat_classification.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Classification of hazards events in catnat (gaspar DB) — catnat_classification • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Classification of hazards events in catnat (gaspar DB) — catnat_classification"><meta property="og:description" content="Classification of hazards events in catnat (gaspar DB)"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Classification of hazard events in catnat (gaspar DB) — catnat_classification • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Classification of hazard events in catnat (gaspar DB) — catnat_classification"><meta property="og:description" content="Classification of hazard events in catnat (gaspar DB)"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -74,13 +77,13 @@ </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Classification of hazards events in catnat (gaspar DB)</h1> + <h1>Classification of hazard events in catnat (gaspar DB)</h1> <div class="hidden name"><code>catnat_classification.Rd</code></div> </div> <div class="ref-description"> - <p>Classification of hazards events in catnat (gaspar DB)</p> + <p>Classification of hazard events in catnat (gaspar DB)</p> </div> <div id="ref-usage"> diff --git a/docs/reference/commune_so_ii.html b/docs/reference/commune_so_ii.html index 93374812bb912bb210a8bf47a099b1992306d9af..e704b5b2541f1a518ba758c8f29127e0cdf9aba3 100644 --- a/docs/reference/commune_so_ii.html +++ b/docs/reference/commune_so_ii.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Perimeter of so-ii experimental site — commune_so_ii • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Perimeter of so-ii experimental site — commune_so_ii"><meta property="og:description" content="A dataset containing the commune pertaining to so-ii experimental site with -useful informations to make subsets"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +useful information to make subsets"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -18,7 +18,7 @@ useful informations to make subsets"><meta property="og:image" content="/logo.pn </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ useful informations to make subsets"><meta property="og:image" content="/logo.pn </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -82,7 +85,7 @@ useful informations to make subsets"><meta property="og:image" content="/logo.pn <div class="ref-description"> <p>A dataset containing the commune pertaining to so-ii experimental site with -useful informations to make subsets</p> +useful information to make subsets</p> </div> <div id="ref-usage"> @@ -94,21 +97,21 @@ useful informations to make subsets</p> <p>A data frame with 78 rows and 6 variables:</p><dl><dt>commune</dt> <dd><p>integer, INSEE code for the commune.</p></dd> - <dt>commune_name</dt> +<dt>commune_name</dt> <dd><p>character, name of the commune.</p></dd> - <dt>syble</dt> +<dt>syble</dt> <dd><p>logical, is the commune belonging to Syble.</p></dd> - <dt>symbo</dt> +<dt>symbo</dt> <dd><p>logical, is the commune belonging to Symbo.</p></dd> - <dt>epci</dt> +<dt>epci</dt> <dd><p>character, name of the EPCI to which the commune belongs.</p></dd> - <dt>type</dt> +<dt>type</dt> <dd><p>character, type of commune between urban, periurban and - rural.</p></dd> +rural.</p></dd> </dl></div> diff --git a/docs/reference/complete_pattern.html b/docs/reference/complete_pattern.html index 137f5e4c5d2e9184f8c4f9401f831ec4b838ac08..4dbe3169e1466b7904aecd6a8bedb91263ae1eed 100644 --- a/docs/reference/complete_pattern.html +++ b/docs/reference/complete_pattern.html @@ -18,7 +18,7 @@ find files of given extension within a vector of names."><meta property="og:imag </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ find files of given extension within a vector of names."><meta property="og:imag </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/create_date.html b/docs/reference/create_date.html index 4ef31a666129183c34484448a70f6cd95fc36356..05375c94dd279f3b305955549506bbe7c303c350 100644 --- a/docs/reference/create_date.html +++ b/docs/reference/create_date.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -90,18 +93,23 @@ <div id="arguments"> <h2>Arguments</h2> <dl><dt>...</dt> -<dd><p>Anything that will be coerced to a character. See details for format.</p></dd> +<dd><p>Anything that will be coerced to a character. See details for +format.</p></dd> </dl></div> <div id="value"> <h2>Value</h2> - <p>A vector of two dates of fromate %Y-%m-%d"</p> + <p>A vector of two dates of format "\<!-- %Y-\\%m-\\%d" --></p> </div> <div id="details"> <h2>Details</h2> - <p>x shall be a vector of character with date in format "%Y", "<!-- %\Y-\%m", or "%\Y-\%m-%\d". Frome x, it takes --> -the minimum and maximum. min(x) is completed, if necessary, as to be thebeginning of period "%Y" becomes %Y-01-01", -"<!-- %\Y-\%m" becomes "%\Y-\%m-01", while max(x) is completed, if necessary, as to be the maximum of period "\%Y" --> -becomes %Y-12-31", "<!-- %\Y-\%m" becomes --></p> + <p>Inputs are transformed in character vector, that we call x. When cretaed, x +shall be vector of characters with date in format "\<!-- %Y", "\\%Y-\\%m", or --> +"\<!-- %Y-\\%m-\%\d". It takes the minimum and maximum. min(x) is --> +completed, if necessary, as to be the beginning of period "\<!-- %Y" becomes --> +"\<!-- %Y-01-01", "\\%Y-\\%m" becomes "\\%Y-\\%m-01", while max(x) is completed, if --> +necessary, as to be the maximum of period "\<!-- %Y" becomes "\\%Y-12-31", --> +"\<!-- %Y-\\%m" becomes "\\%Y-\\%m-31" (or "..-28", "..-29", "..-30" depending on the --> +month).</p> </div> <div id="ref-examples"> diff --git a/docs/reference/create_month.html b/docs/reference/create_month.html index 948ddc4960fbee70b4a7402fcf7ba050de89ca93..2680d3113f15a713d0a2f6a12ffbc973c6cc6b84 100644 --- a/docs/reference/create_month.html +++ b/docs/reference/create_month.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -96,16 +99,15 @@ </dl></div> <div id="value"> <h2>Value</h2> - <p>A character vector with the sequence of month either in format "%m" or "%Y-%m" depending on -parameters.</p> + <p>A character vector with the sequence of month either in format "\<!-- %m" or "\\%Y-\\%m" depending on -->parameters.</p> </div> <div id="details"> <h2>Details</h2> <p>It creates a sequence of ordered months. The final format depends on the format of input parameters, that must be of the same type. If both begin and ending can be transform as <code>integer</code> between 1 and 12, it will return -a sequence of month of formatted month '%m'. If both begin and ending can be interpreted as something like -"%Y-%m", it will return a sequence of month exactly formatted as "<!-- %Ym-%d". \code{begin} and \code{ending} may --> -be written as "%Y_%m", "%Y:%m", or "%Y/%m", eventually with missing starting'0' for month.</p> +a sequence of month of formatted month '\<!-- %m'. If both begin and ending can be interpreted as something like --> +"\<!-- %Y-\\%m", it will return a sequence of month exactly formatted as "\%Ym-\%d". \code{begin} and \code{ending} may --> +be written as "\<!-- %Y_\\%m", "\\%Y:\\%m", or "\\%Y/\\%m", eventually with missing starting'0' for month. --></p> </div> <div id="ref-examples"> diff --git a/docs/reference/define_path.html b/docs/reference/define_path.html index df622c05ed2fcb58b75514261586e11727aff386..de10851848828d697189c260a83ae62959a886f0 100644 --- a/docs/reference/define_path.html +++ b/docs/reference/define_path.html @@ -18,7 +18,7 @@ is appended through file.path."><meta property="og:image" content="/logo.png"><! </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ is appended through file.path."><meta property="og:image" content="/logo.png"><! </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/department.html b/docs/reference/department.html index fcae6254ee696e1d5591d31768a32320be7cbd41..4d5e842d054a0c64a398f06039f751ef869436cd 100644 --- a/docs/reference/department.html +++ b/docs/reference/department.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Region definition in France — department • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Region definition in France — department"><meta property="og:description" content="This dataset gives the correspondance between code and French label in usage +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Region definition in France — department • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Region definition in France — department"><meta property="og:description" content="This dataset gives the correspondance between code and French label in use in France."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +18,7 @@ in France."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ in France."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -81,7 +84,7 @@ in France."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip </div> <div class="ref-description"> - <p>This dataset gives the correspondance between code and French label in usage + <p>This dataset gives the correspondance between code and French label in use in France.</p> </div> @@ -94,12 +97,12 @@ in France.</p> <p>A data frame with 101 rows and 2 variables:</p><dl><dt>code</dt> <dd><p>character, INSEE code of department.</p></dd> - <dt>label.fr</dt> +<dt>label.fr</dt> <dd><p>character, name of department as defined by INSEE.</p></dd> - <dt>region</dt> +<dt>region</dt> <dd><p>character, INSEE code of region where department is - located.</p></dd> +located.</p></dd> </dl></div> diff --git a/docs/reference/download.geo_sirene.html b/docs/reference/download.geo_sirene.html index 6462d56ca430dc3d945259cde139a8d3055aeef4..2b1d54f9aaddd738cec2347e5a4efe92004227e2 100644 --- a/docs/reference/download.geo_sirene.html +++ b/docs/reference/download.geo_sirene.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -128,12 +131,12 @@ at default value. See details.</p></dd> -<p>If <code>origin == "cquest"</code>, then all necessary variables are filled with those values:</p><ul><li><p><b>origin</b> is changed to <a href="http://data.cquest.org/geo_sirene" class="external-link">http://data.cquest.org/geo_sirene</a>. This url is adapted depending - on version_insee.</p></li> -<li><p><b>version_insee</b> If value is "v2019", then the version 2019 is dowloaded from - <a href="http://data.cquest.org/geo_sirene" class="external-link">http://data.cquest.org/geo_sirene</a>.</p></li> +<p>If <code>origin == "cquest"</code>, then all necessary variables are filled with those values:</p><ul><li><p><b>origin</b> is changed to <a href="https://data.cquest.org/geo_sirene" class="external-link">https://data.cquest.org/geo_sirene</a>. This url is adapted depending +on version_insee.</p></li> +<li><p><b>version_insee</b> If value is "v2019", then the version 2019 is dowloaded from +<a href="https://data.cquest.org/geo_sirene" class="external-link">https://data.cquest.org/geo_sirene</a>.</p></li> <li><p><b>name</b> If version is not set to null, then default value is changed to "StockEtablissement_utf8", - which should be the most complete version at France level.</p></li> +which should be the most complete version at France level.</p></li> <li><p><b>extension</b> default value is changed to "csv.gz".</p></li> <li><p><b>month</b> is used to set something equivalent to date, but directly in origin.</p></li> <li><p><b>date</b> is set to null, because conflict may occur with month.</p></li> @@ -144,7 +147,7 @@ at default value. See details.</p></dd> <div id="ref-examples"> <h2>Examples</h2> <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span> -<span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"http://data.cquest.org/geo_sirene"</span></span> +<span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"https://data.cquest.org/geo_sirene"</span></span> <span class="r-in"><span class="va">destination</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/tempfile.html" class="external-link">tempdir</a></span><span class="op">(</span><span class="op">)</span></span> <span class="r-in"><span class="va">month</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"2018-11"</span>, <span class="st">"2019-05"</span>, <span class="st">"2020-03"</span><span class="op">)</span></span> <span class="r-in"><span class="fu">download.geo_sirene</span><span class="op">(</span><span class="va">origin</span>, <span class="va">destination</span>, month <span class="op">=</span> <span class="va">month</span><span class="op">)</span></span> diff --git a/docs/reference/download.insee.html b/docs/reference/download.insee.html index a8a87367797860786431b80feeaf69bd877d3669..d1c9d04bc6db41e1b49ddb2f01c63f98664287d5 100644 --- a/docs/reference/download.insee.html +++ b/docs/reference/download.insee.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/download.ppr.html b/docs/reference/download.ppr.html index 4ba5b7a4940943ad74744233b93653b95d48751d..394dcb1848aec4f35b5ef6bfe16339ed083c6af6 100644 --- a/docs/reference/download.ppr.html +++ b/docs/reference/download.ppr.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/download.rpg.html b/docs/reference/download.rpg.html index 44a65e770874a25fa537fe6d77fb761a4c30f7da..bd1850804fa000950f80923f55e44b2db1d798a1 100644 --- a/docs/reference/download.rpg.html +++ b/docs/reference/download.rpg.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -124,17 +127,17 @@ -<p>If <code>origin == "cquest"</code>, then all necessary variables are filled with those values:</p><ul><li><p><b>origin</b> is changed to <a href="http://data.cquest.org/registre_parcellaire_graphique" class="external-link">http://data.cquest.org/registre_parcellaire_graphique</a>. - This url is adapted depending on year.</p></li> +<p>If <code>origin == "cquest"</code>, then all necessary variables are filled with those values:</p><ul><li><p><b>origin</b> is changed to <a href="https://data.cquest.org/registre_parcellaire_graphique" class="external-link">https://data.cquest.org/registre_parcellaire_graphique</a>. +This url is adapted depending on year.</p></li> <li><p><b>extension</b> default value is changed to <code>c("zip", "7z")</code>.</p></li> <li><p><b>year</b> is used to set something equivalent to date, but directly in origin.</p></li> <li><p><b>date</b> is set to null, because conflict may occur with year.</p></li> </ul><p>If <code>origin == "IGN"</code>, then all necessary variables are filled with those values:</p><ul><li><p><b>origin</b> is changed to <a href="ftp://RPG_ext:quoojaicaiqu6ahD@ftp3.ign.fr">ftp://RPG_ext:quoojaicaiqu6ahD@ftp3.ign.fr</a>. - This url is adapted depending on year.</p></li> +This url is adapted depending on year.</p></li> <li><p><b>name</b> default value is set to "RPG".</p></li> <li><p><b>extension</b> default value is changed to <code>c("7z", "7z.001")</code>.</p></li> <li><p><b>year</b> may be used to set something equivalent to date, but directly in origin. - This should be only used for year 2010 and 2011. It is not used if year is something else.</p></li> +This should be only used for year 2010 and 2011. It is not used if year is something else.</p></li> <li><p><b>date</b> default value is set to "last". It is set to NULL if year is successfully used.</p></li> </ul><p>If not, everything shall be filled so that <code>download_archive</code> can make a successful download.</p> </div> diff --git a/docs/reference/download_admin_express.html b/docs/reference/download_admin_express.html new file mode 100644 index 0000000000000000000000000000000000000000..eddbee7c161a631650de9f85822d22025030ee7f --- /dev/null +++ b/docs/reference/download_admin_express.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Download Admin Express archives — download_admin_express • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Download Admin Express archives — download_admin_express"><meta property="og:description" content="Function used to downlaod Admin Express archives. The function has preset +options for its use with IGN website and data.cquest.org."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Download Admin Express archives</h1> + + <div class="hidden name"><code>download_admin_express.Rd</code></div> + </div> + + <div class="ref-description"> + <p>Function used to downlaod Admin Express archives. The function has preset +options for its use with IGN website and data.cquest.org.</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">download_admin_express</span><span class="op">(</span> + <span class="va">destination</span>, + origin <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"ign"</span>, <span class="st">"cquest"</span><span class="op">)</span>, + name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"ADMIN-EXPRESS-COG"</span>, <span class="st">"ADMIN-EXPRESS"</span>, <span class="st">"ADMIN-EXPRESS-COG-CARTO"</span><span class="op">)</span>, + extension <span class="op">=</span> <span class="st">"7z"</span>, + date <span class="op">=</span> <span class="st">"last"</span>, + version <span class="op">=</span> <span class="cn">NULL</span>, + verbose <span class="op">=</span> <span class="cn">TRUE</span> +<span class="op">)</span></code></pre></div> + </div> + + <div id="arguments"> + <h2>Arguments</h2> + <dl><dt>destination</dt> +<dd><p>character, the address where dara are stocked.</p></dd> +<dt>origin</dt> +<dd><p>character, a keyword or the address from where data are +downloaded.</p></dd> +<dt>name</dt> +<dd><p>character, vector of acceptable names fo archive to be +downloaded.</p></dd> +<dt>extension</dt> +<dd><p>character, vector of acceptable types of archive to be +downloaded.</p></dd> +<dt>date</dt> +<dd><p>character, date of the archive to be downloaded.</p></dd> +<dt>version</dt> +<dd><p>string, version of Admin Express to be downloaded.</p></dd> +<dt>verbose</dt> +<dd><p>logical, should the function send some messages while running.</p></dd> +</dl></div> + <div id="value"> + <h2>Value</h2> + <p>nothing</p> + </div> + <div id="details"> + <h2>Details</h2> + <p>If <code>origin == "ign"</code>, <b>origin</b> is set to +"https://geoservices.ign.fr/adminexpress"</p> +<p>If <code>origin == "cquest"</code>, <b>origin</b> is set to +"https://data.cquest.org/ign/adminexpress"</p> + </div> + + <div id="ref-examples"> + <h2>Examples</h2> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span> +<span class="r-in"><span class="va">destination</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/tempfile.html" class="external-link">tempdir</a></span><span class="op">(</span><span class="op">)</span></span> +<span class="r-in"><span class="fu">download_admin_express</span><span class="op">(</span><span class="va">destination</span>, version <span class="op">=</span> <span class="st">"MYT"</span><span class="op">)</span></span> +<span class="r-in"><span class="fu"><a href="https://rdrr.io/r/base/unlink.html" class="external-link">unlink</a></span><span class="op">(</span><span class="va">destination</span><span class="op">)</span></span> +<span class="r-in"><span class="op">}</span></span> +</code></pre></div> + </div> + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/download_archive.html b/docs/reference/download_archive.html index 08b93c2552e3cef98a50d93b02a6f909f5af6e91..b5d7c8b1cd9b0101c03b3ff9e0b124af451a0ba0 100644 --- a/docs/reference/download_archive.html +++ b/docs/reference/download_archive.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -130,21 +133,26 @@ downloads!</p> <div id="ref-examples"> <h2>Examples</h2> <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span> -<span class="r-in"><span class="va">to_do</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span></span> -<span class="r-in"> origin <span class="op">=</span> <span class="st">"http://data.cquest.org/registre_parcellaire_graphique/2018"</span>,</span> -<span class="r-in"> destination <span class="op">=</span> <span class="st">"temp/rpg"</span>,</span> +<span class="r-in"><span class="va">destination</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/tempfile.html" class="external-link">tempdir</a></span><span class="op">(</span><span class="op">)</span></span> +<span class="r-in"><span class="va">to_do_cquest</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span></span> +<span class="r-in"> origin <span class="op">=</span> <span class="st">"https://data.cquest.org/registre_parcellaire_graphique/2018"</span>,</span> +<span class="r-in"> destination <span class="op">=</span> <span class="va">destination</span>,</span> <span class="r-in"> short <span class="op">=</span> <span class="st">"rpg_cquest"</span>,</span> <span class="r-in"> stringsAsFactors <span class="op">=</span> <span class="cn">FALSE</span></span> <span class="r-in"><span class="op">)</span></span> -<span class="r-in"><span class="fu">download_archive</span><span class="op">(</span><span class="va">to_do</span>, version <span class="op">=</span> <span class="st">"D976"</span><span class="op">)</span></span> +<span class="r-in"><span class="fu">download_archive</span><span class="op">(</span><span class="va">to_do_cquest</span>, version <span class="op">=</span> <span class="st">"D976"</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span> <span class="r-in"></span> -<span class="r-in"><span class="va">to_do</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span></span> +<span class="r-in"><span class="va">to_do_ign</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span></span> <span class="r-in"> origin <span class="op">=</span> <span class="st">"https://geoservices.ign.fr/rpg"</span>,</span> -<span class="r-in"> destination <span class="op">=</span> <span class="st">"temp/rpg"</span>,</span> +<span class="r-in"> destination <span class="op">=</span> <span class="va">destination</span>,</span> <span class="r-in"> short <span class="op">=</span> <span class="st">"rpg_ign"</span>,</span> <span class="r-in"> stringsAsFactors <span class="op">=</span> <span class="cn">FALSE</span></span> <span class="r-in"><span class="op">)</span></span> -<span class="r-in"><span class="fu">download_archive</span><span class="op">(</span><span class="va">to_do</span>, version <span class="op">=</span> <span class="st">"D976"</span>, date <span class="op">=</span> <span class="st">"2020"</span><span class="op">)</span></span> +<span class="r-in"><span class="fu">download_archive</span><span class="op">(</span><span class="va">to_do_ign</span>, version <span class="op">=</span> <span class="st">"D976"</span>, date <span class="op">=</span> <span class="st">"2020"</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span> +<span class="r-in"><span class="fu">download_archive</span><span class="op">(</span><span class="va">to_do_ign</span>, version <span class="op">=</span> <span class="st">"D976"</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span> +<span class="r-in"></span> +<span class="r-in"><span class="va">to_do</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/cbind.html" class="external-link">rbind</a></span><span class="op">(</span><span class="va">to_do_cquest</span>, <span class="va">to_do_ign</span><span class="op">)</span></span> +<span class="r-in"><span class="fu">download_archive</span><span class="op">(</span><span class="va">to_do</span>, version <span class="op">=</span> <span class="st">"D976"</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span> <span class="r-in"><span class="op">}</span></span> </code></pre></div> </div> diff --git a/docs/reference/download_ban.html b/docs/reference/download_ban.html index 7bbba45d815cf574b529f98270c020e1268fb34f..9975af5180ba0a04916179cdb94af8817851be04 100644 --- a/docs/reference/download_ban.html +++ b/docs/reference/download_ban.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -129,23 +132,23 @@ <p>If <code>origin == "data.gouv"</code>, then all necessary variables are filled with those values:</p><ul><li><p><b>origin</b> is changed to - "https://adresse.data.gouv.fr/data/ban/adresses"</p></li> +"https://adresse.data.gouv.fr/data/ban/adresses"</p></li> <li><p><b>name</b> default value is changed to "adresses"</p></li> <li><p><b>extension</b> default value is changed to "csv.gz"</p></li> <li><p><b>date</b> default value is used to choose a given directory. If - date is null, then the most recent version is taken (equivalent to - "latest").</p></li> +date is null, then the most recent version is taken (equivalent to +"latest").</p></li> <li><p><b>version</b> must be something within "ban" or "bal". When "ban" - is used the file with one position per address is used. When "bal" is - used, the file with several position per address is used.</p></li> +is used the file with one position per address is used. When "bal" is +used, the file with several position per address is used.</p></li> <li><p><b>department</b> is used. Should be admissible French - departments (a formatting will be attempted with <code>format_scope</code>). - If NULL, region may be used. If both are NULL, all departments from - floodam.data::department will be used.</p></li> +departments (a formatting will be attempted with <code>format_scope</code>). +If NULL, region may be used. If both are NULL, all departments from +floodam.data::department will be used.</p></li> <li><p><b>region</b> may be used if department is null. Should be - admissible French regions (a formatting will be attempted with - <code>format_scope</code>). If region is given and department is NULL, all - departments from given region will be used.</p></li> +admissible French regions (a formatting will be attempted with +<code>format_scope</code>). If region is given and department is NULL, all +departments from given region will be used.</p></li> </ul><p>If not, everything shall be filled so that <code>download_archive</code> can make a successful download.</p> </div> diff --git a/docs/reference/download_bd_topo.html b/docs/reference/download_bd_topo.html index 7c592a75be077c0e016544ffc23a33c7ff452259..1695f5a8e29153fa07819d99ca2bc30d7efde90c 100644 --- a/docs/reference/download_bd_topo.html +++ b/docs/reference/download_bd_topo.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Download BD TOPO — download_bd_topo • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Download BD TOPO — download_bd_topo"><meta property="og:description" content="Function used to downlaod BD TOPO. It is a wrapper to +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Download BD TOPO — download_bd_topo • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Download BD TOPO — download_bd_topo"><meta property="og:description" content="Function used to downlaod BD TOPO. It is a wrapper to download_archive, that helps getting everything fine toi download aimed archive of BD TOPO from IGN websites."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> @@ -19,7 +19,7 @@ aimed archive of BD TOPO from IGN websites."><meta property="og:image" content=" </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ aimed archive of BD TOPO from IGN websites."><meta property="og:image" content=" </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -82,7 +85,7 @@ aimed archive of BD TOPO from IGN websites."><meta property="og:image" content=" </div> <div class="ref-description"> - <p>Function used to downlaod BD TOPO. It is a wrapper to + <p>Function used to downlaod BD TOPO. It is a wrapper to <code>download_archive</code>, that helps getting everything fine toi download aimed archive of BD TOPO from IGN websites.</p> </div> diff --git a/docs/reference/download_gaspar.html b/docs/reference/download_gaspar.html index c63243e34de98a99ef4101a768f197b12f14ad8e..46558243eee86eda24a43544e6332720a63389c0 100644 --- a/docs/reference/download_gaspar.html +++ b/docs/reference/download_gaspar.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -113,17 +116,17 @@ running</p></dd> <div id="value"> <h2>Value</h2> <p>If everything got fine the <code>download_gaspar</code> returns the - integer 0, if not it returns an object of class "try-error".</p> +integer 0, if not it returns an object of class "try-error".</p> </div> <div id="details"> <h2>Details</h2> <p>The origin of the data is set by default to - <a href="https://files.georisques.fr" class="external-link">https://files.georisques.fr</a>. It can also be downloaded from - "cquest" and "opendatarchives" mirrors.</p> +<a href="https://files.georisques.fr" class="external-link">https://files.georisques.fr</a>. It can also be downloaded from +"cquest" and "opendatarchives" mirrors.</p> <p>The georisques provider gives no indication of the time of the update of - gaspar db. So, if origin does not contain an indication of current day - in the format "%Y-%m-%d", this information will be appended to - destination as a subirectory of destination.</p> +gaspar db. So, if origin does not contain an indication of current day +in the format "\<!-- %Y-\\%m-\\%d", this information will be appended to --> +destination as a subirectory of destination.</p> <p>The destination directory will be created by the function, if missing.</p> </div> diff --git a/docs/reference/eaip_variable.html b/docs/reference/eaip_variable.html index d188841a06d58b243c2115ce77f59c5e438a93e5..3c459139169ab6d76940de8913af8208a6ee2b4a 100644 --- a/docs/reference/eaip_variable.html +++ b/docs/reference/eaip_variable.html @@ -1,7 +1,7 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Variables kept in EAIP — eaip_variable • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Variables kept in EAIP — eaip_variable"><meta property="og:description" content="This dataset controls what variables are kept when applying adapt.eaip. +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Variables kept in EAIP — eaip_variable • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Variables kept in EAIP — eaip_variable"><meta property="og:description" content="This dataset controls which variables are kept when applying adapt.eaip. The choice of the variables has been made by inspecting all EAIP shapefiles, -and by keeping most common variables inside, removing variables without added +and by keeping most common variables inside, removing variables without added information (such as R, V, B)."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -20,7 +20,7 @@ information (such as R, V, B)."><meta property="og:image" content="/logo.png"><! </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -46,6 +46,9 @@ information (such as R, V, B)."><meta property="og:image" content="/logo.png"><! </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -83,9 +86,9 @@ information (such as R, V, B)."><meta property="og:image" content="/logo.png"><! </div> <div class="ref-description"> - <p>This dataset controls what variables are kept when applying adapt.eaip. + <p>This dataset controls which variables are kept when applying adapt.eaip. The choice of the variables has been made by inspecting all EAIP shapefiles, -and by keeping most common variables inside, removing variables without added +and by keeping most common variables inside, removing variables without added information (such as R, V, B).</p> </div> diff --git a/docs/reference/extract.stat.log.html b/docs/reference/extract.stat.log.html index 7b1cdb0bff5d7b49933b79e3b37cfeacfd43ee99..23ad156a30d76e8aeb823436d4724011365393ea 100644 --- a/docs/reference/extract.stat.log.html +++ b/docs/reference/extract.stat.log.html @@ -18,7 +18,7 @@ data.frame. This function gives also the possibility to save those data.frame di </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ data.frame. This function gives also the possibility to save those data.frame di </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/extract_building.html b/docs/reference/extract_building.html index 452ad7257a74ce4099592c52e7585c3af57c7499..04f4b31e1b516f9709fcbd59fd16e9f7f03cae91 100644 --- a/docs/reference/extract_building.html +++ b/docs/reference/extract_building.html @@ -26,7 +26,7 @@ Result is saved according to 'destination' path."><meta property="og:image" cont </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -52,6 +52,9 @@ Result is saved according to 'destination' path."><meta property="og:image" cont </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/extract_building_agricultural.html b/docs/reference/extract_building_agricultural.html index 39277fd58182897b1c569f21d4ac3ad87bb27ce8..3c5f1a030d00ec80b6ddb3aebaa9e1625a27d75e 100644 --- a/docs/reference/extract_building_agricultural.html +++ b/docs/reference/extract_building_agricultural.html @@ -19,7 +19,7 @@ to agricultural buildings from an sf object that should come from </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ to agricultural buildings from an sf object that should come from </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/extract_dwelling.html b/docs/reference/extract_dwelling.html index 081dcaf985775abf67b5ae31c13ccc3449d2b74c..ea527f150421c7db98591d006888a3d4cde5452e 100644 --- a/docs/reference/extract_dwelling.html +++ b/docs/reference/extract_dwelling.html @@ -18,7 +18,7 @@ from an sf object that should come from 'extract_building' use."><meta property= </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ from an sf object that should come from 'extract_building' use."><meta property= </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/fmt.html b/docs/reference/fmt.html index 8b7054df8634dd312d1572deae3364f3b7e97407..92a75579022fd7addc3e32db6a8a2f066a5e0730 100644 --- a/docs/reference/fmt.html +++ b/docs/reference/fmt.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/format_archive.html b/docs/reference/format_archive.html new file mode 100644 index 0000000000000000000000000000000000000000..340cd083c2b9dce9944c90a859d1a4f3f5fb6305 --- /dev/null +++ b/docs/reference/format_archive.html @@ -0,0 +1,188 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Format name of archives to be consistent and predictible — format_archive • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Format name of archives to be consistent and predictible — format_archive"><meta property="og:description" content="format_archive creates formatted names for archives given some +informations on the data contained in archives and the type of format aimed +at. +It can be as the reciprocal function of +analyse_archive()."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Format name of archives to be consistent and predictible</h1> + + <div class="hidden name"><code>format_archive.Rd</code></div> + </div> + + <div class="ref-description"> + <p><code>format_archive</code> creates formatted names for archives given some +informations on the data contained in archives and the type of format aimed +at.</p> +<p>It can be as the reciprocal function of +<code><a href="analyse_archive.html">analyse_archive()</a></code>.</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">format_archive</span><span class="op">(</span><span class="va">x</span>, <span class="va">extension</span>, origin <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"floodam.data"</span>, <span class="st">"ign"</span>, <span class="st">"version"</span><span class="op">)</span><span class="op">)</span></code></pre></div> + </div> + + <div id="arguments"> + <h2>Arguments</h2> + <dl><dt>x</dt> +<dd><p>character, a named character.</p></dd> +<dt>extension</dt> +<dd><p>character, if given, it will overrule what is in x.</p></dd> +<dt>origin</dt> +<dd><p>character, default value to "floodam.data". See details.</p></dd> +</dl></div> + <div id="value"> + <h2>Value</h2> + <p>A vector of formatted names.</p> + </div> + <div id="details"> + <h2>Details</h2> + <p><code>x</code> should be a named character where informations used for formatting +the result ar stored. If some informations are missing, basically NA will be +used, and those NA will be post-treated depending on origin.</p> +<p>If origin is "floodam.data", <code>format_archive</code> returns archive names +formatted with this general scheme: data_precision_scope_date. Missing +informations in <code>x</code> produce an adaptation of the scheme. For instance, +if nothing is given for "scope" in x or if x["scope"] is "NA", the resulting +scheme will be data_precision_date.</p> +<p>If origin is "ign", <code>format_archive</code> returns names formatted with +this scheme: data-type_version_precision_format_projection_scope_date. +Missing informations in <code>x</code> are replaced by "".</p> +<p>If origin is "version", <code>format_archive</code> returns names formatted with +this scheme: version_precision_format_projection_scope. Missing informations +in <code>x</code> are replaced by ".*". No extension information is used.</p> +<p>If extension is given, the extension is added to be name produced. I no +extension is given, x["extension"] will be used if not NA.</p> + </div> + <div id="see-also"> + <h2>See also</h2> + <div class="dont-index"><p><code><a href="analyse_archive.html">analyse_archive()</a></code></p></div> + </div> + <div id="author"> + <h2>Author</h2> + <p>Frédéric Grelot</p> + </div> + + <div id="ref-examples"> + <h2>Examples</h2> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="va">archive</span> <span class="op">=</span> <span class="st">"ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z"</span></span> +<span class="r-in"><span class="va">x</span> <span class="op">=</span> <span class="fu"><a href="analyse_archive.html">analyse_archive</a></span><span class="op">(</span><span class="va">archive</span><span class="op">)</span></span> +<span class="r-in"></span> +<span class="r-in"><span class="fu">format_archive</span><span class="op">(</span><span class="va">x</span>, origin <span class="op">=</span> <span class="st">"ign"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z"</span> +<span class="r-in"><span class="va">archive</span> <span class="op">==</span> <span class="fu">format_archive</span><span class="op">(</span><span class="va">x</span>, origin <span class="op">=</span> <span class="st">"ign"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] TRUE</span> +<span class="r-in"></span> +<span class="r-in"><span class="fu">format_archive</span><span class="op">(</span><span class="va">x</span>, extension <span class="op">=</span> <span class="st">"rds"</span>, origin <span class="op">=</span> <span class="st">"ign"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.rds"</span> +<span class="r-in"><span class="fu">format_archive</span><span class="op">(</span><span class="va">x</span>, extension <span class="op">=</span> <span class="st">"rds"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "admin-express-cog_2022-04-15.rds"</span> +<span class="r-in"><span class="va">x</span><span class="op">[</span><span class="st">"precision"</span><span class="op">]</span> <span class="op">=</span> <span class="st">"commune"</span></span> +<span class="r-in"><span class="va">x</span><span class="op">[</span><span class="st">"scope"</span><span class="op">]</span> <span class="op">=</span> <span class="st">"D972"</span></span> +<span class="r-in"><span class="fu">format_archive</span><span class="op">(</span><span class="va">x</span>, extension <span class="op">=</span> <span class="st">"rds"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] "admin-express-cog_commune_D972_2022-04-15.rds"</span> +<span class="r-in"></span> +<span class="r-in"><span class="fu">format_archive</span><span class="op">(</span>origin <span class="op">=</span> <span class="st">"version"</span><span class="op">)</span></span> +<span class="r-out co"><span class="r-pr">#></span> [1] ".*_.*_.*_.*_.*"</span> +</code></pre></div> + </div> + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/format_scope.html b/docs/reference/format_scope.html index 50a6f5d4c0b90da71cae1c4d4b79931927d24174..52baf5763ea4caa4ba32a45c53f1e59caa6cc7b7 100644 --- a/docs/reference/format_scope.html +++ b/docs/reference/format_scope.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/generate_report.html b/docs/reference/generate_report.html index 67a72f990ac1d7615569ce0794e92916f3488731..877758fe5eab5b85d25ea83efdfdc0dd4ccc7466 100644 --- a/docs/reference/generate_report.html +++ b/docs/reference/generate_report.html @@ -18,7 +18,7 @@ for dwelling extracted from BD Topo."><meta property="og:image" content="/logo.p </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ for dwelling extracted from BD Topo."><meta property="og:image" content="/logo.p </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -102,7 +105,7 @@ for dwelling extracted from BD Topo.</p> <dl><dt>origin</dt> <dd><p>character, path to the directory where archive are stored.</p></dd> <dt>destination</dt> -<dd><p>character, path to the directory where output should be +<dd><p>character, path to the directory where output should be saved.</p></dd> <dt>archive</dt> <dd><p>either a list with the information to display in the report or diff --git a/docs/reference/get_archive.html b/docs/reference/get_archive.html index 62713a5d1a14826304e8f12c78d6fbf734b5fa54..49c0804b2f01a47d89bf3280de561b478788390f 100644 --- a/docs/reference/get_archive.html +++ b/docs/reference/get_archive.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -121,21 +124,18 @@ matching with given constraints.</p> </div> <div id="details"> <h2>Details</h2> - - - -<p>First, a regex search is made to find in x names enclosed in href="name" or + <p>First, a regex search is made to find in x names enclosed in href="name" or href='name'.</p> <p><code>extension</code> may contain different possibilities. It will be matches at the end of archives' names. This may lead to an empty character as result.</p> <p><code>name</code> may contain different possibilities. It will be matched at the beginning of archives' names. This may lead to an empty character as result.</p> <p><code>date</code> may contain either "last", and so anything that can be considered -as a date in archives' names ("%Y", "%Y-%m", "%Y-%m-%d") is matched +as a date in archives' names ("\<!-- %Y", "\\%Y-\\%m", "\\%Y-\\%m-\\%d") is matched --> against and the max is taken. If nothing matches, all archives' names are kept. codedate may also contain anything admissible for codecreate_date. -If so, anything that can be considered as a date in archives' names ("%Y", -"%Y-%m", "%Y-%m-%d") is matched against, and only archives' names whose +If so, anything that can be considered as a date in archives' names ("\<!-- %Y", --> +"\<!-- %Y-\\%m", "\\%Y-\\%m-\\%d") is matched against, and only archives' names whose --> date pertain to <code>create_date(date)</code> are kept, possibly nothing.</p> <p><code>version</code> may contain different possibilities. Il will be matched anywhere in archives' names. This may lead an empty character as result.</p> @@ -146,155 +146,32 @@ links finishing by "\" are looked after.</p> <div id="ref-examples"> <h2>Examples</h2> <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"></span> +<span class="r-in"><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span> <span class="r-in"><span class="co"># RPG archive for year 2010 in data.cquest.org</span></span> -<span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"http://data.cquest.org/registre_parcellaire_graphique/2010"</span></span> +<span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"https://data.cquest.org/registre_parcellaire_graphique/2010"</span></span> <span class="r-in"><span class="va">file_list</span> <span class="op">=</span> <span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span><span class="op">)</span></span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span><span class="op">)</span></span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span>, version <span class="op">=</span> <span class="st">"34"</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2010_034.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2010/RPG_2010_034.zip" </span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span>, version <span class="op">=</span> <span class="fl">30</span><span class="op">:</span><span class="fl">35</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2010_030.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2010/RPG_2010_030.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2010_031.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2010/RPG_2010_031.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2010_032.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2010/RPG_2010_032.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2010_033.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2010/RPG_2010_033.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2010_034.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2010/RPG_2010_034.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2010_035.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2010/RPG_2010_035.zip" </span> <span class="r-in"></span> <span class="r-in"><span class="co"># All RPG archives for any year for region "Occitanie" in data.cquest.org</span></span> <span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="fu">get_archive</span><span class="op">(</span></span> -<span class="r-in"> <span class="st">"http://data.cquest.org/registre_parcellaire_graphique"</span>,</span> +<span class="r-in"> <span class="st">"https://data.cquest.org/registre_parcellaire_graphique"</span>,</span> <span class="r-in"> directory <span class="op">=</span> <span class="cn">TRUE</span></span> <span class="r-in"><span class="op">)</span></span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span>, version <span class="op">=</span> <span class="st">"R76"</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> RPG_1-0_SHP_LAMB93_R76-2013.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2013/RPG_1-0_SHP_LAMB93_R76-2013.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2-0_SHP_LAMB93_R76-2015-ILOTS.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2015/RPG_2-0_SHP_LAMB93_R76-2015-ILOTS.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2-0_SHP_LAMB93_R76-2015-PARCELLES.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2015/RPG_2-0_SHP_LAMB93_R76-2015-PARCELLES.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2-0_SHP_LAMB93_R76-2016-ILOTS.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2016/RPG_2-0_SHP_LAMB93_R76-2016-ILOTS.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2-0_SHP_LAMB93_R76-2016-PARCELLES.zip </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2016/RPG_2-0_SHP_LAMB93_R76-2016-PARCELLES.zip" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2-0__SHP_LAMB93_R76-2018_2018-01-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2018/RPG_2-0__SHP_LAMB93_R76-2018_2018-01-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2-0__SHP_LAMB93_R76-2019_2019-01-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2019/RPG_2-0__SHP_LAMB93_R76-2019_2019-01-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> RPG_2-0__SHP_LAMB93_R76_2020-01-01.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/registre_parcellaire_graphique/2020/RPG_2-0__SHP_LAMB93_R76_2020-01-01.7z" </span> <span class="r-in"></span> <span class="r-in"><span class="co"># "geo_siret" archives in data.cquest.org</span></span> -<span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"http://data.cquest.org/geo_sirene/v2019/last/dep"</span></span> +<span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"https://data.cquest.org/geo_sirene/v2019/last/dep"</span></span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span>, <span class="st">"gz"</span>, <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"geo_siret_34"</span>, <span class="st">"geo_siret_83"</span><span class="op">)</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> named character(0)</span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span>, <span class="st">"gz"</span>, <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"geo_siret"</span><span class="op">)</span>, version <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"34"</span>, <span class="st">"83"</span><span class="op">)</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> geo_siret_34.csv.gz </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/geo_sirene/v2019/last/dep/geo_siret_34.csv.gz" </span> -<span class="r-out co"><span class="r-pr">#></span> geo_siret_83.csv.gz </span> -<span class="r-out co"><span class="r-pr">#></span> "http://data.cquest.org/geo_sirene/v2019/last/dep/geo_siret_83.csv.gz" </span> <span class="r-in"></span> <span class="r-in"><span class="co"># "ADMIN EXPRESS" archives in ign</span></span> <span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"https://geoservices.ign.fr/adminexpress"</span></span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span>, <span class="st">"7z"</span>, <span class="st">"ADMIN-EXPRESS-COG"</span>, date <span class="op">=</span> <span class="st">"last"</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FXX_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS-COG_SHP_TERRITOIRES_PACK_2022-04-15$ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FXX_2022-04-15/file/ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FXX_2022-04-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS-COG_SHP_TERRITOIRES_PACK_2022-04-15$ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15/file/ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_MTQ_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS-COG_SHP_TERRITOIRES_PACK_2022-04-15$ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_MTQ_2022-04-15/file/ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_MTQ_2022-04-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_UTM22RGFG95_GUF_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS-COG_SHP_TERRITOIRES_PACK_2022-04-15$ADMIN-EXPRESS-COG_3-1__SHP_UTM22RGFG95_GUF_2022-04-15/file/ADMIN-EXPRESS-COG_3-1__SHP_UTM22RGFG95_GUF_2022-04-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_RGR92UTM40S_REU_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS-COG_SHP_TERRITOIRES_PACK_2022-04-15$ADMIN-EXPRESS-COG_3-1__SHP_RGR92UTM40S_REU_2022-04-15/file/ADMIN-EXPRESS-COG_3-1__SHP_RGR92UTM40S_REU_2022-04-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_RGM04UTM38S_MYT_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS-COG_SHP_TERRITOIRES_PACK_2022-04-15$ADMIN-EXPRESS-COG_3-1__SHP_RGM04UTM38S_MYT_2022-04-15/file/ADMIN-EXPRESS-COG_3-1__SHP_RGM04UTM38S_MYT_2022-04-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_WGS84G_FRA_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS-COG_SHP_WGS84G_PACK_2022-04-15$ADMIN-EXPRESS-COG_3-1__SHP_WGS84G_FRA_2022-04-15/file/ADMIN-EXPRESS-COG_3-1__SHP_WGS84G_FRA_2022-04-15.7z" </span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span>, <span class="st">"7z"</span>, <span class="st">"ADMIN-EXPRESS-COG"</span>, version <span class="op">=</span> <span class="st">"FRA"</span>, date <span class="op">=</span> <span class="st">"last"</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS-COG_3-1__SHP_WGS84G_FRA_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS-COG_SHP_WGS84G_PACK_2022-04-15$ADMIN-EXPRESS-COG_3-1__SHP_WGS84G_FRA_2022-04-15/file/ADMIN-EXPRESS-COG_3-1__SHP_WGS84G_FRA_2022-04-15.7z" </span> <span class="r-in"><span class="fu">get_archive</span><span class="op">(</span><span class="va">origin</span>, <span class="st">"7z"</span>, <span class="st">"ADMIN-EXPRESS"</span>, date <span class="op">=</span> <span class="fl">2021</span><span class="op">:</span><span class="fl">2022</span><span class="op">)</span></span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-12-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-12-20$ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-12-20/file/ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-12-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-12-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-12-20$ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-12-20/file/ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-12-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-12-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-12-20$ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-12-20/file/ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-12-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-12-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-12-20$ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-12-20/file/ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-12-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-12-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-12-20$ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-12-20/file/ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-12-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-12-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-12-20$ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-12-20/file/ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-12-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-12-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-12-20$ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-12-20/file/ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-12-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-11-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-11-21$ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-11-21/file/ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-11-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-11-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-11-21$ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-11-21/file/ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-11-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-11-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-11-21$ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-11-21/file/ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-11-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-11-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-11-21$ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-11-21/file/ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-11-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-11-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-11-21$ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-11-21/file/ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-11-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-11-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-11-21$ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-11-21/file/ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-11-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-11-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-11-21$ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-11-21/file/ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-11-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-10-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-10-17$ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-10-17/file/ADMIN-EXPRESS_3-1__SHP_LAMB93_FXX_2022-10-17.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-10-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-10-17$ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-10-17/file/ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_GLP_2022-10-17.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-10-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-10-17$ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-10-17/file/ADMIN-EXPRESS_3-1__SHP_RGAF09UTM20_MTQ_2022-10-17.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-10-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-10-17$ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-10-17/file/ADMIN-EXPRESS_3-1__SHP_UTM22RGFG95_GUF_2022-10-17.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-10-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-10-17$ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-10-17/file/ADMIN-EXPRESS_3-1__SHP_RGR92UTM40S_REU_2022-10-17.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-10-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-10-17$ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-10-17/file/ADMIN-EXPRESS_3-1__SHP_RGM04UTM38S_MYT_2022-10-17.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-10-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-10-17$ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-10-17/file/ADMIN-EXPRESS_3-1__SHP_WGS84G_FRA_2022-10-17.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-09-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-09-20$ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-09-20/file/ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-09-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-09-20.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-09-20$ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-09-20/file/ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-09-20.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-08-30.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-08-30$ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-08-30/file/ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-08-30.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-08-30.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-08-30$ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-08-30/file/ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-08-30.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-07-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-07-21$ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-07-21/file/ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-07-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-07-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-07-21$ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-07-21/file/ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-07-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-06-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-06-21$ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-06-21/file/ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-06-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-06-21.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-06-21$ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-06-21/file/ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-06-21.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-05-18.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-05-18$ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-05-18/file/ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-05-18.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-05-18.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-05-18$ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-05-18/file/ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-05-18.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-04-15$ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-04-15/file/ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-04-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-04-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-04-15$ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-04-15/file/ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-04-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-03-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-03-15$ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-03-15/file/ADMIN-EXPRESS_3-1__SHP__FRA_L93_2022-03-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-03-15.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-03-15$ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-03-15/file/ADMIN-EXPRESS_3-1__SHP__FRA_WM_2022-03-15.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_2022-02-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_TERRITOIRES_PACK_2022-02-17$ADMIN-EXPRESS_3-1__SHP__FRA_2022-02-17/file/ADMIN-EXPRESS_3-1__SHP__FRA_2022-02-17.7z" </span> -<span class="r-out co"><span class="r-pr">#></span> ADMIN-EXPRESS_3-1__SHP__FRA_2022-02-17.7z </span> -<span class="r-out co"><span class="r-pr">#></span> "https://wxs.ign.fr/x02uy2aiwjo9bm8ce5plwqmr/telechargement/prepackage/ADMINEXPRESS_SHP_WGS84G_PACK_2022-02-17$ADMIN-EXPRESS_3-1__SHP__FRA_2022-02-17/file/ADMIN-EXPRESS_3-1__SHP__FRA_2022-02-17.7z" </span> +<span class="r-in"><span class="op">}</span></span> </code></pre></div> </div> </div> diff --git a/docs/reference/gpkg_from_7z.html b/docs/reference/gpkg_from_7z.html index 908b5466261b9858df84082f795d335f99ae46fd..4251ecbe6b1f05c2804e0f9ac3b82fe27f072716 100644 --- a/docs/reference/gpkg_from_7z.html +++ b/docs/reference/gpkg_from_7z.html @@ -18,7 +18,7 @@ archive. It looks specifically for a gkpg file inside the 7z archive."><meta pro </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ archive. It looks specifically for a gkpg file inside the 7z archive."><meta pro </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/in_layer.html b/docs/reference/in_layer.html index d18b843aca1228b6becd611ac1b87c5f2eddb47e..42775693e52f364bb9fc9001841cfd2d451d7dfa 100644 --- a/docs/reference/in_layer.html +++ b/docs/reference/in_layer.html @@ -18,7 +18,7 @@ geometry in 'y'."><meta property="og:image" content="/logo.png"><!-- mathjax --> </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ geometry in 'y'."><meta property="og:image" content="/logo.png"><!-- mathjax --> </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/index.html b/docs/reference/index.html index 962587c83f77799c1f07304f049cfee815254226..59ed87c688f72af050a583ea6ef187b5fd6c5227 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -82,10 +85,6 @@ <p class="section-desc"></p> </th> </tr></tbody><tbody><tr><td> - <p><code><a href="adapt.admin_express.html">adapt.admin_express()</a></code> </p> - </td> - <td><p>Adapt ADMIN EXPRESS data</p></td> - </tr><tr><td> <p><code><a href="adapt.eaip.html">adapt.eaip()</a></code> </p> </td> <td><p>Adapt eaip data</p></td> @@ -93,6 +92,10 @@ <p><code><a href="adapt.geo_sirene.html">adapt.geo_sirene()</a></code> </p> </td> <td><p>Adapt sirene data</p></td> + </tr><tr><td> + <p><code><a href="adapt_admin_express.html">adapt_admin_express()</a></code> </p> + </td> + <td><p>Adapt Admin Express archives</p></td> </tr><tr><td> <p><code><a href="adapt_ban.html">adapt_ban()</a></code> </p> </td> @@ -112,11 +115,11 @@ </tr><tr><td> <p><code><a href="add_journal.html">add_journal()</a></code> </p> </td> - <td><p>Add information to a journal</p></td> + <td><p>Manage a journal for follow-up of tasks</p></td> </tr><tr><td> - <p><code><a href="add_journal_new.html">add_journal_new()</a></code> </p> + <p><code><a href="add_journal_old.html">add_journal_old()</a></code> </p> </td> - <td><p>Manage a journal for follow-up of tasks</p></td> + <td><p>Add information to a journal</p></td> </tr><tr><td> <p><code><a href="add_log_info.html">add_log_info()</a></code> </p> </td> @@ -133,6 +136,10 @@ <p><code><a href="alert_mattermost.html">alert_mattermost()</a></code> </p> </td> <td><p>Alert a mattermost server of something</p></td> + </tr><tr><td> + <p><code><a href="analyse_archive.html">analyse_archive()</a></code> </p> + </td> + <td><p>Analyse names of archive to get useful infomations.</p></td> </tr><tr><td> <p><code><a href="analyse_catnat.html">analyse_catnat()</a></code> </p> </td> @@ -157,6 +164,10 @@ <p><code><a href="apply_scheme.html">apply_scheme()</a></code> </p> </td> <td><p>Apply a scheme to data</p></td> + </tr><tr><td> + <p><code><a href="basename_extended.html">basename_core()</a></code> <code><a href="basename_extended.html">basename_ext()</a></code> </p> + </td> + <td><p>Utilities enhancing basename()</p></td> </tr><tr><td> <p><code><a href="bd_topo_nature_reclass.html">bd_topo_nature_reclass</a></code> </p> </td> @@ -176,7 +187,7 @@ </tr><tr><td> <p><code><a href="catnat_classification.html">catnat_classification</a></code> </p> </td> - <td><p>Classification of hazards events in catnat (gaspar DB)</p></td> + <td><p>Classification of hazard events in catnat (gaspar DB)</p></td> </tr><tr><td> <p><code><a href="commune_so_ii.html">commune_so_ii</a></code> </p> </td> @@ -201,10 +212,6 @@ <p><code><a href="department.html">department</a></code> </p> </td> <td><p>Region definition in France</p></td> - </tr><tr><td> - <p><code><a href="download.admin_express.html">download.admin_express()</a></code> </p> - </td> - <td><p>Download ADMIN EXPRESS</p></td> </tr><tr><td> <p><code><a href="download.geo_sirene.html">download.geo_sirene()</a></code> </p> </td> @@ -221,6 +228,10 @@ <p><code><a href="download.rpg.html">download.rpg()</a></code> </p> </td> <td><p>Download RPG</p></td> + </tr><tr><td> + <p><code><a href="download_admin_express.html">download_admin_express()</a></code> </p> + </td> + <td><p>Download Admin Express archives</p></td> </tr><tr><td> <p><code><a href="download_archive.html">download_archive()</a></code> </p> </td> @@ -261,6 +272,10 @@ <p><code><a href="fmt.html">fmt()</a></code> </p> </td> <td><p>Format difftime in a convenient way</p></td> + </tr><tr><td> + <p><code><a href="format_archive.html">format_archive()</a></code> </p> + </td> + <td><p>Format name of archives to be consistent and predictible</p></td> </tr><tr><td> <p><code><a href="format_scope.html">format_scope()</a></code> </p> </td> @@ -288,7 +303,7 @@ </tr><tr><td> <p><code><a href="naf_esane.html">naf_esane</a></code> </p> </td> - <td><p>Typology of activities withh additional informations</p></td> + <td><p>Typology of activities with additional information</p></td> </tr><tr><td> <p><code><a href="naf_label.html">naf_label</a></code> </p> </td> @@ -304,12 +319,12 @@ </tr><tr><td> <p><code><a href="plot_construction_date.html">plot_construction_date()</a></code> </p> </td> - <td><p>plot of the construction dates of buildings in the context of the + <td><p>plot of the construction dates of buildings in the context of the BD-Topo v3</p></td> </tr><tr><td> <p><code><a href="pprn_classification.html">pprn_classification</a></code> </p> </td> - <td><p>Classification of hazards events in pprn (gaspar DB)</p></td> + <td><p>Classification of hazard events in pprn (gaspar DB)</p></td> </tr><tr><td> <p><code><a href="prepare.stat.log.html">prepare.stat.log()</a></code> </p> </td> @@ -325,12 +340,12 @@ BD-Topo v3</p></td> </tr><tr><td> <p><code><a href="qq_developed_dwelling.html">qq_developed_dwelling()</a></code> </p> </td> - <td><p>qq plot of the building's developed surface versus the building's + <td><p>qq plot of the building's developed surface versus the building's dwellings in the context of the BD-Topo v3</p></td> </tr><tr><td> <p><code><a href="qq_height_level.html">qq_height_level()</a></code> </p> </td> - <td><p>qq plot of building heights versus building storeys in the context of + <td><p>qq plot of building heights versus building storeys in the context of the BD-Topo v3</p></td> </tr><tr><td> <p><code><a href="read_format_rds.html">read_format_rds()</a></code> </p> @@ -345,25 +360,33 @@ the BD-Topo v3</p></td> </td> <td><p>Read all text lines from an url</p></td> </tr><tr><td> - <p><code><a href="read_with_scheme.html">read_with_scheme()</a></code> </p> + <p><code><a href="read_with_scheme.html">read_with_scheme()</a></code> <code><a href="read_with_scheme.html">read_csv_with_scheme()</a></code> <code><a href="read_with_scheme.html">read_shp_with_scheme()</a></code> <code><a href="read_with_scheme.html">read_gpkg_with_scheme()</a></code> <code><a href="read_with_scheme.html">read_shp_from_7z()</a></code> <code><a href="read_with_scheme.html">read_gpkg_from_7z()</a></code> </p> </td> - <td><p>Read tabular data with a scheme</p></td> + <td><p>Read data with a scheme</p></td> </tr><tr><td> <p><code><a href="region.html">region</a></code> </p> </td> <td><p>Region definition in France</p></td> </tr><tr><td> - <p><code><a href="scheme_admin_express.html">scheme_admin_express</a></code> </p> + <p><code><a href="save_archive.html">save_archive()</a></code> </p> + </td> + <td><p>Save an archive in a formatted way</p></td> + </tr><tr><td> + <p><code><a href="scheme_admin_express_2_0.html">scheme_admin_express_2_0</a></code> </p> + </td> + <td><p>Information on the variables of Admin Express version 2-0</p></td> + </tr><tr><td> + <p><code><a href="scheme_admin_express_3_1.html">scheme_admin_express_3_1</a></code> </p> </td> - <td><p>Informations on the variables of ADMIN EXPRESS version 2.0</p></td> + <td><p>Information on the variables of Admin Express version 3-1</p></td> </tr><tr><td> <p><code><a href="scheme_ban.html">scheme_ban</a></code> </p> </td> - <td><p>Informations on the variables of BAN</p></td> + <td><p>Information on the variables of BAN</p></td> </tr><tr><td> <p><code><a href="scheme_bd_topo_3.html">scheme_bd_topo_3</a></code> </p> </td> - <td><p>Informations on the variables of BD TOPO version 3.0</p></td> + <td><p>Information on the variables of BD TOPO version 3.0</p></td> </tr><tr><td> <p><code><a href="scheme_gaspar_azi.html">scheme_gaspar_azi</a></code> </p> </td> @@ -383,23 +406,24 @@ the BD-Topo v3</p></td> </tr><tr><td> <p><code><a href="scheme_insee_logement_2019.html">scheme_insee_logement_2019</a></code> </p> </td> - <td><p>Informations on the variables of the series 'Logements (France hors Mayotte)' from the INSEE</p></td> + <td><p>Informations on the variables of the series 'Logements (France hors Mayotte)' +from the INSEE</p></td> </tr><tr><td> <p><code><a href="scheme_rpg_1.html">scheme_rpg_1</a></code> </p> </td> - <td><p>Informations on the variables of RPG version 1.0</p></td> + <td><p>Information on the variables of RPG version 1.0</p></td> </tr><tr><td> <p><code><a href="scheme_rpg_2.html">scheme_rpg_2</a></code> </p> </td> - <td><p>Informations on the variables of RPG version 2.0</p></td> + <td><p>Information on the variables of RPG version 2.0</p></td> </tr><tr><td> <p><code><a href="scheme_sirene_2019.html">scheme_sirene_2019</a></code> </p> </td> - <td><p>Informations on the variables of geolocalized sirene data</p></td> + <td><p>Information on the variables of geolocalized sirene data</p></td> </tr><tr><td> <p><code><a href="scheme_sirene_na.html">scheme_sirene_na</a></code> </p> </td> - <td><p>Informations on na.value in geolocalized sirene data</p></td> + <td><p>Information on na.value in geolocalized sirene data</p></td> </tr><tr><td> <p><code><a href="send_message.html">send_message()</a></code> </p> </td> diff --git a/docs/reference/nace_label.html b/docs/reference/nace_label.html index 8ea119f5f8eac2f7fc20caf87ce9c370595bb499..0c628a79964042a4ad90fa35cd5f99849a9f4b2d 100644 --- a/docs/reference/nace_label.html +++ b/docs/reference/nace_label.html @@ -1,6 +1,6 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Label coming from NACE typology — nace_label • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Label coming from NACE typology — nace_label"><meta property="og:description" content="A dataset containing the label (currently in English an French) corresponding -with the NACE typology of activities at levels 1 to 4 incldued."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Label coming from NACE typology — nace_label • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Label coming from NACE typology — nace_label"><meta property="og:description" content="A dataset containing the label (currently in English and French) +corresponding with the NACE typology of activities at levels 1 to 4 included."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -18,7 +18,7 @@ with the NACE typology of activities at levels 1 to 4 incldued."><meta property= </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ with the NACE typology of activities at levels 1 to 4 incldued."><meta property= </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -81,8 +84,8 @@ with the NACE typology of activities at levels 1 to 4 incldued."><meta property= </div> <div class="ref-description"> - <p>A dataset containing the label (currently in English an French) corresponding -with the NACE typology of activities at levels 1 to 4 incldued.</p> + <p>A dataset containing the label (currently in English and French) +corresponding with the NACE typology of activities at levels 1 to 4 included.</p> </div> <div id="ref-usage"> @@ -94,14 +97,14 @@ with the NACE typology of activities at levels 1 to 4 incldued.</p> <p>A data frame with 996 rows and 4 variables:</p><dl><dt>level</dt> <dd><p>integer, level of the type.</p></dd> - <dt>code</dt> +<dt>code</dt> <dd><p>character, code of the type.</p></dd> - <dt>label.en</dt> +<dt>label.en</dt> <dd><p>character, label in English corresponding with the - code.</p></dd> +code.</p></dd> - <dt>label.fr</dt> +<dt>label.fr</dt> <dd><p>character, label in French corresponding with the code.</p></dd> diff --git a/docs/reference/naf_esane.html b/docs/reference/naf_esane.html index 657b733af0e53743de17da6b6259d0687c5a4e5e..2d5eed41e39c6948d3eb248018d9d3c8b248d3a7 100644 --- a/docs/reference/naf_esane.html +++ b/docs/reference/naf_esane.html @@ -1,6 +1,6 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Typology of activities withh additional informations — naf_esane • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Typology of activities withh additional informations — naf_esane"><meta property="og:description" content="A dataset containing the Typology of activities at differente level, -with some useful additional information from Frecnh data base esane."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Typology of activities with additional information — naf_esane • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Typology of activities with additional information — naf_esane"><meta property="og:description" content="A dataset containing the typology of activities at different level, +with some useful additional information from French database esane."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -18,7 +18,7 @@ with some useful additional information from Frecnh data base esane."><meta prop </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ with some useful additional information from Frecnh data base esane."><meta prop </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -75,14 +78,14 @@ with some useful additional information from Frecnh data base esane."><meta prop </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Typology of activities withh additional informations</h1> + <h1>Typology of activities with additional information</h1> <div class="hidden name"><code>naf_esane.Rd</code></div> </div> <div class="ref-description"> - <p>A dataset containing the Typology of activities at differente level, -with some useful additional information from Frecnh data base esane.</p> + <p>A dataset containing the typology of activities at different level, +with some useful additional information from French database esane.</p> </div> <div id="ref-usage"> @@ -94,88 +97,88 @@ with some useful additional information from Frecnh data base esane.</p> <p>A data frame with 732 rows and 26 variables:</p><dl><dt>APE.05</dt> <dd><p>character, category at level 5, specific to France.</p></dd> - <dt>APE.01</dt> -<dd><p>character, category at level 1, compatible withe NACE.</p></dd> +<dt>APE.01</dt> +<dd><p>character, category at level 1, compatible with NACE.</p></dd> - <dt>APE.02</dt> -<dd><p>character, category at level 2, compatible withe NACE.</p></dd> +<dt>APE.02</dt> +<dd><p>character, category at level 2, compatible with NACE.</p></dd> - <dt>APE.03</dt> -<dd><p>character, category at level 3, compatible withe NACE.</p></dd> +<dt>APE.03</dt> +<dd><p>character, category at level 3, compatible with NACE.</p></dd> - <dt>APE.04</dt> -<dd><p>character, category at level 4, compatible withe NACE.</p></dd> +<dt>APE.04</dt> +<dd><p>character, category at level 4, compatible with NACE.</p></dd> - <dt>type</dt> +<dt>type</dt> <dd><p>character, type of activity, compatible with French damage - modelling.</p></dd> +modelling.</p></dd> - <dt>category</dt> +<dt>category</dt> <dd><p>character, vulnerability category of activity, - compatible with French damage modelling.</p></dd> +compatible with French damage modelling.</p></dd> - <dt>leased</dt> +<dt>leased</dt> <dd><p>character, TO BE SPECIFIED.</p></dd> - <dt>level</dt> +<dt>level</dt> <dd><p>character, level at which following data could be - retrieved.</p></dd> +retrieved.</p></dd> - <dt>n</dt> +<dt>n</dt> <dd><p>numeric, number of activity of given category.</p></dd> - <dt>employee</dt> +<dt>employee</dt> <dd><p>numeric, number of employee of given category.</p></dd> - <dt>equipment</dt> +<dt>equipment</dt> <dd><p>numeric, value of equipment in € of given category.</p></dd> - <dt>stock</dt> +<dt>stock</dt> <dd><p>numeric, value of stock in € of given category.</p></dd> - <dt>transport</dt> +<dt>transport</dt> <dd><p>numeric, part of transport equipment within equipment - for given category.</p></dd> +for given category.</p></dd> - <dt>virtual.corrected</dt> +<dt>virtual.corrected</dt> <dd><p>numeric, TO BE SPECIFIED.</p></dd> - <dt>e.emp</dt> +<dt>e.emp</dt> <dd><p>numeric, value of equipment per employee in € of given - category.</p></dd> +category.</p></dd> - <dt>s.emp</dt> +<dt>s.emp</dt> <dd><p>numeric, value of stock per employee in € of given - category.</p></dd> +category.</p></dd> - <dt>e.ent</dt> +<dt>e.ent</dt> <dd><p>numeric, value of stock per activity in € of given - category.</p></dd> +category.</p></dd> - <dt>s.ent</dt> +<dt>s.ent</dt> <dd><p>numeric, value of stock per activty in € of given - category.</p></dd> +category.</p></dd> - <dt>ACTENTNOMESS</dt> -<dd><p>numeric, original data frome ESANE.</p></dd> +<dt>ACTENTNOMESS</dt> +<dd><p>numeric, original data from ESANE.</p></dd> - <dt>EMPSALNOMESS</dt> -<dd><p>numeric, original data frome ESANE.</p></dd> +<dt>EMPSALNOMESS</dt> +<dd><p>numeric, original data from ESANE.</p></dd> - <dt>BAC123VALESE</dt> -<dd><p>numeric, original data frome ESANE.</p></dd> +<dt>BAC123VALESE</dt> +<dd><p>numeric, original data from ESANE.</p></dd> - <dt>BAC124VALESE</dt> -<dd><p>numeric, original data frome ESANE.</p></dd> +<dt>BAC124VALESE</dt> +<dd><p>numeric, original data from ESANE.</p></dd> - <dt>BAC152VALESE</dt> -<dd><p>numeric, original data frome ESANE.</p></dd> +<dt>BAC152VALESE</dt> +<dd><p>numeric, original data from ESANE.</p></dd> - <dt>BAC155VALESE</dt> -<dd><p>numeric, original data frome ESANE.</p></dd> +<dt>BAC155VALESE</dt> +<dd><p>numeric, original data from ESANE.</p></dd> - <dt>BAC156VALESE</dt> -<dd><p>numeric, original data frome ESANE.</p></dd> +<dt>BAC156VALESE</dt> +<dd><p>numeric, original data from ESANE.</p></dd> </dl></div> diff --git a/docs/reference/naf_label.html b/docs/reference/naf_label.html index cba936ec3878dbba93b9714330380276307c05d2..f06301113e3d72af126e8894f68ba44834172fb4 100644 --- a/docs/reference/naf_label.html +++ b/docs/reference/naf_label.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Label (in French) coming from NAF typology — naf_label • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Label (in French) coming from NAF typology — naf_label"><meta property="og:description" content="A dataset containing the label in French corresponding with -the NAF typology of activities at levels 1 to 5 incldued."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +the NAF typology of activities at levels 1 to 5 included."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -18,7 +18,7 @@ the NAF typology of activities at levels 1 to 5 incldued."><meta property="og:im </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ the NAF typology of activities at levels 1 to 5 incldued."><meta property="og:im </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -82,7 +85,7 @@ the NAF typology of activities at levels 1 to 5 incldued."><meta property="og:im <div class="ref-description"> <p>A dataset containing the label in French corresponding with -the NAF typology of activities at levels 1 to 5 incldued.</p> +the NAF typology of activities at levels 1 to 5 included.</p> </div> <div id="ref-usage"> @@ -94,10 +97,10 @@ the NAF typology of activities at levels 1 to 5 incldued.</p> <p>A data frame with 1728 rows and 3 variables:</p><dl><dt>level</dt> <dd><p>integer, level of the type.</p></dd> - <dt>code</dt> +<dt>code</dt> <dd><p>character, code of the type.</p></dd> - <dt>label.fr</dt> +<dt>label.fr</dt> <dd><p>character, label in French corresponding with the code.</p></dd> diff --git a/docs/reference/nomenclature_rpg_1.html b/docs/reference/nomenclature_rpg_1.html index 1f61d647cbd396c7bb967c05af53c6857fa1f5bf..e2b854cc32a3aff074d477cea401dbd11f9324d3 100644 --- a/docs/reference/nomenclature_rpg_1.html +++ b/docs/reference/nomenclature_rpg_1.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Nomenclature (in French) of RPG version 1.0 — nomenclature_rpg_1 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Nomenclature (in French) of RPG version 1.0 — nomenclature_rpg_1"><meta property="og:description" content="A dataset containing the label in French corresponding with -the version 1.0 of the RPG typology for culture plots."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +the version 1.0 of the RPG typology for cultivated plots."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -18,7 +18,7 @@ the version 1.0 of the RPG typology for culture plots."><meta property="og:imag </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ the version 1.0 of the RPG typology for culture plots."><meta property="og:imag </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -82,7 +85,7 @@ the version 1.0 of the RPG typology for culture plots."><meta property="og:imag <div class="ref-description"> <p>A dataset containing the label in French corresponding with -the version 1.0 of the RPG typology for culture plots.</p> +the version 1.0 of the RPG typology for cultivated plots.</p> </div> <div id="ref-usage"> @@ -92,11 +95,11 @@ the version 1.0 of the RPG typology for culture plots.</p> <div id="format"> <h2>Format</h2> <p>A data frame with 28 rows and 2 variables:</p><dl><dt>group</dt> -<dd><p>character, code of the group of culture.</p></dd> +<dd><p>character, code of the group of crops.</p></dd> - <dt>group_label_fr</dt> +<dt>group_label_fr</dt> <dd><p>character, label in French corresponding with the - group code.</p></dd> +group code.</p></dd> </dl></div> diff --git a/docs/reference/nomenclature_rpg_2.html b/docs/reference/nomenclature_rpg_2.html index d660b1f873ff08337254a4b87ad037b559d49ef2..eb0131bd44bbd78568c3214712cbaa04290e31a7 100644 --- a/docs/reference/nomenclature_rpg_2.html +++ b/docs/reference/nomenclature_rpg_2.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Nomenclature (in French) of RPG version 2.0 — nomenclature_rpg_2 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Nomenclature (in French) of RPG version 2.0 — nomenclature_rpg_2"><meta property="og:description" content="A dataset containing the label in French corresponding with -the version 2.0 of the RPG typology for culture plots (should work up to +the version 2.0 of the RPG typology for cultivated plots (should work up to year 2018)."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -19,7 +19,7 @@ year 2018)."><meta property="og:image" content="/logo.png"><!-- mathjax --><scri </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ year 2018)."><meta property="og:image" content="/logo.png"><!-- mathjax --><scri </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -83,7 +86,7 @@ year 2018)."><meta property="og:image" content="/logo.png"><!-- mathjax --><scri <div class="ref-description"> <p>A dataset containing the label in French corresponding with -the version 2.0 of the RPG typology for culture plots (should work up to +the version 2.0 of the RPG typology for cultivated plots (should work up to year 2018).</p> </div> @@ -94,14 +97,14 @@ year 2018).</p> <div id="format"> <h2>Format</h2> <p>A data frame with 392 rows and 3 variables:</p><dl><dt>culture</dt> -<dd><p>character, code of the culture.</p></dd> +<dd><p>character, code of the crop.</p></dd> - <dt>group</dt> -<dd><p>character, code of the group to which the culture belongs.</p></dd> +<dt>group</dt> +<dd><p>character, code of the group to which the crop belongs.</p></dd> - <dt>culture_label_fr</dt> +<dt>culture_label_fr</dt> <dd><p>character, label in French corresponding with - the culture code.</p></dd> +the crop code.</p></dd> </dl></div> diff --git a/docs/reference/plot_construction_date.html b/docs/reference/plot_construction_date.html index 079a2f45d1211c28273e32a2f20f28a1308c3a3f..05b21679407cb7bd237f748aa43fc46963fa0824 100644 --- a/docs/reference/plot_construction_date.html +++ b/docs/reference/plot_construction_date.html @@ -1,8 +1,8 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>plot of the construction dates of buildings in the context of the -BD-Topo v3 — plot_construction_date • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="plot of the construction dates of buildings in the context of the -BD-Topo v3 — plot_construction_date"><meta property="og:description" content="The function produces a time series plot of the construction dates of -buildings identified as residential in the BDTopo. The plot is stored as png +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>plot of the construction dates of buildings in the context of the +BD-Topo v3 — plot_construction_date • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="plot of the construction dates of buildings in the context of the +BD-Topo v3 — plot_construction_date"><meta property="og:description" content="The function produces a time series plot of the construction dates of +buildings identified as residential in the BDTopo. The plot is stored as png image in destination"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -21,7 +21,7 @@ image in destination"><meta property="og:image" content="/logo.png"><!-- mathjax </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -47,6 +47,9 @@ image in destination"><meta property="og:image" content="/logo.png"><!-- mathjax </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -78,15 +81,15 @@ image in destination"><meta property="og:image" content="/logo.png"><!-- mathjax </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>plot of the construction dates of buildings in the context of the + <h1>plot of the construction dates of buildings in the context of the BD-Topo v3</h1> <div class="hidden name"><code>plot_construction_date.Rd</code></div> </div> <div class="ref-description"> - <p>The function produces a time series plot of the construction dates of -buildings identified as residential in the BDTopo. The plot is stored as png + <p>The function produces a time series plot of the construction dates of +buildings identified as residential in the BDTopo. The plot is stored as png image in destination</p> </div> diff --git a/docs/reference/pprn_classification.html b/docs/reference/pprn_classification.html index b058c1452f76e9242c91b8c07acf3714a2e45c15..b61f938566e50e5b97807384e47e150894bea2ef 100644 --- a/docs/reference/pprn_classification.html +++ b/docs/reference/pprn_classification.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Classification of hazards events in pprn (gaspar DB) — pprn_classification • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Classification of hazards events in pprn (gaspar DB) — pprn_classification"><meta property="og:description" content="Classification of hazards events in pprn (gaspar DB)"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Classification of hazard events in pprn (gaspar DB) — pprn_classification • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Classification of hazard events in pprn (gaspar DB) — pprn_classification"><meta property="og:description" content="Classification of hazard events in pprn (gaspar DB)"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -74,13 +77,13 @@ </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Classification of hazards events in pprn (gaspar DB)</h1> + <h1>Classification of hazard events in pprn (gaspar DB)</h1> <div class="hidden name"><code>pprn_classification.Rd</code></div> </div> <div class="ref-description"> - <p>Classification of hazards events in pprn (gaspar DB)</p> + <p>Classification of hazard events in pprn (gaspar DB)</p> </div> <div id="ref-usage"> diff --git a/docs/reference/prepare.stat.log.html b/docs/reference/prepare.stat.log.html index fd55fc0058b4536d416e596afb79557801d08f8c..f84192276a91ab519157929a5ae4ca860a2d2b50 100644 --- a/docs/reference/prepare.stat.log.html +++ b/docs/reference/prepare.stat.log.html @@ -18,7 +18,7 @@ time series perspective of those data.frame."><meta property="og:image" content= </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ time series perspective of those data.frame."><meta property="og:image" content= </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/prepare_table_building.html b/docs/reference/prepare_table_building.html index 281090f9043249befc86e70deb69a437e1d710ff..d2dff817781eb4065d475b2409e93e3fa6e7dfe0 100644 --- a/docs/reference/prepare_table_building.html +++ b/docs/reference/prepare_table_building.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Analyse BD Topo before classification of dwellings — prepare_table_building • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Analyse BD Topo before classification of dwellings — prepare_table_building"><meta property="og:description" content="The function performs several analysis in order to check the validity and the -consistency of the calculations made by functions `extract_building()` over +consistency of the calculations made by functions extract_building() over the BDTopo v3."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -19,7 +19,7 @@ the BDTopo v3."><meta property="og:image" content="/logo.png"><!-- mathjax --><s </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ the BDTopo v3."><meta property="og:image" content="/logo.png"><!-- mathjax --><s </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -83,7 +86,7 @@ the BDTopo v3."><meta property="og:image" content="/logo.png"><!-- mathjax --><s <div class="ref-description"> <p>The function performs several analysis in order to check the validity and the -consistency of the calculations made by functions `extract_building()` over +consistency of the calculations made by functions <code><a href="extract_building.html">extract_building()</a></code> over the BDTopo v3.</p> </div> diff --git a/docs/reference/prepare_table_dwelling.html b/docs/reference/prepare_table_dwelling.html index 089f2504db3b66798bace027eb5fb97d5d6b7ca0..4f620f552c5df61307ec4d9b5c1a59d303e5809f 100644 --- a/docs/reference/prepare_table_dwelling.html +++ b/docs/reference/prepare_table_dwelling.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Analyse BD Topo after classification of dwellings — prepare_table_dwelling • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Analyse BD Topo after classification of dwellings — prepare_table_dwelling"><meta property="og:description" content="The function performs several analysis in order to check the validity and the -consistency of the calculations made by function `extract_dwelling` over the +consistency of the calculations made by function extract_dwelling over the BDTopo v3."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -19,7 +19,7 @@ BDTopo v3."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ BDTopo v3."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -83,7 +86,7 @@ BDTopo v3."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip <div class="ref-description"> <p>The function performs several analysis in order to check the validity and the -consistency of the calculations made by function `extract_dwelling` over the +consistency of the calculations made by function <code>extract_dwelling</code> over the BDTopo v3.</p> </div> diff --git a/docs/reference/qq_developed_dwelling.html b/docs/reference/qq_developed_dwelling.html index 85fab1882868ee6dc47e664b2b1a7fa1acdb9eaf..2834efbae2c7858105fc3b4af3095c8666565bc5 100644 --- a/docs/reference/qq_developed_dwelling.html +++ b/docs/reference/qq_developed_dwelling.html @@ -1,8 +1,8 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>qq plot of the building's developed surface versus the building's -dwellings in the context of the BD-Topo v3 — qq_developed_dwelling • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="qq plot of the building's developed surface versus the building's -dwellings in the context of the BD-Topo v3 — qq_developed_dwelling"><meta property="og:description" content="The function produces a QQ-plot that confronts the following series of the -building/dwelling database: surface developed and number of dwellings. The +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>qq plot of the building's developed surface versus the building's +dwellings in the context of the BD-Topo v3 — qq_developed_dwelling • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="qq plot of the building's developed surface versus the building's +dwellings in the context of the BD-Topo v3 — qq_developed_dwelling"><meta property="og:description" content="The function produces a QQ-plot that confronts the following series of the +building/dwelling database: surface developed and number of dwellings. The plot is stored as png image in destination"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -21,7 +21,7 @@ plot is stored as png image in destination"><meta property="og:image" content="/ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -47,6 +47,9 @@ plot is stored as png image in destination"><meta property="og:image" content="/ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -78,15 +81,15 @@ plot is stored as png image in destination"><meta property="og:image" content="/ </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>qq plot of the building's developed surface versus the building's + <h1>qq plot of the building's developed surface versus the building's dwellings in the context of the BD-Topo v3</h1> <div class="hidden name"><code>qq_developed_dwelling.Rd</code></div> </div> <div class="ref-description"> - <p>The function produces a QQ-plot that confronts the following series of the -building/dwelling database: surface developed and number of dwellings. The + <p>The function produces a QQ-plot that confronts the following series of the +building/dwelling database: surface developed and number of dwellings. The plot is stored as png image in destination</p> </div> diff --git a/docs/reference/qq_height_level.html b/docs/reference/qq_height_level.html index 420848bd167413feb1d914aede7fea58724a3fe4..589c9b4d1a866536370dcb7dd928b5f25f5a1cc3 100644 --- a/docs/reference/qq_height_level.html +++ b/docs/reference/qq_height_level.html @@ -1,8 +1,8 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>qq plot of building heights versus building storeys in the context of -the BD-Topo v3 — qq_height_level • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="qq plot of building heights versus building storeys in the context of +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>qq plot of building heights versus building storeys in the context of +the BD-Topo v3 — qq_height_level • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="qq plot of building heights versus building storeys in the context of the BD-Topo v3 — qq_height_level"><meta property="og:description" content="The function produces a QQ-plot that confronts the variable referring to the -surface developed and the number of dwellings as issued from the functions +surface developed and the number of dwellings as issued from the functions that process the bdtopo. The plot is stored as png image in destination"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -21,7 +21,7 @@ that process the bdtopo. The plot is stored as png image in destination"><meta p </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -47,6 +47,9 @@ that process the bdtopo. The plot is stored as png image in destination"><meta p </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -78,7 +81,7 @@ that process the bdtopo. The plot is stored as png image in destination"><meta p </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>qq plot of building heights versus building storeys in the context of + <h1>qq plot of building heights versus building storeys in the context of the BD-Topo v3</h1> <div class="hidden name"><code>qq_height_level.Rd</code></div> @@ -86,7 +89,7 @@ the BD-Topo v3</h1> <div class="ref-description"> <p>The function produces a QQ-plot that confronts the variable referring to the -surface developed and the number of dwellings as issued from the functions +surface developed and the number of dwellings as issued from the functions that process the bdtopo. The plot is stored as png image in destination</p> </div> diff --git a/docs/reference/read_format_rds.html b/docs/reference/read_format_rds.html index 2ec1bdc48008577d2b4681463230f8e141164d74..3e5b730b8dcd2478946e90937396b3c91395c887 100644 --- a/docs/reference/read_format_rds.html +++ b/docs/reference/read_format_rds.html @@ -19,7 +19,7 @@ floodam.data::bd_topo_roof."><meta property="og:image" content="/logo.png"><!-- </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ floodam.data::bd_topo_roof."><meta property="og:image" content="/logo.png"><!-- </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/read_gpkg_layer.html b/docs/reference/read_gpkg_layer.html index 5296a6442dd2789f8e3c480a6663873238d9b6ae..ab21aa388cd8a02d598f71a38ae96c0d4ace89f7 100644 --- a/docs/reference/read_gpkg_layer.html +++ b/docs/reference/read_gpkg_layer.html @@ -18,7 +18,7 @@ a gkpg archive."><meta property="og:image" content="/logo.png"><!-- mathjax -->< </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ a gkpg archive."><meta property="og:image" content="/logo.png"><!-- mathjax -->< </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/read_url.html b/docs/reference/read_url.html index 1e4b4aaf23fc8f50adb0cb525a2c871fb42432e4..8dc78841f93b1d4adf0c039a2bcf688804c649de 100644 --- a/docs/reference/read_url.html +++ b/docs/reference/read_url.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -99,7 +102,7 @@ <div id="ref-examples"> <h2>Examples</h2> - <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"http://data.cquest.org/registre_parcellaire_graphique/"</span></span> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="va">origin</span> <span class="op">=</span> <span class="st">"https://data.cquest.org/registre_parcellaire_graphique/"</span></span> <span class="r-in"><span class="va">year</span> <span class="op">=</span> <span class="st">"2010"</span></span> <span class="r-in"><span class="va">index</span> <span class="op">=</span> <span class="fu">read_url</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/sprintf.html" class="external-link">sprintf</a></span><span class="op">(</span><span class="st">"%s/%s"</span>, <span class="va">origin</span>, <span class="va">year</span><span class="op">)</span><span class="op">)</span></span> <span class="r-in"><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span> diff --git a/docs/reference/read_with_scheme.html b/docs/reference/read_with_scheme.html index f87f73e03e73125b5e078c71e67136a53c885162..0f321a2293d2cadabb95f5e5d9725618fd509f5b 100644 --- a/docs/reference/read_with_scheme.html +++ b/docs/reference/read_with_scheme.html @@ -1,11 +1,32 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Read tabular data with a scheme — read_with_scheme • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Read tabular data with a scheme — read_with_scheme"><meta property="og:description" content='The function relies on data.table::fread to read tabular data, and -to apply a scheme. The idea is to used the efficiency of fread to read -more quickly data (and without too many specifications on "sep" and "dec"), -and to used some options to read only data that will be kept with original -format given in scheme. As almost, everyhting is done after reading, the -remaining part of applying a scheme is also one: final format is applied, -and if, some "lon" and "lat" is found, data is transformed in sf object.'><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Read data with a scheme — read_with_scheme • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Read data with a scheme — read_with_scheme"><meta property="og:description" content='read_with_scheme is a wrapper for more specific functions. It uses +type and extension to call the good function. If those +parameters are not specified it tries to guess them from the name of the +archive included in x. +read_csv_with_scheme relies on data.table::fread to read +tabular data, and to apply a scheme. The idea is to used the efficiency of +fread to read more quickly data (and without too many specifications +on "sep" and "dec"), and to used some options to read only data that will be +kept with original format given in scheme. As almost, everyhting is done +after reading, the remaining part of applying a scheme is also one: final +format is applied, and if, some "lon" and "lat" is found, data is transformed +in sf object. +read_shp_with_scheme relies on sf::st_read to read gpkg data. +If given, projection is changed. If given scheme is applyed through +apply_scheme. It is supposed that the scheme given is organized with a +layer column. +read_gpkg_with_scheme relies on sf::st_read to read gpkg data. +If given, projection is changed. If given scheme is applyed through +apply_scheme. It is supposed that the scheme given is organized with a +layer column. +read_shp_from_7z uses a system call to 7z to uncompress a +7z archive. It looks specifically for files that correspond to given layer. +It then reads the uncompressed gpkg file with a call to +read_shp_with_scheme. +read_gkpg_from_7z uses a system call to 7z to uncompress a 7z archive. +It looks specifically for files with extension gkpg, and presumes that there +is only one. It then reads the uncompressed gpkg file with a call to +read_gpkg_with_scheme.'><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -23,7 +44,7 @@ and if, some "lon" and "lat" is found, data is transformed in sf object.'><meta </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -49,6 +70,9 @@ and if, some "lon" and "lat" is found, data is transformed in sf object.'><meta </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -80,23 +104,61 @@ and if, some "lon" and "lat" is found, data is transformed in sf object.'><meta </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Read tabular data with a scheme</h1> + <h1>Read data with a scheme</h1> <div class="hidden name"><code>read_with_scheme.Rd</code></div> </div> <div class="ref-description"> - <p>The function relies on <code><a href="https://Rdatatable.gitlab.io/data.table/reference/fread.html" class="external-link">data.table::fread</a></code> to read tabular data, and -to apply a scheme. The idea is to used the efficiency of <code>fread</code> to read -more quickly data (and without too many specifications on "sep" and "dec"), -and to used some options to read only data that will be kept with original -format given in scheme. As almost, everyhting is done after reading, the -remaining part of applying a scheme is also one: final format is applied, -and if, some "lon" and "lat" is found, data is transformed in sf object.</p> + <p><code>read_with_scheme</code> is a wrapper for more specific functions. It uses +<code>type</code> and <code>extension</code> to call the good function. If those +parameters are not specified it tries to guess them from the name of the +archive included in <code>x</code>.</p> +<p><code>read_csv_with_scheme</code> relies on <code><a href="https://Rdatatable.gitlab.io/data.table/reference/fread.html" class="external-link">data.table::fread</a></code> to read +tabular data, and to apply a scheme. The idea is to used the efficiency of +<code>fread</code> to read more quickly data (and without too many specifications +on "sep" and "dec"), and to used some options to read only data that will be +kept with original format given in scheme. As almost, everyhting is done +after reading, the remaining part of applying a scheme is also one: final +format is applied, and if, some "lon" and "lat" is found, data is transformed +in sf object.</p> +<p><code>read_shp_with_scheme</code> relies on <code><a href="https://r-spatial.github.io/sf/reference/st_read.html" class="external-link">sf::st_read</a></code> to read gpkg data. +If given, projection is changed. If given scheme is applyed through +<code>apply_scheme</code>. It is supposed that the scheme given is organized with a +layer column.</p> +<p><code>read_gpkg_with_scheme</code> relies on <code><a href="https://r-spatial.github.io/sf/reference/st_read.html" class="external-link">sf::st_read</a></code> to read gpkg data. +If given, projection is changed. If given scheme is applyed through +<code>apply_scheme</code>. It is supposed that the scheme given is organized with a +layer column.</p> +<p><code>read_shp_from_7z</code> uses a system call to 7z to uncompress a +7z archive. It looks specifically for files that correspond to given layer. +It then reads the uncompressed gpkg file with a call to +<code>read_shp_with_scheme</code>.</p> +<p><code>read_gkpg_from_7z</code> uses a system call to 7z to uncompress a 7z archive. +It looks specifically for files with extension gkpg, and presumes that there +is only one. It then reads the uncompressed gpkg file with a call to +<code>read_gpkg_with_scheme</code>.</p> </div> <div id="ref-usage"> - <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">read_with_scheme</span><span class="op">(</span><span class="va">x</span>, scheme <span class="op">=</span> <span class="cn">NULL</span>, projection <span class="op">=</span> <span class="cn">NA</span><span class="op">)</span></code></pre></div> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">read_with_scheme</span><span class="op">(</span> + <span class="va">x</span>, + scheme <span class="op">=</span> <span class="cn">NULL</span>, + projection <span class="op">=</span> <span class="cn">NA</span>, + <span class="va">layer</span>, + <span class="va">type</span>, + extension <span class="op">=</span> <span class="fu">tools</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/r/tools/fileutils.html" class="external-link">file_ext</a></span><span class="op">(</span><span class="va">x</span><span class="op">)</span> +<span class="op">)</span> + +<span class="fu">read_csv_with_scheme</span><span class="op">(</span><span class="va">x</span>, scheme <span class="op">=</span> <span class="cn">NULL</span>, projection <span class="op">=</span> <span class="cn">NA</span><span class="op">)</span> + +<span class="fu">read_shp_with_scheme</span><span class="op">(</span><span class="va">x</span>, scheme <span class="op">=</span> <span class="cn">NULL</span>, projection <span class="op">=</span> <span class="cn">NA</span>, <span class="va">layer</span><span class="op">)</span> + +<span class="fu">read_gpkg_with_scheme</span><span class="op">(</span><span class="va">x</span>, scheme <span class="op">=</span> <span class="cn">NULL</span>, projection <span class="op">=</span> <span class="cn">NA</span>, <span class="va">layer</span><span class="op">)</span> + +<span class="fu">read_shp_from_7z</span><span class="op">(</span><span class="va">x</span>, scheme <span class="op">=</span> <span class="cn">NULL</span>, projection <span class="op">=</span> <span class="cn">NA</span>, <span class="va">layer</span><span class="op">)</span> + +<span class="fu">read_gpkg_from_7z</span><span class="op">(</span><span class="va">x</span>, scheme <span class="op">=</span> <span class="cn">NULL</span>, projection <span class="op">=</span> <span class="cn">NA</span>, <span class="va">layer</span><span class="op">)</span></code></pre></div> </div> <div id="arguments"> @@ -106,8 +168,16 @@ and if, some "lon" and "lat" is found, data is transformed in sf object.</p> <dt>scheme</dt> <dd><p>data.frame, scheme to be applied.</p></dd> <dt>projection</dt> -<dd><p>something that will be used in the option "crs" of +<dd><p>something that will be used in the option "crs" of <code><a href="https://r-spatial.github.io/sf/reference/st_as_sf.html" class="external-link">sf::st_as_sf</a></code>.</p></dd> +<dt>layer</dt> +<dd><p>character, indicates the layer to be read for data organized by +layers.</p></dd> +<dt>type</dt> +<dd><p>character, indicates the type of data that should be read.</p></dd> +<dt>extension</dt> +<dd><p>character, indicate the exrtension of the archive. If +missing will be guessed from x.</p></dd> </dl></div> <div id="value"> <h2>Value</h2> diff --git a/docs/reference/region.html b/docs/reference/region.html index 9a720ccdcb98c6171ded39df9757cdc961c5e4e7..9d073efb39a7503fd5a4729fc3a4456024d52b81 100644 --- a/docs/reference/region.html +++ b/docs/reference/region.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Region definition in France — region • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Region definition in France — region"><meta property="og:description" content="This dataset gives the correspondance between code and French label in usage +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Region definition in France — region • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Region definition in France — region"><meta property="og:description" content="This dataset gives the correspondance between code and French label in use in France."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +18,7 @@ in France."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ in France."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -81,7 +84,7 @@ in France."><meta property="og:image" content="/logo.png"><!-- mathjax --><scrip </div> <div class="ref-description"> - <p>This dataset gives the correspondance between code and French label in usage + <p>This dataset gives the correspondance between code and French label in use in France.</p> </div> @@ -94,7 +97,7 @@ in France.</p> <p>A data frame with 18 rows and 2 variables:</p><dl><dt>code</dt> <dd><p>character, INSEE code of region.</p></dd> - <dt>label.fr</dt> +<dt>label.fr</dt> <dd><p>character, name of region as defined by INSEE.</p></dd> diff --git a/docs/reference/save_archive.html b/docs/reference/save_archive.html new file mode 100644 index 0000000000000000000000000000000000000000..62ba306b8b80826a5590681aaeb030549e1e1efd --- /dev/null +++ b/docs/reference/save_archive.html @@ -0,0 +1,170 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Save an archive in a formatted way — save_archive • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Save an archive in a formatted way — save_archive"><meta property="og:description" content="save_archive saves archives in a formatted way, to help retrieve +those archives for a use in a typical 'floodam.data' perspective."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Save an archive in a formatted way</h1> + + <div class="hidden name"><code>save_archive.Rd</code></div> + </div> + + <div class="ref-description"> + <p><code>save_archive</code> saves archives in a formatted way, to help retrieve +those archives for a use in a typical 'floodam.data' perspective.</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">save_archive</span><span class="op">(</span><span class="va">x</span>, <span class="va">path</span>, scope <span class="op">=</span> <span class="cn">NULL</span>, extension <span class="op">=</span> <span class="cn">NULL</span>, origin <span class="op">=</span> <span class="st">"floodam.data"</span><span class="op">)</span></code></pre></div> + </div> + + <div id="arguments"> + <h2>Arguments</h2> + <dl><dt>x</dt> +<dd><p>data.frame, data to be archived.</p></dd> +<dt>path</dt> +<dd><p>character, the path from wich the archive's path is constructed. +See details.</p></dd> +<dt>scope</dt> +<dd><p>character or factor. If factor or long character, how x will be +sliced. If character of length 1, may be the name of a variable of x. See +details.</p></dd> +<dt>extension</dt> +<dd><p>character, the extension and so the format to be used for +saving. See details.</p></dd> +<dt>origin</dt> +<dd><p>character, default value to "floodam.data". See details.</p></dd> +</dl></div> + <div id="value"> + <h2>Value</h2> + <p>Nothin useful.</p> + </div> + <div id="details"> + <h2>Details</h2> + <p>TO BE COMPLETED</p> + </div> + <div id="author"> + <h2>Author</h2> + <p>Frédéric Grelot</p> + </div> + + <div id="ref-examples"> + <h2>Examples</h2> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"></span> +<span class="r-in"><span class="va">x</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>scope <span class="op">=</span> <span class="fl">0</span><span class="op">:</span><span class="fl">2</span><span class="op">)</span></span> +<span class="r-in"><span class="va">temp_dir</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/tempfile.html" class="external-link">tempdir</a></span><span class="op">(</span><span class="op">)</span></span> +<span class="r-in"><span class="va">scope</span> <span class="op">=</span> <span class="st">"scope"</span></span> +<span class="r-in"></span> +<span class="r-in"><span class="co"># No scope, no extension, only basename</span></span> +<span class="r-in"><span class="fu">save_archive</span><span class="op">(</span><span class="va">x</span>, <span class="fu"><a href="https://rdrr.io/r/base/file.path.html" class="external-link">file.path</a></span><span class="op">(</span><span class="va">temp_dir</span>, <span class="st">"x"</span><span class="op">)</span><span class="op">)</span></span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>Unmanaged extension. Nothing is saved.</span> +<span class="r-in"></span> +<span class="r-in"><span class="co"># Adding a scope</span></span> +<span class="r-in"><span class="fu">save_archive</span><span class="op">(</span><span class="va">x</span>, <span class="fu"><a href="https://rdrr.io/r/base/file.path.html" class="external-link">file.path</a></span><span class="op">(</span><span class="va">temp_dir</span>, <span class="st">"x"</span><span class="op">)</span>, scope <span class="op">=</span> <span class="st">"scope"</span><span class="op">)</span></span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>Some levels of scope ar NA. Corresponding data will not be saved.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>Unmanaged extension. Nothing is saved.</span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>Unmanaged extension. Nothing is saved.</span> +<span class="r-in"></span> +<span class="r-in"><span class="co"># Using a path with extension, but also parameter extension</span></span> +<span class="r-in"><span class="fu">save_archive</span><span class="op">(</span><span class="va">x</span>, <span class="fu"><a href="https://rdrr.io/r/base/file.path.html" class="external-link">file.path</a></span><span class="op">(</span><span class="va">temp_dir</span>, <span class="st">"x.7z"</span><span class="op">)</span>, extension <span class="op">=</span> <span class="st">"rds"</span>, scope <span class="op">=</span> <span class="st">"scope"</span><span class="op">)</span></span> +<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>Some levels of scope ar NA. Corresponding data will not be saved.</span> +</code></pre></div> + </div> + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/scheme_admin_express_2_0.html b/docs/reference/scheme_admin_express_2_0.html new file mode 100644 index 0000000000000000000000000000000000000000..cc268e3a275def5cbfb6f5c2757576d1b906a925 --- /dev/null +++ b/docs/reference/scheme_admin_express_2_0.html @@ -0,0 +1,159 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Information on the variables of Admin Express version 2-0 — scheme_admin_express_2_0 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Information on the variables of Admin Express version 2-0 — scheme_admin_express_2_0"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, +their desired type. It may be used as a value in adapt_admin_express +for old version of Admin Express."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Information on the variables of Admin Express version 2-0</h1> + + <div class="hidden name"><code>scheme_admin_express_2_0.Rd</code></div> + </div> + + <div class="ref-description"> + <p>This dataset controls also default behaviour of what variables are kept, +their desired type. It may be used as a value in <code>adapt_admin_express</code> +for old version of Admin Express.</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="va">scheme_admin_express_2_0</span></code></pre></div> + </div> + + <div id="format"> + <h2>Format</h2> + <p>A data frame with 26 rows and 11 variables:</p><dl><dt>name</dt> +<dd><p>character, name of variables used in floodam.data.</p></dd> + +<dt>name_origin</dt> +<dd><p>character, name of variables as defined in original +data.</p></dd> + +<dt>layer</dt> +<dd><p>character, name of layer where the variables are used.</p></dd> + +<dt>order</dt> +<dd><p>integer, order of the variables in original data.</p></dd> + +<dt>keep</dt> +<dd><p>logical, defined if floodam.data will keep this variable.</p></dd> + +<dt>type</dt> +<dd><p>character, type that will be used within floodam.data.</p></dd> + +<dt>label_fr</dt> +<dd><p>character, variables description in French.</p></dd> + +<dt>source</dt> +<dd><p>character, source of the variables.</p></dd> + +<dt>length_source</dt> +<dd><p>integer, length of variables in source.</p></dd> + +<dt>type_source</dt> +<dd><p>character, type of variables in source.</p></dd> + +<dt>comment</dt> +<dd><p>character, some comments on choice made.</p></dd> + + +</dl></div> + + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/scheme_admin_express_3_1.html b/docs/reference/scheme_admin_express_3_1.html new file mode 100644 index 0000000000000000000000000000000000000000..7f019e2ba60babdf817f0408367b7eba8af16378 --- /dev/null +++ b/docs/reference/scheme_admin_express_3_1.html @@ -0,0 +1,159 @@ +<!DOCTYPE html> +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Information on the variables of Admin Express version 3-1 — scheme_admin_express_3_1 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Information on the variables of Admin Express version 3-1 — scheme_admin_express_3_1"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, +their desired type. It is used as default value in +adapt_admin_express."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--></head><body data-spy="scroll" data-target="#toc"> + + + <div class="container template-reference-topic"> + <header><div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">floodam.data</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"><li> + <a href="../reference/index.html">Reference</a> +</li> +<li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> + Articles + + <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"><li class="divider"> + <li class="dropdown-header">Introduction</li> + <li> + <a href="../articles/download-data.html">How to use floodam.data for downloads</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (En)</li> + <li> + <a href="../articles/bd_topo_en.html">BD Topo</a> + </li> + <li class="divider"> + <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> + <li> + <a href="../articles/ban_fr.html">BAN (French)</a> + </li> + <li> + <a href="../articles/bd_topo_fr.html">BD Topo (French)</a> + </li> + <li> + <a href="../articles/gaspar_fr.html">gaspar (French)</a> + </li> + <li> + <a href="../articles/rpg_fr.html">rpg database</a> + </li> + <li class="divider"> + <li class="dropdown-header">Processes (En)</li> + <li> + <a href="../articles/bd_topo_dwelling_en.html">Dwelling from BD Topo (building)</a> + </li> + <li class="divider"> + <li> + <a href="../articles/index.html">More articles...</a> + </li> + </ul></li> + </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header><div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Information on the variables of Admin Express version 3-1</h1> + + <div class="hidden name"><code>scheme_admin_express_3_1.Rd</code></div> + </div> + + <div class="ref-description"> + <p>This dataset controls also default behaviour of what variables are kept, +their desired type. It is used as default value in +<code>adapt_admin_express</code>.</p> + </div> + + <div id="ref-usage"> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="va">scheme_admin_express_3_1</span></code></pre></div> + </div> + + <div id="format"> + <h2>Format</h2> + <p>A data frame with 24 rows and 11 variables:</p><dl><dt>name</dt> +<dd><p>character, name of variables used in floodam.data.</p></dd> + +<dt>name_origin</dt> +<dd><p>character, name of variables as defined in original +data.</p></dd> + +<dt>layer</dt> +<dd><p>character, name of layer where the variables is used.</p></dd> + +<dt>order</dt> +<dd><p>integer, order of the variables in original data.</p></dd> + +<dt>keep</dt> +<dd><p>logical, defined if floodam.data will keep this variable.</p></dd> + +<dt>type</dt> +<dd><p>character, type that will be used within floodam.data.</p></dd> + +<dt>label_fr</dt> +<dd><p>character, variables description in French.</p></dd> + +<dt>source</dt> +<dd><p>character, source of the variables.</p></dd> + +<dt>length_source</dt> +<dd><p>integer, length of variables in source.</p></dd> + +<dt>type_source</dt> +<dd><p>character, type of variables in source.</p></dd> + +<dt>comment</dt> +<dd><p>character, some comments on choice made.</p></dd> + + +</dl></div> + + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2> + </nav></div> +</div> + + + <footer><div class="copyright"> + <p></p><p>Developed by Frédéric Grelot, David Nortes Martinez, Pierre Balzergue, Victor Champonnois.</p> +</div> + +<div class="pkgdown"> + <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p> +</div> + + </footer></div> + + + + + + + </body></html> + diff --git a/docs/reference/scheme_ban.html b/docs/reference/scheme_ban.html index ab69dfb662018693d430e03bc8c5a63bb686bde3..84d1cd945f24653159be7934e7ee1166b5fcbec2 100644 --- a/docs/reference/scheme_ban.html +++ b/docs/reference/scheme_ban.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Informations on the variables of BAN — scheme_ban • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Informations on the variables of BAN — scheme_ban"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Information on the variables of BAN — scheme_ban • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Information on the variables of BAN — scheme_ban"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, their desired type. It is used as default value in adapt_ban."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +18,7 @@ their desired type. It is used as default value in adapt_ban."><meta property="o </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ their desired type. It is used as default value in adapt_ban."><meta property="o </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -75,7 +78,7 @@ their desired type. It is used as default value in adapt_ban."><meta property="o </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Informations on the variables of BAN</h1> + <h1>Information on the variables of BAN</h1> <div class="hidden name"><code>scheme_ban.Rd</code></div> </div> @@ -94,34 +97,34 @@ their desired type. It is used as default value in adapt_ban.</p> <p>A data frame with 25 rows and 12 variables:</p><dl><dt>name</dt> <dd><p>character, name of variables used in floodam.data.</p></dd> - <dt>name_origin</dt> +<dt>name_origin</dt> <dd><p>character, name of variables as defined in - original data.</p></dd> +original data.</p></dd> - <dt>order</dt> +<dt>order</dt> <dd><p>integer, order of the variables in original data.</p></dd> - <dt>keep</dt> +<dt>keep</dt> <dd><p>logical, defined if floodam.data will keep this variable.</p></dd> - <dt>type</dt> +<dt>type</dt> <dd><p>character, type that will be used within floodam.data.</p></dd> - <dt>label_fr</dt> +<dt>label_fr</dt> <dd><p>character, variables description in French.</p></dd> - <dt>source</dt> +<dt>source</dt> <dd><p>character, source of the variables.</p></dd> - <dt>length_source</dt> +<dt>length_source</dt> <dd><p>integer, length of variables in source.</p></dd> - <dt>type_source</dt> +<dt>type_source</dt> <dd><p>character, type of variables in source.</p></dd> - <dt>comment</dt> +<dt>comment</dt> <dd><p>character, some additionnal comments to better understand - variable.</p></dd> +variable.</p></dd> </dl></div> diff --git a/docs/reference/scheme_bd_topo_3.html b/docs/reference/scheme_bd_topo_3.html index bed272ce940d469cb3fab76e5b9362c601ad62c9..5cfb0c56fcd93975667aebfb3f58d6dec430f1db 100644 --- a/docs/reference/scheme_bd_topo_3.html +++ b/docs/reference/scheme_bd_topo_3.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Informations on the variables of BD TOPO version 3.0 — scheme_bd_topo_3 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Informations on the variables of BD TOPO version 3.0 — scheme_bd_topo_3"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Information on the variables of BD TOPO version 3.0 — scheme_bd_topo_3 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Information on the variables of BD TOPO version 3.0 — scheme_bd_topo_3"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, their desired type. It is used as default value in adapt.bd_topo."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +18,7 @@ their desired type. It is used as default value in adapt.bd_topo."><meta propert </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ their desired type. It is used as default value in adapt.bd_topo."><meta propert </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -75,7 +78,7 @@ their desired type. It is used as default value in adapt.bd_topo."><meta propert </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Informations on the variables of BD TOPO version 3.0</h1> + <h1>Information on the variables of BD TOPO version 3.0</h1> <div class="hidden name"><code>scheme_bd_topo_3.Rd</code></div> </div> @@ -94,44 +97,44 @@ their desired type. It is used as default value in adapt.bd_topo.</p> <p>A data frame with 25 rows and 12 variables:</p><dl><dt>name</dt> <dd><p>character, name of variables used in floodam.data.</p></dd> - <dt>name_origin_gpkg</dt> +<dt>name_origin_gpkg</dt> <dd><p>character, name of variables as defined in - original data for gkpg archives.</p></dd> +original data for gkpg archives.</p></dd> - <dt>name_origin_shp</dt> +<dt>name_origin_shp</dt> <dd><p>character, name of variables as defined in - original data for shp files.</p></dd> +original data for shp files.</p></dd> - <dt>layer</dt> +<dt>layer</dt> <dd><p>character, name of layer where the variables is used.</p></dd> - <dt>order</dt> +<dt>order</dt> <dd><p>integer, order of the variables in original data.</p></dd> - <dt>keep</dt> +<dt>keep</dt> <dd><p>logical, defined if floodam.data will keep this variable.</p></dd> - <dt>type</dt> +<dt>type</dt> <dd><p>character, type that will be used within floodam.data.</p></dd> - <dt>unit</dt> +<dt>unit</dt> <dd><p>character, unit of numeric data.</p></dd> - <dt>label_fr</dt> +<dt>label_fr</dt> <dd><p>character, variables description in French.</p></dd> - <dt>source</dt> +<dt>source</dt> <dd><p>character, source of the variables.</p></dd> - <dt>length_source</dt> +<dt>length_source</dt> <dd><p>integer, length of variables in source.</p></dd> - <dt>type_source</dt> +<dt>type_source</dt> <dd><p>character, type of variables in source.</p></dd> - <dt>comment</dt> +<dt>comment</dt> <dd><p>character, some additionnal comments to better understand - variable.</p></dd> +variable.</p></dd> </dl></div> diff --git a/docs/reference/scheme_gaspar_azi.html b/docs/reference/scheme_gaspar_azi.html index e1fe7176bc28c4385320d0c04a5d18c7489dd072..ffe8c4019116dc9edc67e587ce4f1b6ce6c9a507 100644 --- a/docs/reference/scheme_gaspar_azi.html +++ b/docs/reference/scheme_gaspar_azi.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/scheme_gaspar_catnat.html b/docs/reference/scheme_gaspar_catnat.html index d635065d8e53de8b42ed068fd7eef46ff7a36b50..94841b63c96348f37c0ef36b0a7b3eed232df574 100644 --- a/docs/reference/scheme_gaspar_catnat.html +++ b/docs/reference/scheme_gaspar_catnat.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/scheme_gaspar_pprn.html b/docs/reference/scheme_gaspar_pprn.html index 1d1b096e57c05ecda2b490c1ee1c1bc1f5ae486b..41924c500dd66ead3a3b5a3774f469d422f2945b 100644 --- a/docs/reference/scheme_gaspar_pprn.html +++ b/docs/reference/scheme_gaspar_pprn.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/scheme_gaspar_risq.html b/docs/reference/scheme_gaspar_risq.html index 3f7de5a4ae4e3320b277e024ffb16a19ddd1cdb9..bad3d6663801ebedfe74a211c666152218ee52cc 100644 --- a/docs/reference/scheme_gaspar_risq.html +++ b/docs/reference/scheme_gaspar_risq.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/scheme_insee_logement_2019.html b/docs/reference/scheme_insee_logement_2019.html index 7ce175d015e30bfc82c7eb0a454a6b36e3e1ca6c..64e7482a05d6ab2ef667dd7291a001dc59379958 100644 --- a/docs/reference/scheme_insee_logement_2019.html +++ b/docs/reference/scheme_insee_logement_2019.html @@ -1,5 +1,7 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Informations on the variables of the series 'Logements (France hors Mayotte)' from the INSEE — scheme_insee_logement_2019 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Informations on the variables of the series 'Logements (France hors Mayotte)' from the INSEE — scheme_insee_logement_2019"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Informations on the variables of the series 'Logements (France hors Mayotte)' +from the INSEE — scheme_insee_logement_2019 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Informations on the variables of the series 'Logements (France hors Mayotte)' +from the INSEE — scheme_insee_logement_2019"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, their desired type. It is used as default value in adapt_insee."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +20,7 @@ their desired type. It is used as default value in adapt_insee."><meta property= </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +46,9 @@ their desired type. It is used as default value in adapt_insee."><meta property= </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -75,7 +80,8 @@ their desired type. It is used as default value in adapt_insee."><meta property= </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Informations on the variables of the series 'Logements (France hors Mayotte)' from the INSEE</h1> + <h1>Informations on the variables of the series 'Logements (France hors Mayotte)' +from the INSEE</h1> <div class="hidden name"><code>scheme_insee_logement_2019.Rd</code></div> </div> @@ -94,32 +100,32 @@ their desired type. It is used as default value in adapt_insee.</p> <p>A data frame with 7 rows and 11 variables:</p><dl><dt>name</dt> <dd><p>character, name of variables used in floodam.data.</p></dd> - <dt>name_origin</dt> +<dt>name_origin</dt> <dd><p>character, name of variables as defined in original - data.</p></dd> +data.</p></dd> - <dt>order</dt> +<dt>order</dt> <dd><p>integer, order of the variables in original data.</p></dd> - <dt>keep</dt> +<dt>keep</dt> <dd><p>logical, defined if floodam.data will keep this variable.</p></dd> - <dt>type</dt> +<dt>type</dt> <dd><p>character, type that will be used within floodam.data.</p></dd> - <dt>label_fr</dt> +<dt>label_fr</dt> <dd><p>character, variables description in French.</p></dd> - <dt>source</dt> +<dt>source</dt> <dd><p>character, source of the variables.</p></dd> - <dt>length_source</dt> +<dt>length_source</dt> <dd><p>integer, length of variables in source.</p></dd> - <dt>type_source</dt> +<dt>type_source</dt> <dd><p>character, type of variables in source.</p></dd> - <dt>comment</dt> +<dt>comment</dt> <dd><p>character, some comments on choice made.</p></dd> diff --git a/docs/reference/scheme_rpg_1.html b/docs/reference/scheme_rpg_1.html index e9baaf0bcc2df34d23e2c043abb53b939a344280..d5ce50251be10afbec00b34667c558ff6bbd3eb4 100644 --- a/docs/reference/scheme_rpg_1.html +++ b/docs/reference/scheme_rpg_1.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Informations on the variables of RPG version 1.0 — scheme_rpg_1 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Informations on the variables of RPG version 1.0 — scheme_rpg_1"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Information on the variables of RPG version 1.0 — scheme_rpg_1 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Information on the variables of RPG version 1.0 — scheme_rpg_1"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, their desired type. It is used as default value in adapt_rpg."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +18,7 @@ their desired type. It is used as default value in adapt_rpg."><meta property="o </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ their desired type. It is used as default value in adapt_rpg."><meta property="o </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -75,7 +78,7 @@ their desired type. It is used as default value in adapt_rpg."><meta property="o </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Informations on the variables of RPG version 1.0</h1> + <h1>Information on the variables of RPG version 1.0</h1> <div class="hidden name"><code>scheme_rpg_1.Rd</code></div> </div> @@ -92,37 +95,37 @@ their desired type. It is used as default value in adapt_rpg.</p> <div id="format"> <h2>Format</h2> <p>A data frame with 9 rows and 11 variables:</p><dl><dt>name</dt> -<dd><p>character, name of varaibales used in floodam.data.</p></dd> +<dd><p>character, name of variables used in floodam.data.</p></dd> - <dt>name_origin</dt> +<dt>name_origin</dt> <dd><p>character, name of variables as defined in original - data.</p></dd> +data.</p></dd> - <dt>layer</dt> +<dt>layer</dt> <dd><p>character, name of layer where the variables is used.</p></dd> - <dt>order</dt> +<dt>order</dt> <dd><p>integer, order of the variables in original data.</p></dd> - <dt>keep</dt> +<dt>keep</dt> <dd><p>logical, defined if floodam.data will keep this variable.</p></dd> - <dt>type</dt> +<dt>type</dt> <dd><p>character, type that will be used within floodam.data.</p></dd> - <dt>label_fr</dt> +<dt>label_fr</dt> <dd><p>character, variables description in French.</p></dd> - <dt>source</dt> +<dt>source</dt> <dd><p>character, source of the variables.</p></dd> - <dt>length_source</dt> +<dt>length_source</dt> <dd><p>integer, length of variables in source.</p></dd> - <dt>type_source</dt> +<dt>type_source</dt> <dd><p>character, type of variables in source.</p></dd> - <dt>comment</dt> +<dt>comment</dt> <dd><p>character, some comments on choice made.</p></dd> diff --git a/docs/reference/scheme_rpg_2.html b/docs/reference/scheme_rpg_2.html index 7a06dcf166feb1e0a14f28c067e285a822019f06..c93d68833782b3f671f3cbe978470e2314e00e9e 100644 --- a/docs/reference/scheme_rpg_2.html +++ b/docs/reference/scheme_rpg_2.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Informations on the variables of RPG version 2.0 — scheme_rpg_2 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Informations on the variables of RPG version 2.0 — scheme_rpg_2"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Information on the variables of RPG version 2.0 — scheme_rpg_2 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Information on the variables of RPG version 2.0 — scheme_rpg_2"><meta property="og:description" content="This dataset controls also default behaviour of what variables are kept, their desired type. It is used as default value in adapt_rpg."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +18,7 @@ their desired type. It is used as default value in adapt_rpg."><meta property="o </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ their desired type. It is used as default value in adapt_rpg."><meta property="o </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -75,7 +78,7 @@ their desired type. It is used as default value in adapt_rpg."><meta property="o </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Informations on the variables of RPG version 2.0</h1> + <h1>Information on the variables of RPG version 2.0</h1> <div class="hidden name"><code>scheme_rpg_2.Rd</code></div> </div> @@ -92,37 +95,37 @@ their desired type. It is used as default value in adapt_rpg.</p> <div id="format"> <h2>Format</h2> <p>A data frame with 7 rows and 11 variables:</p><dl><dt>name</dt> -<dd><p>character, name of varaibales used in floodam.data.</p></dd> +<dd><p>character, name of variables used in floodam.data.</p></dd> - <dt>name_origin</dt> +<dt>name_origin</dt> <dd><p>character, name of variables as defined in original - data.</p></dd> +data.</p></dd> - <dt>layer</dt> -<dd><p>character, name of layer where the variables is used.</p></dd> +<dt>layer</dt> +<dd><p>character, name of layer where the variables are used.</p></dd> - <dt>order</dt> +<dt>order</dt> <dd><p>integer, order of the variables in original data.</p></dd> - <dt>keep</dt> +<dt>keep</dt> <dd><p>logical, defined if floodam.data will keep this variable.</p></dd> - <dt>type</dt> +<dt>type</dt> <dd><p>character, type that will be used within floodam.data.</p></dd> - <dt>label_fr</dt> +<dt>label_fr</dt> <dd><p>character, variables description in French.</p></dd> - <dt>source</dt> +<dt>source</dt> <dd><p>character, source of the variables.</p></dd> - <dt>length_source</dt> +<dt>length_source</dt> <dd><p>integer, length of variables in source.</p></dd> - <dt>type_source</dt> +<dt>type_source</dt> <dd><p>character, type of variables in source.</p></dd> - <dt>comment</dt> +<dt>comment</dt> <dd><p>character, some comments on choice made.</p></dd> diff --git a/docs/reference/scheme_sirene_2019.html b/docs/reference/scheme_sirene_2019.html index 417baed090d4cf1c62a8ffb081069020fc06de77..ce887a96b294df2ddae9daa27cdd4e7f85a15c23 100644 --- a/docs/reference/scheme_sirene_2019.html +++ b/docs/reference/scheme_sirene_2019.html @@ -1,7 +1,7 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Informations on the variables of geolocalized sirene data — scheme_sirene_2019 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Informations on the variables of geolocalized sirene data — scheme_sirene_2019"><meta property="og:description" content="A dataset containing the description of variables in geolocalized sirene -data. It includes information that are coming from the 2019 version of Sirene -format as maintained by INSEE and information that are coming from 'cquest' +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Information on the variables of geolocalized sirene data — scheme_sirene_2019 • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Information on the variables of geolocalized sirene data — scheme_sirene_2019"><meta property="og:description" content="A dataset containing the description of variables in geolocalized sirene +data. It includes information that is coming from the 2019 version of Sirene +format as maintained by INSEE and information that is coming from 'cquest' process for geolocalizing. This dataset controls also default behaviour of what variables are kept, their desired type. It is used as default value in adapt.geo_sirene."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> @@ -22,7 +22,7 @@ adapt.geo_sirene."><meta property="og:image" content="/logo.png"><!-- mathjax -- </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -48,6 +48,9 @@ adapt.geo_sirene."><meta property="og:image" content="/logo.png"><!-- mathjax -- </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -79,15 +82,15 @@ adapt.geo_sirene."><meta property="og:image" content="/logo.png"><!-- mathjax -- </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Informations on the variables of geolocalized sirene data</h1> + <h1>Information on the variables of geolocalized sirene data</h1> <div class="hidden name"><code>scheme_sirene_2019.Rd</code></div> </div> <div class="ref-description"> <p>A dataset containing the description of variables in geolocalized sirene -data. It includes information that are coming from the 2019 version of Sirene -format as maintained by INSEE and information that are coming from 'cquest' +data. It includes information that is coming from the 2019 version of Sirene +format as maintained by INSEE and information that is coming from 'cquest' process for geolocalizing. This dataset controls also default behaviour of what variables are kept, their desired type. It is used as default value in adapt.geo_sirene.</p> @@ -100,34 +103,34 @@ adapt.geo_sirene.</p> <div id="format"> <h2>Format</h2> <p>A data frame with 57 rows and 10 variables:</p><dl><dt>name</dt> -<dd><p>character, name of varaibales used in floodam.data.</p></dd> +<dd><p>character, name of variables used in floodam.data.</p></dd> - <dt>name.origin</dt> +<dt>name.origin</dt> <dd><p>character, name of variables as defined in original - data.</p></dd> +data.</p></dd> - <dt>order</dt> +<dt>order</dt> <dd><p>integer, order of the variables in original data.</p></dd> - <dt>keep</dt> +<dt>keep</dt> <dd><p>logical, defined if floodam.data will keep this variable.</p></dd> - <dt>type</dt> +<dt>type</dt> <dd><p>character, type that will be used within floodam.data.</p></dd> - <dt>label.french</dt> +<dt>label.french</dt> <dd><p>character, variables description in French.</p></dd> - <dt>source</dt> +<dt>source</dt> <dd><p>character, source of the variables.</p></dd> - <dt>length.source</dt> +<dt>length.source</dt> <dd><p>integer, length of variables in source.</p></dd> - <dt>type.source</dt> +<dt>type.source</dt> <dd><p>character, type of variables in source.</p></dd> - <dt>comment</dt> +<dt>comment</dt> <dd><p>character, some comments on choice made.</p></dd> diff --git a/docs/reference/scheme_sirene_na.html b/docs/reference/scheme_sirene_na.html index c11a362a6c7f8a35614a14b524bc180638de53eb..10d57bf0f86c33bd32e594cb86bc2e0d7440a534 100644 --- a/docs/reference/scheme_sirene_na.html +++ b/docs/reference/scheme_sirene_na.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Informations on na.value in geolocalized sirene data — scheme_sirene_na • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Informations on na.value in geolocalized sirene data — scheme_sirene_na"><meta property="og:description" content='A dataset containing the description of admissibile na.value other than "" in +<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Information on na.value in geolocalized sirene data — scheme_sirene_na • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Information on na.value in geolocalized sirene data — scheme_sirene_na"><meta property="og:description" content='A dataset containing the description of admissibile na.value other than "" in geolocalized sirene data. It is used as default value in adapt.geo_sirene.'><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> @@ -18,7 +18,7 @@ geolocalized sirene data. It is used as default value in adapt.geo_sirene.'><met </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ geolocalized sirene data. It is used as default value in adapt.geo_sirene.'><met </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -75,7 +78,7 @@ geolocalized sirene data. It is used as default value in adapt.geo_sirene.'><met </header><div class="row"> <div class="col-md-9 contents"> <div class="page-header"> - <h1>Informations on na.value in geolocalized sirene data</h1> + <h1>Information on na.value in geolocalized sirene data</h1> <div class="hidden name"><code>scheme_sirene_na.Rd</code></div> </div> @@ -94,7 +97,7 @@ geolocalized sirene data. It is used as default value in adapt.geo_sirene.</p> <p>A data frame with 3 rows and 2 variables:</p><dl><dt>name</dt> <dd><p>character, name of variable as used in floodam.data.</p></dd> - <dt>na.value</dt> +<dt>na.value</dt> <dd><p>character, value that is to be considered as na.value.</p></dd> diff --git a/docs/reference/send_message.html b/docs/reference/send_message.html index eb14bf081230c587a89970bbdf15ba79612fe280..1b70e58ebfd5083337c7aaa051ce68797eb6aca3 100644 --- a/docs/reference/send_message.html +++ b/docs/reference/send_message.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/shp_from_7z.html b/docs/reference/shp_from_7z.html index b0c460d592029c7cbc0dbbc6eb2c3c8606e39d2d..c80025e88c19a91ca339bb7c28355e18e6a1133c 100644 --- a/docs/reference/shp_from_7z.html +++ b/docs/reference/shp_from_7z.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Decompress a 7z archive looking for shp file — shp_from_7z • floodam.data</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Decompress a 7z archive looking for shp file — shp_from_7z"><meta property="og:description" content="The function 'shp_from_7z' uses a system call to 7z to uncompress a 7z -archive. It looks specifically for a gkpg file inside the 7z archive."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> +archive. It looks specifically for a shp file inside the 7z archive."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--></head><body data-spy="scroll" data-target="#toc"> @@ -18,7 +18,7 @@ archive. It looks specifically for a gkpg file inside the 7z archive."><meta pro </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -44,6 +44,9 @@ archive. It looks specifically for a gkpg file inside the 7z archive."><meta pro </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> @@ -82,7 +85,7 @@ archive. It looks specifically for a gkpg file inside the 7z archive."><meta pro <div class="ref-description"> <p>The function 'shp_from_7z' uses a system call to 7z to uncompress a 7z -archive. It looks specifically for a gkpg file inside the 7z archive.</p> +archive. It looks specifically for a shp file inside the 7z archive.</p> </div> <div id="ref-usage"> diff --git a/docs/reference/summarise_dwelling.html b/docs/reference/summarise_dwelling.html index 0592d98b50848c725b6e0100c7dd5c1228aa38c5..27d27dc56562c22a4daa4fbc8afed30d576517c7 100644 --- a/docs/reference/summarise_dwelling.html +++ b/docs/reference/summarise_dwelling.html @@ -19,7 +19,7 @@ dwellings are included for a structured typlogy used inside the function."><meta </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -45,6 +45,9 @@ dwellings are included for a structured typlogy used inside the function."><meta </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/to_logical.html b/docs/reference/to_logical.html index 74b128514f169c7ce24476505b8dd205eedd8178..4f79dac309f38a2db1eb7b964620cfdf3001fd42 100644 --- a/docs/reference/to_logical.html +++ b/docs/reference/to_logical.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/reference/treat_na.html b/docs/reference/treat_na.html index 0285dbbfd09156dbda53b57a2664b1ae8cd4bd01..b119413fcd2c6aee5e0adbc07ae85b56779d2662 100644 --- a/docs/reference/treat_na.html +++ b/docs/reference/treat_na.html @@ -17,7 +17,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">floodam.data</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.34.1</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.9.35.0</span> </span> </div> @@ -43,6 +43,9 @@ </li> <li class="divider"> <li class="dropdown-header">database (Fr)</li> + <li> + <a href="../articles/admin_express_fr.html">Admin express (French)</a> + </li> <li> <a href="../articles/ban_fr.html">BAN (French)</a> </li> diff --git a/docs/sitemap.xml b/docs/sitemap.xml index b07fec2609b2dc2da95565503f6b31d7e22d1ef0..0094e2b8a37ea37255382950458aa0c6b40f991f 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -3,6 +3,9 @@ <url> <loc>/404.html</loc> </url> + <url> + <loc>/articles/admin_express_fr.html</loc> + </url> <url> <loc>/articles/ban_fr.html</loc> </url> @@ -51,6 +54,9 @@ <url> <loc>/reference/adapt.rpg.html</loc> </url> + <url> + <loc>/reference/adapt_admin_express.html</loc> + </url> <url> <loc>/reference/adapt_ban.html</loc> </url> @@ -75,6 +81,9 @@ <url> <loc>/reference/add_journal_new.html</loc> </url> + <url> + <loc>/reference/add_journal_old.html</loc> + </url> <url> <loc>/reference/add_log_info.html</loc> </url> @@ -87,6 +96,9 @@ <url> <loc>/reference/alert_mattermost.html</loc> </url> + <url> + <loc>/reference/analyse_archive.html</loc> + </url> <url> <loc>/reference/analyse_catnat.html</loc> </url> @@ -105,6 +117,9 @@ <url> <loc>/reference/apply_scheme.html</loc> </url> + <url> + <loc>/reference/basename_extended.html</loc> + </url> <url> <loc>/reference/bd_topo_nature_reclass.html</loc> </url> @@ -168,6 +183,9 @@ <url> <loc>/reference/download.rpg.html</loc> </url> + <url> + <loc>/reference/download_admin_express.html</loc> + </url> <url> <loc>/reference/download_archive.html</loc> </url> @@ -198,6 +216,9 @@ <url> <loc>/reference/fmt.html</loc> </url> + <url> + <loc>/reference/format_archive.html</loc> + </url> <url> <loc>/reference/format_scope.html</loc> </url> @@ -273,9 +294,18 @@ <url> <loc>/reference/region.html</loc> </url> + <url> + <loc>/reference/save_archive.html</loc> + </url> <url> <loc>/reference/scheme_admin_express.html</loc> </url> + <url> + <loc>/reference/scheme_admin_express_2_0.html</loc> + </url> + <url> + <loc>/reference/scheme_admin_express_3_1.html</loc> + </url> <url> <loc>/reference/scheme_ban.html</loc> </url> diff --git a/inst/extdata/origin-ign.csv b/inst/extdata/origin-ign.csv new file mode 100644 index 0000000000000000000000000000000000000000..0a895aee18bc3e728406752fca75085f9405a61f --- /dev/null +++ b/inst/extdata/origin-ign.csv @@ -0,0 +1,34 @@ +"name","url","producer","documentation","description" +"Admin Express","adminexpress","IGN","donnees/vecteur/adminexpress","Le découpage administratif du territoire français (commune, arrondissement départemental, département, région)." +"ADRESSE PREMIUM","adressepremium",,"donnees/vecteur/adressepremium","Une base de données qui permet de lier l'adresse à son environnement." +"BCAE","bcae",,"donnees/vecteur/bcae","Identification des cours d'eau concernés par les règles des bonnes conditions agricoles et environnementales" +"BD ALTI","bdalti",,"donnees/alti/bdalti","Le modèle numérique de terrain (MNT) maillé qui décrit le relief du territoire français à moyenne échelle" +"BD CARTO","bdcarto","IGN","donnees/vecteur/bdcarto","Une description vectorielle homogène des différents éléments du paysage avec une précision décamétrique. Il s’agit d’une base « moyenne échelle »." +"BD CARTO État-Major","bdcarto-em","IGN","donnees/vecteur/bdcarto-em","Une description vectorielle des éléments du paysage du XIXème siècle issue des cartes d’État-major au 1 : 40 000 sur la France métropolitaine." +"BD FORET","bdforet","IGN","donnees/vecteur/bdforet","Un référentiel géographique forestier pour les professionnels de la filière bois et pour les acteurs de l'environnement et de… " +"BD Haie","bdhaie","IGN","donnees/vecteur/bdhaie","Couche nationale de référence des haies linéaires en France métropolitaine" +"BD ORTHO","bdortho","IGN","donnees/ortho/bdortho","L'image géographique du territoire national, la France vue du ciel" +"BD ORTHO Historique","bdorthohisto",,"donnees/ortho/bdorthohisto","La France vue du ciel, de 1945 à 1965" +"BD PARCELLAIRE","bdparcellaire","IGN","donnees/parcellaire/bdparcellaire","La version informatisée, géoréférencée et assemblée du plan cadastral." +"BD TOPO","bdtopo","IGN","donnees/vecteur/bdtopo","La modélisation 2D et 3D du territoire et de ses infrastructures sur l'ensemble du territoire français" +"BDPR","bdpr",,"donnees/vecteur/bdpr","Une description des points de repères situés sur les routes départementales, nationales ou infrastructures autoroutières concédées…" +"Contours... IRIS","contoursiris",,"donnees/vecteur/contoursiris","La version informatisée, géoréférencée et assemblée du plan cadastral" +"Courbes de niveau","courbes-de-niveau",,"donnees/alti/courbes-de-niveau","Un modèle numérique de terrain sous forme de courbes de même altitude décrivant le relief français." +"GEOFLA","geofla",,"donnees/vecteur/geofla","Une base de données décrivant le découpage administratif français, remplacée par Admin Express en 2016." +"IRIS... GE","irisge",,"donnees/vecteur/irisge","La description des Iris recalés sur les données BD TOPO® (précision 1 m)." +"LiDAR HD","lidarhd","IGN","donnees/alti/lidarhd","Une cartographie 3D du sol et du sursol de la France." +"Limite terre-mer","limite-terre-mer",,,"La donnée « Limite terre-mer » est une limite qui correspond à la hauteur du niveau de la mer, mesurée ou modélisée, lors des plus…" +"NUALID","nualid","IGN","donnees/alti/nualid","L'ensemble des données LiDAR produites par l'IGN et ses partenaires depuis 2010 (Hors LiDAR HD). " +"OCS GE","ocsge","IGN","donnees/vecteur/ocsge","Un référentiel national utilisable aux différents échelons territoriaux pour la mise en place des politiques d'aménagement du territoire et des documents d'urbanisme." +"ORTHO-SAT","ortho-sat",,"donnees/ortho/bdortho-sat","Les ortho-images issues de prises de vues satellitaires " +"Parcellaire Express (PCI)","parcellaire-express-pci",,"donnees/parcellaire/parcellaire-express-pci","L'information cadastrale numérique, géoréférencée et continue sur l'ensemble du territoire français" +"PCRS","pcrs",,"donnees/ortho/pcrs","Le Plan Corps de Rue Simplifié est un fond de plan à très haute précision " +"RGE ALTI","rgealti","IGN","donnees/alti/rgealti","Le modèle numérique de terrain (MNT) maillé qui décrit le relief du territoire français à grande échelle " +"ROUTE 500","route500","IGN","donnees/vecteur/route500","Dédiée aux applications cartographiques et routières à l'échelon régional, cette base proposait historiquement la description du réseau routier classé (500 000 km de voies). Elle correspond désormais au réseau routier de la BD CARTO. L’édition 2021 sera la dernière." +"RPG","rpg","ASP","donnees/vecteur/rpg","Une base de données géographiques servant de référence à l'instruction des aides de la politique agricole commune (PAC) " +"SCAN 100","scan100",,"donnees/cartes/scan100","Un compromis parfait entre une représentation topographique plutôt riche et une visualisation globale du territoire" +"SCAN 1000","scan1000",,"donnees/cartes/scan1000","Une vision d'ensemble de la France avec ses réseaux de transport et son occupation du sol " +"SCAN 25","scan25",,"donnees/cartes/scan25","Référentiel unique, reconnu pour sa richesse topographique, le SCAN 25® offre une représentation exemplaire du territoire." +"SCAN Historique","scanhisto",,"donnees/cartes/scanhisto","La version numérique continue et géoréférencée des cartes anciennes " +"SCAN OACI","scanoaci",,"donnees/cartes/scanoaci","Les cartes aéronautiques de référence dans le domaine de l'aviation civile " +"SCAN Régional","scanreg",,"donnees/cartes/scanreg","Une description riche et précise du territoire à petite échelle, mêlée à une information touristique pertinente" diff --git a/inst/extdata/scheme_admin_express.csv b/inst/extdata/scheme_admin_express.csv deleted file mode 100644 index 684623160ff1ea638ac65382f0a7c66537e7b32b..0000000000000000000000000000000000000000 --- a/inst/extdata/scheme_admin_express.csv +++ /dev/null @@ -1,27 +0,0 @@ -"name";"name.origin";"layer";"order";"keep";"type";"label.fr";"source";"length.source";"type.source";"comment" -"id";"ID";"COMMUNE";1;"FALSE";"character";"Identifiant de la commune";"IGN";24;"character"; -"commune.label.fr";"NOM_COM";"COMMUNE";2;"TRUE";"character";"Nom de la commune";"IGN";50;"character"; -"commune.label.fr.cap";"NOM_COM_M";"COMMUNE";3;"FALSE";"character";"Nom de la commune en majuscules";"IGN";50;"character"; -"commune";"INSEE_COM";"COMMUNE";4;"TRUE";"character";"Numéro INSEE de la commune";"IGN";5;"character"; -"status";"STATUT";"COMMUNE";5;"FALSE";"character";"Statut administratif";"IGN";22;"character"; -"district";"INSEE_ARR";"COMMUNE";6;"FALSE";"character";"Numéro INSEE de l’arrondissement";"IGN";2;"character"; -"department";"INSEE_DEP";"COMMUNE";7;"TRUE";"character";"Numéro INSEE du département";"IGN";3;"character"; -"region";"INSEE_REG";"COMMUNE";8;"FALSE";"character";"Numéro INSEE de la région";"IGN";2;"character"; -"epci";"CODE_EPCI";"COMMUNE";9;"TRUE";"character";"Code de l’EPCI";"IGN";21;"character"; -"population";"POPULATION";"COMMUNE";10;"TRUE";"integer";"Population de la commune";"IGN";8;"integer"; -"type";"TYPE";"COMMUNE";11;"FALSE";"character";"Type de la commune selon le COG";"IGN";3;"character"; -"id";"ID";"DEPARTEMENT";1;"FALSE";"character";"Identifiant du département";"IGN";24;"character"; -"department.label.fr";"NOM_DEP";"DEPARTEMENT";2;"TRUE";"character";"Nom du département";"IGN";30;"character"; -"department.label.fr.cap";"NOM_DEP_M";"DEPARTEMENT";3;"FALSE";"character";"Nom du département en capitales";"IGN";30;"character"; -"department";"INSEE_DEP";"DEPARTEMENT";4;"TRUE";"character";"Numéro INSEE du département";"IGN";3;"character"; -"region";"INSEE_REG";"DEPARTEMENT";5;"TRUE";"character";"Numéro INSEE de la région";"IGN";2;"character"; -"capital";"CHF_DEP";"DEPARTEMENT";6;"FALSE";"character";"Code INSEE de la commune chef-lieu du département";"IGN";5;"character";"Apparemment non présent dans les versions récentes" -"id";"ID";"EPCI";1;"FALSE";"character";"Identifiant de l’EPCI";"IGN";24;"character"; -"epci";"CODE_EPCI";"EPCI";2;"TRUE";"character";"Code de l’EPCI";"IGN";9;"character"; -"epci.label.fr";"NOM_EPCI";"EPCI";3;"TRUE";"character";"Nom de l’EPCI";"IGN";230;"character"; -"type";"TYPE_EPCI";"EPCI";4;"TRUE";"character";"Type de l’EPCI";"IGN";9;"character"; -"id";"ID";"REGION";1;"FALSE";"character";"Identifiant de la région";"IGN";24;"character"; -"region.label.fr";"NOM_REG";"REGION";2;"TRUE";"character";"Nom de la région";"IGN";35;"character"; -"region.label.fr.cap";"NOM_REG_M";"REGION";3;"FALSE";"character";"Nom de la région";"IGN";35;"character"; -"region";"INSEE_REG";"REGION";4;"TRUE";"character";"Numéro INSEE de la région";"IGN";2;"character"; -"capital";"CHF_REG";"REGION";5;"FALSE";"character";"Code INSEE du chef-lieu de la région";"IGN";5;"character";"Apparemment non présent dans les versions récentes" diff --git a/inst/extdata/scheme_admin_express_2_0.csv b/inst/extdata/scheme_admin_express_2_0.csv new file mode 100644 index 0000000000000000000000000000000000000000..22d3c1bed6da58f9d91521b7cf83bd03031583ea --- /dev/null +++ b/inst/extdata/scheme_admin_express_2_0.csv @@ -0,0 +1,27 @@ +"name","name_origin","layer","order","keep","type","label_fr","source","length_source","type_source","comment" +"id","ID","COMMUNE",1,"FALSE","character","Identifiant de la commune","IGN",24,"character", +"commune_label_fr","NOM_COM","COMMUNE",2,"TRUE","character","Nom de la commune","IGN",50,"character", +"commune_label_fr_cap","NOM_COM_M","COMMUNE",3,"FALSE","character","Nom de la commune en majuscules","IGN",50,"character", +"commune","INSEE_COM","COMMUNE",4,"TRUE","character","Numéro INSEE de la commune","IGN",5,"character", +"status","STATUT","COMMUNE",5,"FALSE","character","Statut administratif","IGN",22,"character", +"district","INSEE_ARR","COMMUNE",6,"FALSE","character","Numéro INSEE de l'arrondissement","IGN",2,"character", +"department","INSEE_DEP","COMMUNE",7,"TRUE","character","Numéro INSEE du département","IGN",3,"character", +"region","INSEE_REG","COMMUNE",8,"FALSE","character","Numéro INSEE de la région","IGN",2,"character", +"epci","CODE_EPCI","COMMUNE",9,"TRUE","character","Code de l'EPCI","IGN",21,"character", +"population","POPULATION","COMMUNE",10,"TRUE","integer","Population de la commune","IGN",8,"integer", +"type","TYPE","COMMUNE",11,"FALSE","character","Type de la commune selon le COG","IGN",3,"character", +"id","ID","DEPARTEMENT",1,"FALSE","character","Identifiant du département","IGN",24,"character", +"department_label_fr","NOM_DEP","DEPARTEMENT",2,"TRUE","character","Nom du département","IGN",30,"character", +"department_label_fr_cap","NOM_DEP_M","DEPARTEMENT",3,"FALSE","character","Nom du département en capitales","IGN",30,"character", +"department","INSEE_DEP","DEPARTEMENT",4,"TRUE","character","Numéro INSEE du département","IGN",3,"character", +"region","INSEE_REG","DEPARTEMENT",5,"TRUE","character","Numéro INSEE de la région","IGN",2,"character", +"capital","CHF_DEP","DEPARTEMENT",6,"FALSE","character","Code INSEE de la commune chef-lieu du département","IGN",5,"character","Apparemment non présent dans les versions récentes" +"id","ID","EPCI",1,"FALSE","character","Identifiant de l'EPCI","IGN",24,"character", +"epci","CODE_EPCI","EPCI",2,"TRUE","character","Code de l'EPCI","IGN",9,"character", +"epci_label_fr","NOM_EPCI","EPCI",3,"TRUE","character","Nom de l'EPCI","IGN",230,"character", +"type","TYPE_EPCI","EPCI",4,"TRUE","character","Type de l'EPCI","IGN",9,"character", +"id","ID","REGION",1,"FALSE","character","Identifiant de la région","IGN",24,"character", +"region_label_fr","NOM_REG","REGION",2,"TRUE","character","Nom de la région","IGN",35,"character", +"region_label_fr_cap","NOM_REG_M","REGION",3,"FALSE","character","Nom de la région","IGN",35,"character", +"region","INSEE_REG","REGION",4,"TRUE","character","Numéro INSEE de la région","IGN",2,"character", +"capital","CHF_REG","REGION",5,"FALSE","character","Code INSEE du chef-lieu de la région","IGN",5,"character","Apparemment non présent dans les versions récentes" diff --git a/inst/extdata/scheme_admin_express_3_1.csv b/inst/extdata/scheme_admin_express_3_1.csv index 684623160ff1ea638ac65382f0a7c66537e7b32b..c2068629ceea48207bf409c2e04b88449b083152 100644 --- a/inst/extdata/scheme_admin_express_3_1.csv +++ b/inst/extdata/scheme_admin_express_3_1.csv @@ -1,27 +1,25 @@ -"name";"name.origin";"layer";"order";"keep";"type";"label.fr";"source";"length.source";"type.source";"comment" -"id";"ID";"COMMUNE";1;"FALSE";"character";"Identifiant de la commune";"IGN";24;"character"; -"commune.label.fr";"NOM_COM";"COMMUNE";2;"TRUE";"character";"Nom de la commune";"IGN";50;"character"; -"commune.label.fr.cap";"NOM_COM_M";"COMMUNE";3;"FALSE";"character";"Nom de la commune en majuscules";"IGN";50;"character"; -"commune";"INSEE_COM";"COMMUNE";4;"TRUE";"character";"Numéro INSEE de la commune";"IGN";5;"character"; -"status";"STATUT";"COMMUNE";5;"FALSE";"character";"Statut administratif";"IGN";22;"character"; -"district";"INSEE_ARR";"COMMUNE";6;"FALSE";"character";"Numéro INSEE de l’arrondissement";"IGN";2;"character"; -"department";"INSEE_DEP";"COMMUNE";7;"TRUE";"character";"Numéro INSEE du département";"IGN";3;"character"; -"region";"INSEE_REG";"COMMUNE";8;"FALSE";"character";"Numéro INSEE de la région";"IGN";2;"character"; -"epci";"CODE_EPCI";"COMMUNE";9;"TRUE";"character";"Code de l’EPCI";"IGN";21;"character"; -"population";"POPULATION";"COMMUNE";10;"TRUE";"integer";"Population de la commune";"IGN";8;"integer"; -"type";"TYPE";"COMMUNE";11;"FALSE";"character";"Type de la commune selon le COG";"IGN";3;"character"; -"id";"ID";"DEPARTEMENT";1;"FALSE";"character";"Identifiant du département";"IGN";24;"character"; -"department.label.fr";"NOM_DEP";"DEPARTEMENT";2;"TRUE";"character";"Nom du département";"IGN";30;"character"; -"department.label.fr.cap";"NOM_DEP_M";"DEPARTEMENT";3;"FALSE";"character";"Nom du département en capitales";"IGN";30;"character"; -"department";"INSEE_DEP";"DEPARTEMENT";4;"TRUE";"character";"Numéro INSEE du département";"IGN";3;"character"; -"region";"INSEE_REG";"DEPARTEMENT";5;"TRUE";"character";"Numéro INSEE de la région";"IGN";2;"character"; -"capital";"CHF_DEP";"DEPARTEMENT";6;"FALSE";"character";"Code INSEE de la commune chef-lieu du département";"IGN";5;"character";"Apparemment non présent dans les versions récentes" -"id";"ID";"EPCI";1;"FALSE";"character";"Identifiant de l’EPCI";"IGN";24;"character"; -"epci";"CODE_EPCI";"EPCI";2;"TRUE";"character";"Code de l’EPCI";"IGN";9;"character"; -"epci.label.fr";"NOM_EPCI";"EPCI";3;"TRUE";"character";"Nom de l’EPCI";"IGN";230;"character"; -"type";"TYPE_EPCI";"EPCI";4;"TRUE";"character";"Type de l’EPCI";"IGN";9;"character"; -"id";"ID";"REGION";1;"FALSE";"character";"Identifiant de la région";"IGN";24;"character"; -"region.label.fr";"NOM_REG";"REGION";2;"TRUE";"character";"Nom de la région";"IGN";35;"character"; -"region.label.fr.cap";"NOM_REG_M";"REGION";3;"FALSE";"character";"Nom de la région";"IGN";35;"character"; -"region";"INSEE_REG";"REGION";4;"TRUE";"character";"Numéro INSEE de la région";"IGN";2;"character"; -"capital";"CHF_REG";"REGION";5;"FALSE";"character";"Code INSEE du chef-lieu de la région";"IGN";5;"character";"Apparemment non présent dans les versions récentes" +"name","name_origin","layer","order","keep","type","label_fr","source","length_source","type_source","comment" +"id","ID","COMMUNE",1,"FALSE","character","Identifiant de la commune","IGN",24,"character", +"commune_label_fr","NOM","COMMUNE",2,"TRUE","character","Nom de la commune","IGN",50,"character", +"commune_label_fr_cap","NOM_M","COMMUNE",3,"FALSE","character","Nom de la commune en majuscules","IGN",50,"character", +"commune","INSEE_COM","COMMUNE",4,"TRUE","character","Code INSEE de la commune","IGN",5,"character", +"status","STATUT","COMMUNE",5,"FALSE","character","Statut administratif","IGN",22,"character", +"population","POPULATION","COMMUNE",6,"TRUE","integer","Population de la commune","IGN",8,"integer", +"canton","INSEE_CAN","COMMUNE",7,"FALSE","character","Code INSEE du canton","IGN",2,"character", +"district","INSEE_ARR","COMMUNE",8,"FALSE","character","Code INSEE de l'arrondissement","IGN",2,"character", +"department","INSEE_DEP","COMMUNE",9,"TRUE","character","Code INSEE du département","IGN",3,"character", +"region","INSEE_REG","COMMUNE",10,"TRUE","character","Code INSEE de la région","IGN",2,"character", +"epci","SIREN_EPCI","COMMUNE",11,"TRUE","character","Code SIREN des EPCI","IGN",21,"character", +"id","ID","DEPARTEMENT",1,"FALSE","character","Identifiant du département","IGN",24,"character", +"department_label_fr_cap","NOM_M","DEPARTEMENT",2,"FALSE","character","Nom du département en majuscules","IGN",30,"character", +"department_label_fr","NOM","DEPARTEMENT",3,"TRUE","character","Nom du département","IGN",30,"character", +"department","INSEE_DEP","DEPARTEMENT",4,"TRUE","character","Code INSEE du département","IGN",3,"character", +"region","INSEE_REG","DEPARTEMENT",5,"TRUE","character","Code INSEE de la région","IGN",2,"character", +"id","ID","EPCI",1,"FALSE","character","Identifiant de l'EPCI","IGN",24,"character", +"epci","CODE_SIREN","EPCI",2,"TRUE","character","Code SIREN de l'entité administrative","IGN",9,"character", +"epci_label_fr","NOM","EPCI",3,"TRUE","character","Nom de l'EPCI","IGN",230,"character", +"type","NATURE","EPCI",4,"TRUE","character","Nature de l'EPCI","IGN",9,"character", +"id","ID","REGION",1,"FALSE","character","Identifiant de la région","IGN",24,"character", +"region_label_fr_cap","NOM_REG_M","REGION",2,"FALSE","character","Nom de la région en majuscules","IGN",35,"character", +"region_label_fr","NOM_REG","REGION",3,"TRUE","character","Nom de la région","IGN",35,"character", +"region","INSEE_REG","REGION",4,"TRUE","character","Code INSEE de la région","IGN",2,"character", diff --git a/inst/extdata/scheme_insee_logement_2019.csv b/inst/extdata/scheme_insee_logement_2019.csv index 121a575914fbaa94221d6f7720d7ef30297942d8..735023161f362221f3fdcb59cc489d53d307d34c 100644 --- a/inst/extdata/scheme_insee_logement_2019.csv +++ b/inst/extdata/scheme_insee_logement_2019.csv @@ -1,8 +1,8 @@ "name";"name_origin";"order";"keep";"type";"label_fr";"source";"length_source";"type_source";"comment" -"niv_geo";"NIVGEO";1;"FALSE";"character";"niveau administrative";"insee.fr";"NA";"character";"niveau administrative groupant les données." +"niv_geo";"NIVGEO";1;"FALSE";"character";"niveau administratif";"insee.fr";"NA";"character";"niveau administratif groupant les données." "commune";"CODGEO";2;"TRUE";"character";"Code INSEE";"insee.fr";"NA";"character";"Code INSEE de la commune actuelle sur la base du Code Officiel géographique en vigueur" "commune_name";"LIBGEO";3;"FALSE";"character";"Nom officiel de la commune";"insee.fr";"NA";"character";"Nom officiel de la commune actuelle" -"cat_loge";"CATL";4;"FALSE";"factor";"Catégorie de logement";"insee.fr";"NA";"integer";"Catégorie de logement : 1) résidences principales; 2)logements occasionnels; 3)résidences secondaires; 4)logements vacants" +"usage";"CATL";4;"FALSE";"factor";"Catégorie de logement";"insee.fr";"NA";"integer";"Catégorie de logement : 1) résidences principales; 2)logements occasionnels; 3)résidences secondaires; 4)logements vacants" "period";"ACHL20";5;"TRUE";"factor";"Epoque d'achèvement de la construction";"insee.fr";"NA";"character";"Epoque d'achèvement de la construction : A11) Avant 1919; A12) De 1919 à 1945; B11) De 1946 à 1970; B12) De 1971 à 1990; C100) De 1991 à 2005; C106P) De 2006 à 2015" -"type_loge";"TYPLR";6;"TRUE";"factor";"Type de logement";"insee.fr";"NA";"integer";"Type de logement : 1) maisons; 2) appartements; 3) autres" -"n_loge";"NB";7;"TRUE";"numeric";"Nombre de logements";"insee.fr";"NA";"character";"Nombre de logements. Pour une raison inconnue le nombre contient des chiffres decimaux" +"type";"TYPLR";6;"TRUE";"factor";"Type de logement";"insee.fr";"NA";"integer";"Type de logement : 1) maisons; 2) appartements; 3) autres" +"dwelling";"NB";7;"TRUE";"numeric";"Nombre de logements";"insee.fr";"NA";"character";"Nombre de logements. Pour une raison inconnue le nombre contient des chiffres decimaux" diff --git a/man/adapt.admin_express.Rd b/man/adapt.admin_express.Rd deleted file mode 100644 index acaef2d71f204a86865a15f9d90a528f711b639e..0000000000000000000000000000000000000000 --- a/man/adapt.admin_express.Rd +++ /dev/null @@ -1,60 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/adapt.admin_express.R -\encoding{UTF-8} -\name{adapt.admin_express} -\alias{adapt.admin_express} -\title{Adapt ADMIN EXPRESS data} -\usage{ -adapt.admin_express( - origin, - destination, - archive, - export = "rds", - scheme = floodam.data::scheme_admin_express, - layer = NULL, - projection = 4326, - retrieve = FALSE, - verbose = FALSE -) -} -\arguments{ -\item{origin}{character, path to the directory where archive are stored} - -\item{destination}{character, path to the directory where results should be saved} - -\item{archive}{character, vector of archive to be adpated} - -\item{export}{character, option for export format of the results} - -\item{scheme}{data.frame, how archive variables should be treated} - -\item{layer}{character, wchi layer should be treated} - -\item{projection}{integer or object of type CRS giving projection} - -\item{retrieve}{logical, should the result be returned} - -\item{verbose}{logical, should the function give some sumup informations.} -} -\value{ -if retrieve = TRUE, sf object of adapated data stored in archive. -} -\description{ -The following treatment are performed: -- the projection is set to projection -- the geometry is made valid -- the output is saved as rds in given destination -- for COMMUNE layer, the output is saved at department level -} -\examples{ - -\dontrun{ -origin = "" -destination = tempdir() -archive = "RPG_2-0__SHP_LAMB93_FR-2018_2018-01-15.7z" -result = adapt_rpg(archive, origin, destination, verbose = TRUE, retrieve = TRUE) -} -} -\author{ -Victor Champonnois et Frédéric Grelot -} diff --git a/man/adapt.eaip.Rd b/man/adapt.eaip.Rd index 38fd0ce91ef1f8abae186fd8153ace93f6d208dc..4b1a48efe9124b747f7717b94c380269d406fb35 100644 --- a/man/adapt.eaip.Rd +++ b/man/adapt.eaip.Rd @@ -41,11 +41,13 @@ if retrieve = TRUE, sf object representing eaip for asked departments. } \description{ The following treatment are performed: -- all files for a given department are grouped (through a sf rbind) -- only some common variables are kept -- the projection is set to projection -- the geometry is made valid -- the output is saved at department level as rds in given destination +\itemize{ +\item all files for a given department are grouped (through a sf rbind) +\item only some common variables are kept +\item the projection is set to projection +\item the geometry is made valid +\item the output is saved at department level as rds in given destination +} } \examples{ diff --git a/man/adapt.geo_sirene.Rd b/man/adapt.geo_sirene.Rd index 7608b807db79abe07eb21d6caa0c48a1e40f7921..26b6a745a14912b3c0832927d12952c6e282d31f 100644 --- a/man/adapt.geo_sirene.Rd +++ b/man/adapt.geo_sirene.Rd @@ -36,7 +36,7 @@ adapt.geo_sirene( \item{projection}{optional numeric, 4 digits projection to use} -\item{order_by}{optional character, name of the variable to sort the output data. +\item{order_by}{optional character, name of the variable to sort the output data. Default sorting is by state and eaip (if added).} \item{retrieve}{logical, should the result be returned} @@ -48,12 +48,14 @@ if retrieve = TRUE, data.frame of adapated data stored in archive. } \description{ The following treatment are performed: -- Only some fileds are selected, field names (colnames) are consistently set. -- NA values are consistently set. -- Type of fields are consistently set, some checks are performed on transformations. -- Data set is cut and saved by departments -- Only observations with spatial coordinates are kept. -- Exposition of observations (belonging or not to eaip) is added. +\itemize{ +\item Only some fileds are selected, field names (colnames) are consistently set. +\item NA values are consistently set. +\item Type of fields are consistently set, some checks are performed on transformations. +\item Data set is cut and saved by departments +\item Only observations with spatial coordinates are kept. +\item Exposition of observations (belonging or not to eaip) is added. +} } \examples{ diff --git a/man/adapt_admin_express.Rd b/man/adapt_admin_express.Rd new file mode 100644 index 0000000000000000000000000000000000000000..3d3af0095c170ae26a7ed04e31574f0ca364a4ed --- /dev/null +++ b/man/adapt_admin_express.Rd @@ -0,0 +1,82 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/adapt_admin_express.R +\encoding{UTF-8} +\name{adapt_admin_express} +\alias{adapt_admin_express} +\title{Adapt Admin Express archives} +\usage{ +adapt_admin_express( + origin, + destination, + archive, + layer = NULL, + scheme = floodam.data::scheme_admin_express_3_1, + projection = 4326, + extension = "rds", + journal = TRUE, + retrieve = FALSE, + verbose = TRUE +) +} +\arguments{ +\item{origin}{character, path to the directory where archive are stored.} + +\item{destination}{character, path to the directory where results should be +saved.} + +\item{archive}{character, vector of archive to be adpated.} + +\item{layer}{character, which layer should be treated.} + +\item{scheme}{data.frame, how archive variables should be treated.} + +\item{projection}{integer or object of type CRS giving projection.} + +\item{extension}{character, option for extension and so format of saving of +results.} + +\item{journal}{logical, should a journal file be saved.} + +\item{retrieve}{logical, should the result be returned.} + +\item{verbose}{logical, should the function give some sumup informations.} +} +\value{ +if retrieve = TRUE, sf object of adapated data stored in archive. +This may be a list if the function implies recursive calls. +} +\description{ +\code{adapt_admin_express} treats Admin Express archives to be in a standard +format. It is suited for IGN archives. It used by default +\code{scheme_admin_express_3_1} as scheme. For older versions +\code{scheme_admin_express_2_0} is also available. + +Beware that code{adapt_admin_express} will perform all possibles combinations +of archives present in origin and layers available in scheme if those +parameters are not specified. +} +\details{ +The following treatment are performed: +\itemize{ +\item depending on how many archives and layers are to be treated, a recursive +call may be perform to do all desired combinations. +\item archive is read with \code{\link[=read_with_scheme]{read_with_scheme()}}, which may imply that it is +uncompressed, then read (usually as a shp or a gpkg file), reprojected if +asked, and finally adapted. +\item the output is saved as rds in given destination withe\code{\link[=save_archive]{save_archive()}}. The +name of archive include a precision depending on the layer chosen. For layer +'COMMUNE', the saving is made by departments. +} +} +\examples{ + +\dontrun{ +origin = "" +destination = tempdir() +archive = "RPG_2-0__SHP_LAMB93_FR-2018_2018-01-15.7z" +result = adapt_rpg(archive, origin, destination, verbose = TRUE, retrieve = TRUE) +} +} +\author{ +Frédéric Grelot and Victor Champonnois +} diff --git a/man/adapt_ban.Rd b/man/adapt_ban.Rd index 76c9a506396eb0d7d06b924ffb39bafeef06b36b..3a8107698fc4f4c3eebc92408200ea04101e8891 100644 --- a/man/adapt_ban.Rd +++ b/man/adapt_ban.Rd @@ -13,8 +13,8 @@ adapt_ban( projection = 4326, path_eaip = NULL, path_admin = NULL, - journal = TRUE, map = FALSE, + journal = TRUE, retrieve = FALSE, verbose = TRUE ) @@ -34,10 +34,10 @@ adapt_ban( \item{path_admin}{character, path where admin archives should be found.} -\item{journal}{logical, should a journal file be saved.} - \item{map}{logical, should a map be plotted (for check purpose).} +\item{journal}{logical, should a journal file be saved.} + \item{retrieve}{logical, should the result be returned.} \item{verbose}{logical, should the function give some sumup informations.} @@ -47,9 +47,11 @@ if retrieve = TRUE, data.frame of adapated data stored in archive. } \description{ The following treatments are performed: -- data is adapated consistently with theme -- eaip information is added. -- if scope is given, a subpart of data is also saved. +\itemize{ +\item data is adapated consistently with theme +\item eaip information is added. +\item if scope is given, a subpart of data is also saved. +} } \author{ Frédéric Grelot diff --git a/man/adapt_gaspar.Rd b/man/adapt_gaspar.Rd index 6236081ecac74ba091cac2521a14acbd90b4c4b8..be3e225c41a53d02410e766152102d27fdcbb1f2 100644 --- a/man/adapt_gaspar.Rd +++ b/man/adapt_gaspar.Rd @@ -45,9 +45,11 @@ if retrieve = TRUE, data.frame of adapated data stored in archive. } \description{ The following treatments are performed: -- data is adapated consistently with theme -- only data corresponding to flood hazards are kept -- if scope is given, a subpart of data is also saved +\itemize{ +\item data is adapated consistently with theme +\item only data corresponding to flood hazards are kept +\item if scope is given, a subpart of data is also saved +} } \examples{ diff --git a/man/adapt_rpg.Rd b/man/adapt_rpg.Rd index ad120885fc2d4d276b6afc6bf628f74d43a829b6..1388c363728bbc9d3f107e3848bd75ffc84fbebd 100644 --- a/man/adapt_rpg.Rd +++ b/man/adapt_rpg.Rd @@ -47,10 +47,12 @@ if retrieve = TRUE, sf object of adapated data stored in archive. } \description{ The following treatment are performed: -- the projection is set to projection -- the geometry is made valid -- flood exposition is set through intersection with eaip -- the output is saved at department level as rds in given destination +\itemize{ +\item the projection is set to projection +\item the geometry is made valid +\item flood exposition is set through intersection with eaip +\item the output is saved at department level as rds in given destination +} } \examples{ diff --git a/man/add_journal.Rd b/man/add_journal.Rd index 3e2ed9afb4ecf197ff511cae9f6269139edc6016..6da201523c8498544fd199401493f3ffdab33635 100644 --- a/man/add_journal.Rd +++ b/man/add_journal.Rd @@ -1,31 +1,85 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/utilities.R +% Please edit documentation in R/add_journal.R \encoding{UTF-8} \name{add_journal} \alias{add_journal} -\title{Add information to a journal} +\title{Manage a journal for follow-up of tasks} \usage{ -add_journal(..., journal = character(), verbose = FALSE, first = FALSE) +add_journal(journal, task, status, id, degree = 0, verbose = TRUE) } \arguments{ -\item{...}{zero or more objects which can be coerced to character.} +\item{journal}{data.frame, journal to be amended. May be missing (see +details).} -\item{journal}{character vector, journal} +\item{task}{character, description of the task. May be missing (see +details).} -\item{verbose}{logical, should x generates a diagnostic message} +\item{status}{character, description of how the task has been performed. May +be missing (see details).} -\item{first}{logical, should ... be considered as a first message or a second one preceeded by tabulation} +\item{id}{integer, row of the task to be amended. May be missing (see +details).} + +\item{degree}{integer, indicates how deep is the task} + +\item{verbose}{logical, should a message be sent. Default to TRUE.} } \value{ -updated journal +a data frame of journal information. } \description{ -Use a modality for TRUE and onther for FALSE +The function manages the log information for tasks that need to be linked to +each other. While the information is stored as a data.frame, it is presented +or saved as formatted character when asked to be presented (for instance when +verbose is set to TRUE). +} +\details{ +If the parameter 'journal' is missing, \code{add_journal} creates an +empty journal (a data.frame with the expected format). The data.frame have +5 columns: 'start', 'end', 'task', 'status', 'degree', and 'elapsed'. + +If the parameter 'task' is not missing, and if no 'status' is given, +\code{add_journal} adds a new line to journal, and sets 'start' to +current time, 'task' to given 'task'. + +If the parameter 'status' is not missing, \code{add_journal} try to find +to which 'task' this is relevant. This can be done by giving explictly the +'id', or by ginving the 'task'. If nothing is given, it is supposed that it +corresponds with the the last task with missing 'status'. For found 'task', +it sets 'status' to given 'status', 'end' to current time. 'elapsed' to the +formatted difftime between 'end' and 'start' with \code{floodam.data::fmt}. + +If verbose == TRUE, a message is sent. If 'task' is given, a new line is +sent, but not ended by 'EOL'. When 'status' is given, message depend on what +was sent just before. If the last message was announcing the start of the +current task, it is completed with status and elapsed time. If not, a new +line is sent with the whole information (start, task, status, elapsed). +'degree' is used to have some tabular formatting. The message sent is +formatted by \code{floodam.date:::format_journal}. } \examples{ -journal = floodam.data:::add_journal("Operation started.") -floodam.data:::add_journal("No problem occurred.", journal = journal) -floodam.data:::add_journal("No problem occurred.", journal = journal, verbose = TRUE) + +add_journal() +add_journal(status = "Nothing to be done...", verbose = FALSE) +{ +journal = add_journal( + task = sprintf( + "maintain gaspar with floodam.data (\%s)", + utils::packageVersion("floodam.data") + ) +) +Sys.sleep(.1) +journal = add_journal(journal, task = "download_gaspar", degree = 1) +journal = add_journal(journal, task = "adapt_gaspar", degree = 1) +Sys.sleep(.1) +journal = add_journal(journal, task = "alert_gaspar", degree = 1) +journal = add_journal(journal, status = "Done", id = 2) +Sys.sleep(.1) +journal = add_journal(journal, status = "Done", task = "alert_gaspar") +journal = add_journal(journal, status = "Done") +journal = add_journal(journal, status = "Done") +journal +} } \author{ Frédéric Grelot diff --git a/man/add_journal_new.Rd b/man/add_journal_new.Rd deleted file mode 100644 index be68367a3fe473f1d6d6900ab825c646aff18347..0000000000000000000000000000000000000000 --- a/man/add_journal_new.Rd +++ /dev/null @@ -1,74 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/add_journal_new.R -\encoding{UTF-8} -\name{add_journal_new} -\alias{add_journal_new} -\title{Manage a journal for follow-up of tasks} -\usage{ -add_journal_new(journal, task, status, id, verbose = TRUE) -} -\arguments{ -\item{journal}{data.frame, journal to be amended. May be missing (see -details).} - -\item{task}{character, description of the task. May be missing (see -details).} - -\item{status}{character, description of how the task has been performed. May -be missing (see details).} - -\item{id}{integer, row of the task to be amended. May be missing (see -details).} - -\item{verbose}{logical, should a message be sent. Default to TRUE.} -} -\value{ -a data frame of journal information. -} -\description{ -If the parameter 'journal' is missing, \code{add_journal_new} creates an -empty journal (a data.frame with the expected format). The data.frame have -5 columns: 'task', 'status', 'start', 'end' and 'elapsed'. - -If the parameter 'task' is not missing, \code{add_journal_new} adds a new -line to journal, and sets 'start' to current time, 'task' to given 'task'. - -If the parameter 'status' is not missing, \code{add_journal_new} sets -information to either the last task in journal of the one correspding to -'id', that is meant to be the line number of journal. It sets 'status' to -given 'status', 'end' to current time. 'elapsed' to the formatted difftime -between 'end' and 'start'. - -If verbose = TRUE, a message is sent. If 'task' is given, a new line is sent, -but not ended by 'EOL'. When 'status' is given, message depend on what was -sent just before. If the last message was announcing the start of the current -task, it is completed with status and elapsed time. If not, a new line is -sent with the whole information (start, task, status, elapsed). -} -\examples{ - -add_journal_new() -add_journal_new(status = "Nothing to be done...", verbose = FALSE) -{ -journal = add_journal_new( - task = sprintf( - "maintain gaspar with floodam.data (\%s)", - packageVersion("floodam.data") - ) -) -Sys.sleep(10) -journal = add_journal_new(journal, task = "download_gaspar") -journal = add_journal_new(journal, task = "adapt_gaspar") -Sys.sleep(10) -journal = add_journal_new(journal, task = "alert_gaspar") -journal = add_journal_new(journal, status = "Done", id = 2) -Sys.sleep(10) -journal = add_journal_new(journal, status = "Done", id = 3) -journal = add_journal_new(journal, status = "Done") -journal = add_journal_new(journal, status = "Done", id = 1) -journal -} -} -\author{ -Frédéric Grelot -} diff --git a/man/add_journal_old.Rd b/man/add_journal_old.Rd new file mode 100644 index 0000000000000000000000000000000000000000..5243a57645cb8729c60bf0be642f011ba4c7dff8 --- /dev/null +++ b/man/add_journal_old.Rd @@ -0,0 +1,32 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/utilities.R +\encoding{UTF-8} +\name{add_journal_old} +\alias{add_journal_old} +\title{Add information to a journal} +\usage{ +add_journal_old(..., journal = character(), verbose = FALSE, first = FALSE) +} +\arguments{ +\item{...}{zero or more objects which can be coerced to character.} + +\item{journal}{character vector, journal} + +\item{verbose}{logical, should x generates a diagnostic message} + +\item{first}{logical, should ... be considered as a first message or a second one preceeded by tabulation} +} +\value{ +updated journal +} +\description{ +Use a modality for TRUE and onther for FALSE +} +\examples{ +journal = floodam.data:::add_journal_old("Operation started.") +floodam.data:::add_journal_old("No problem occurred.", journal = journal) +floodam.data:::add_journal_old("No problem occurred.", journal = journal, verbose = TRUE) +} +\author{ +Frédéric Grelot +} diff --git a/man/add_log_info.Rd b/man/add_log_info.Rd index 9989f73aa54e9a2c1cc9dd8a85bcb17111569922..4759a3a1d1ed287da1a02bd171f0f48657f1e6df 100644 --- a/man/add_log_info.Rd +++ b/man/add_log_info.Rd @@ -15,9 +15,9 @@ add_log_info(x, fun, info, journal, verbose, verification, level = 1, ...) \item{info}{list, gives the name of the step both in 'short' and 'long' terms.} -\item{journal}{either FALSE, if not must be a character of length one, and will -be interpreted at the log file where to save any log information. Its -format should be in '*.log' in order to create also a '*-log.csv' log file +\item{journal}{either FALSE, if not must be a character of length one, and +will be interpreted at the log file where to save any log information. Its +format should be in '\emph{.log' in order to create also a '}-log.csv' log file that will store information on time and any given verification in csv format.} \item{verbose}{logical, should the some messages be sent in real time.} @@ -36,7 +36,7 @@ x transformed by fun \description{ This function allows to embed a analysis made by a function, so that log information can be saved in a consistent way, messages can be sent depending -on the parameter verbose +on the parameter verbose. } \author{ Frédéric Grelot diff --git a/man/alert_gaspar.Rd b/man/alert_gaspar.Rd index 5f71a2d8c2c04ff7553b6f1c21e2c3c4fe131ba2..0ff4abcbc7f9108462e05f971af9eda84c4e8b6e 100644 --- a/man/alert_gaspar.Rd +++ b/man/alert_gaspar.Rd @@ -25,12 +25,14 @@ if retrieve = TRUE, data.frame of adapated data stored in archive. } \description{ The following treatments are performed: -- If no sufficient versions are found, nothing is done. -- NA values are consistently set. -- Type of fields are consistently set, some checks are performed on transformations. -- Data set is cut and saved by departments -- Only observations with spatial coordinates are kept. -- Exposition of observations (belonging or not to eaip) is added. +\itemize{ +\item If no sufficient versions are found, nothing is done. +\item NA values are consistently set. +\item Type of fields are consistently set, some checks are performed on transformations. +\item Data set is cut and saved by departments +\item Only observations with spatial coordinates are kept. +\item Exposition of observations (belonging or not to eaip) is added. +} } \examples{ diff --git a/man/analyse_archive.Rd b/man/analyse_archive.Rd new file mode 100644 index 0000000000000000000000000000000000000000..6206c46cb2a84310c9ad9225d86b8d884d86fc0b --- /dev/null +++ b/man/analyse_archive.Rd @@ -0,0 +1,66 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/analyse_archive.R +\encoding{UTF-8} +\name{analyse_archive} +\alias{analyse_archive} +\title{Analyse names of archive to get useful infomations.} +\usage{ +analyse_archive(x, origin = c("ign", "floodam.data")) +} +\arguments{ +\item{x}{character vector} + +\item{origin}{character, to choose the format. Only "ign" is available at the +moment.} +} +\value{ +either a vector or a matrix depending on the length of x. +} +\description{ +The function is set for IGN's names of archive, that should normally be +"well" structured with this scheme : +data-type_version_precision_format_projection_scope_date.ext. Sometimes a +less frequent format is +data-name_version_precision_format_projection_scope_proj_date.ext. In the +latter case, "proj" is given in another format than "projection", but also in +a documented way. + +From this structure, an analysis is done to retrieve, the type of data, the +version, the precision (very often it is empty), the format used (something +in "SHP", "GPKG" or "SQL"), the projection (something in "WGS84G", "LAMB93", +"RGAF09UTM20", "UTM22RGFG95", "RGR92UTM40S", "RGM04UTM38S"), the scope ( +something in "FRA", "FXX", "GLP", "MTQ", "GUF", "REU", "MYT"), the date (in +the format YYYY-MM-DD), the year (YYYY), the extension, and the name (the +name of the archive without the extension.) + +This is also done when the format is the less frequent case, because in this +case, the projection is not given. +} +\examples{ +ign = c( + "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z", + "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001", + "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15", + "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15", + "ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15", + "ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15", + "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA", + "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto" +) +analyse_archive(ign) +analyse_archive(rep(ign, 2)) + +floodam = c( + "admin-express_2022-04-15", + "admin-express_2022-04-15.rds", + "admin-express_commune_2022-04-15", + "admin-express_D034_2022-04-15", + "admin-express_commune_D034_2022-04-15", + "admin-express_D034_commune_2022-04-15", + "ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z" +) +analyse_archive(floodam, "floodam.data") +} +\author{ +Frédéric Grelot +} diff --git a/man/analyse_catnat.Rd b/man/analyse_catnat.Rd index e8d7d51e406a4922f2c6ef3161c4dada5bbd567e..f1195cc7ceb27a5be3a1221a6ffa1f8a94912a94 100644 --- a/man/analyse_catnat.Rd +++ b/man/analyse_catnat.Rd @@ -15,11 +15,13 @@ A list of analysis (catnat, event, year, month, and type) } \description{ The following treatments are performed: -- catnat declaration are grouped by type of risks, and dates of events. This - leads to event data.frame, for which number of communes concerned are - summed. -- From event data.frame, number of events by year, month, and type are - computed. +\itemize{ +\item catnat declaration are grouped by type of risks, and dates of events. This +leads to event data.frame, for which number of communes concerned are +summed. +\item From event data.frame, number of events by year, month, and type are +computed. +} } \author{ Frédéric Grelot diff --git a/man/analyse_intersection.Rd b/man/analyse_intersection.Rd index 2076bf8fa4253b7d0ba01aa2b04e0d2b524ccc7a..802719b8748e5e6b4bd0be443d9900cc00baa1cc 100644 --- a/man/analyse_intersection.Rd +++ b/man/analyse_intersection.Rd @@ -37,9 +37,11 @@ analysis performed. } \description{ The following treatments are performed: -- data is adapated consistently with theme -- only data corresponding to flood hazards are kept -- if scope is given, a subpart of data is also saved +\itemize{ +\item data is adapated consistently with theme +\item only data corresponding to flood hazards are kept +\item if scope is given, a subpart of data is also saved +} } \section{Functions}{ \itemize{ diff --git a/man/analyse_ppr.Rd b/man/analyse_ppr.Rd index 23c7d6b7beb91f44dd73c73b28cd7d89a1c9e971..c19a9c91796816032cbd5aef071655d5fbe843f4 100644 --- a/man/analyse_ppr.Rd +++ b/man/analyse_ppr.Rd @@ -15,16 +15,18 @@ A list of analysis (detail, summary) } \description{ The following treatments are performed: -- In the element detail, a matrix gives for each commune (rows), the count - of all procedures depening on their state (columns). The column <NA> is - alwas given even if, normally, it should stay at 0 for each commune. -- In the element summary, from the information in element detail, a state at - the commune is given. It is performed this way: if one document is in state - "use", the commune is in state "use", otherwise if one document is in state - "progress", the commune is in state "progress", otherwise if one document - is in state "cancelled", the commune is in state "cancelled", otherwise if - one document is in state "unknown", the commune is in state "unknown", - otherwise the commune's state is NA. +\itemize{ +\item In the element detail, a matrix gives for each commune (rows), the count +of all procedures depending on their state (columns). The column NA is +always given even if, normally, it should stay at 0 for each commune. +\item In the element summary, from the information in element detail, a state at +the commune is given. It is performed this way: if one document is in state +"use", the commune is in state "use", otherwise if one document is in state +"progress", the commune is in state "progress", otherwise if one document +is in state "cancelled", the commune is in state "cancelled", otherwise if +one document is in state "unknown", the commune is in state "unknown", +otherwise the commune's state is NA. +} } \author{ Frédéric Grelot diff --git a/man/basename_extended.Rd b/man/basename_extended.Rd new file mode 100644 index 0000000000000000000000000000000000000000..0931ebd91ee96bfbde77d95fb757430364058809 --- /dev/null +++ b/man/basename_extended.Rd @@ -0,0 +1,58 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/basename_extended.R +\encoding{UTF-8} +\name{basename_extended} +\alias{basename_extended} +\alias{basename_core} +\alias{basename_ext} +\title{Utilities enhancing basename()} +\usage{ +basename_core(x) + +basename_ext(x) +} +\arguments{ +\item{x}{character vector, file paths} +} +\value{ +character vector of processed files. +} +\description{ +Utilities for getting name of files and extension in another whay than of +\code{\link[tools:fileutils]{tools::file_ext()}} and others corresponding functions. +} +\details{ +\code{basename_core()} differs from \code{\link[tools:fileutils]{tools::file_path_sans_ext()}} in this: +\itemize{ +\item \code{\link[=basename]{basename()}} is first applied +\item "compounded" extensions are removed. See examples. +} + +\code{basename_ext()} differs from \code{\link[tools:fileutils]{tools::file_path_sans_ext()}} in this: +\itemize{ +\item \code{\link[=basename]{basename()}} is first applied +\item "compounded" extensions are extracted. See examples. +} +} +\examples{ + +# equivalent to tools::file_path_sans_ext +basename_core("toto.7z") + +# different from tools::file_path_sans_ext +basename_core("toto.7z.001") +basename_core("path/toto.csv") +basename_core("path/toto.csv.gz") + + +# equivalent to tools::file__ext +basename_ext("toto.7z") +basename_ext("path/toto.csv") + +#'different from tools::file__ext +basename_ext("toto.7z.001") +basename_ext("path/toto.csv.gz") +} +\author{ +Frédéric Grelot +} diff --git a/man/bd_topo_nature_reclass.Rd b/man/bd_topo_nature_reclass.Rd index 759b3aece712175c69c7b7bd5b3f85b922c05be6..02852a4f721d27bb7229caac2bad02e9f226a796 100644 --- a/man/bd_topo_nature_reclass.Rd +++ b/man/bd_topo_nature_reclass.Rd @@ -7,18 +7,18 @@ \format{ A data frame with 14 rows and 2 variables: \describe{ - \item{nature}{character, name of categories originally used variable - 'nature' of the bdtopo.} - \item{classification_fr}{character, name of categories to be used to - transform the categories in variable 'nature'.} - \item{order}{character, order of the level in the factor variable.} +\item{nature}{character, name of categories originally used variable +'nature' of the bdtopo.} +\item{classification_fr}{character, name of categories to be used to +transform the categories in variable 'nature'.} +\item{order}{character, order of the level in the factor variable.} } } \usage{ bd_topo_nature_reclass } \description{ -This dataset controls how the categories in the variable 'nature' are to be +This dataset controls how the categories in the variable 'nature' are to be renamed. } \keyword{datasets} diff --git a/man/bd_topo_roof.Rd b/man/bd_topo_roof.Rd index 066cc422d5c23c336e946f0aeeb9852d2c26d16c..1a2ceed2228e32c5d7d92bae546872f509bb0e0d 100644 --- a/man/bd_topo_roof.Rd +++ b/man/bd_topo_roof.Rd @@ -7,13 +7,13 @@ \format{ A data frame with 36 rows and 4 variables: \describe{ - \item{material_roof}{character, categories of materials.} - \item{label_roof_bdtopo}{character, originally given name to the - categories of materials in BD Topo.} - \item{label_roof_fr}{character, simplified name to the categories of - materials in French.} - \item{combined_roof}{character, TRUE if two categories of materials are - mixed.} +\item{material_roof}{character, categories of materials.} +\item{label_roof_bdtopo}{character, originally given name to the +categories of materials in BD Topo.} +\item{label_roof_fr}{character, simplified name to the categories of +materials in French.} +\item{combined_roof}{character, TRUE if two categories of materials are +mixed.} } } \usage{ diff --git a/man/bd_topo_wall.Rd b/man/bd_topo_wall.Rd index f63ca98a2710b24db21f12a693071fa7beedfcd5..f1d70c244d68b56e87a7866dae0a1066c235ee76 100644 --- a/man/bd_topo_wall.Rd +++ b/man/bd_topo_wall.Rd @@ -7,12 +7,13 @@ \format{ A data frame with 64 rows and 4 variables: \describe{ - \item{material_wall}{character, categories of materials.} - \item{label_wall_bdtopo}{character, originally given name to the - categories of materials in the BDTopo.} - \item{label_wall_fr}{character, simplified name to the categories of - materials in French.} - \item{combined_wall}{character, TRUE if two categories of materials are mixed.} +\item{material_wall}{character, categories of materials.} +\item{label_wall_bdtopo}{character, originally given name to the +categories of materials in the BDTopo.} +\item{label_wall_fr}{character, simplified name to the categories of +materials in French.} +\item{combined_wall}{character, TRUE if two categories of materials are +mixed.} } } \usage{ diff --git a/man/category_label.Rd b/man/category_label.Rd index 3dfeb07bc3a132e020c3ff1a19a6892386cd629a..0bc26f3a32f836b83a2f58f564d0aad0203b444c 100644 --- a/man/category_label.Rd +++ b/man/category_label.Rd @@ -7,8 +7,8 @@ \format{ A data frame with 21 rows and 2 variables: \describe{ - \item{code}{character, code of the type.} - \item{label.fr}{character, label in French corresponding with the code.} +\item{code}{character, code of the type.} +\item{label.fr}{character, label in French corresponding with the code.} } } \usage{ diff --git a/man/catnat_classification.Rd b/man/catnat_classification.Rd index 2333c4a377a45d2545f4038c806583fc6d4db38e..b1d789d44572c0cc40eb66346d7384f7d4711d82 100644 --- a/man/catnat_classification.Rd +++ b/man/catnat_classification.Rd @@ -3,7 +3,7 @@ \docType{data} \name{catnat_classification} \alias{catnat_classification} -\title{Classification of hazards events in catnat (gaspar DB)} +\title{Classification of hazard events in catnat (gaspar DB)} \format{ An object of class \code{data.frame} with 22 rows and 8 columns. } @@ -11,6 +11,6 @@ An object of class \code{data.frame} with 22 rows and 8 columns. catnat_classification } \description{ -Classification of hazards events in catnat (gaspar DB) +Classification of hazard events in catnat (gaspar DB) } \keyword{datasets} diff --git a/man/commune_so_ii.Rd b/man/commune_so_ii.Rd index b3425961206ccaa66829cba3608c9dfe1f467f16..e56421a2a471fb7e37ade401dbe80e1535a44888 100644 --- a/man/commune_so_ii.Rd +++ b/man/commune_so_ii.Rd @@ -7,13 +7,13 @@ \format{ A data frame with 78 rows and 6 variables: \describe{ - \item{commune}{integer, INSEE code for the commune.} - \item{commune_name}{character, name of the commune.} - \item{syble}{logical, is the commune belonging to Syble.} - \item{symbo}{logical, is the commune belonging to Symbo.} - \item{epci}{character, name of the EPCI to which the commune belongs.} - \item{type}{character, type of commune between urban, periurban and - rural.} +\item{commune}{integer, INSEE code for the commune.} +\item{commune_name}{character, name of the commune.} +\item{syble}{logical, is the commune belonging to Syble.} +\item{symbo}{logical, is the commune belonging to Symbo.} +\item{epci}{character, name of the EPCI to which the commune belongs.} +\item{type}{character, type of commune between urban, periurban and +rural.} } } \usage{ @@ -21,6 +21,6 @@ commune_so_ii } \description{ A dataset containing the commune pertaining to so-ii experimental site with -useful informations to make subsets +useful information to make subsets } \keyword{datasets} diff --git a/man/create_date.Rd b/man/create_date.Rd index a9027e7118fdd42465b78b98d153273b047f4273..f7d917c56e566be9fa888421068a1ef15c43eb2d 100644 --- a/man/create_date.Rd +++ b/man/create_date.Rd @@ -7,19 +7,24 @@ create_date(...) } \arguments{ -\item{...}{Anything that will be coerced to a character. See details for format.} +\item{...}{Anything that will be coerced to a character. See details for +format.} } \value{ -A vector of two dates of fromate \%Y-\%m-\%d" +A vector of two dates of format "\\%Y-\\%m-\\%d" } \description{ Create an interval of date from a vector } \details{ -x shall be a vector of character with date in format "\%Y", "%\Y-\%m", or "%\Y-\%m-%\d". Frome x, it takes -the minimum and maximum. min(x) is completed, if necessary, as to be thebeginning of period "\%Y" becomes \%Y-01-01", -"%\Y-\%m" becomes "%\Y-\%m-01", while max(x) is completed, if necessary, as to be the maximum of period "\%Y" -becomes \%Y-12-31", "%\Y-\%m" becomes +Inputs are transformed in character vector, that we call x. When cretaed, x +shall be vector of characters with date in format "\\%Y", "\\%Y-\\%m", or +"\\%Y-\\%m-\%\d". It takes the minimum and maximum. min(x) is +completed, if necessary, as to be the beginning of period "\\%Y" becomes +"\\%Y-01-01", "\\%Y-\\%m" becomes "\\%Y-\\%m-01", while max(x) is completed, if +necessary, as to be the maximum of period "\\%Y" becomes "\\%Y-12-31", +"\\%Y-\\%m" becomes "\\%Y-\\%m-31" (or "..-28", "..-29", "..-30" depending on the +month). } \examples{ create_date(2020) diff --git a/man/create_month.Rd b/man/create_month.Rd index c466058757d8f20371318b17c466c16495a0f1e2..aeb47e11c37f95e2eccdb69b93a8850566c6ab0d 100644 --- a/man/create_month.Rd +++ b/man/create_month.Rd @@ -12,7 +12,7 @@ create_month(begin, ending) \item{ending}{character, ending month. See details for format.} } \value{ -A character vector with the sequence of month either in format "\%m" or "\%Y-\%m" depending on +A character vector with the sequence of month either in format "\\%m" or "\\%Y-\\%m" depending on parameters. } \description{ @@ -21,9 +21,9 @@ Create an increasing ordered sequence of months \details{ It creates a sequence of ordered months. The final format depends on the format of input parameters, that must be of the same type. If both begin and ending can be transform as \code{integer} between 1 and 12, it will return -a sequence of month of formatted month '\%m'. If both begin and ending can be interpreted as something like -"\%Y-\%m", it will return a sequence of month exactly formatted as "%Ym-%d". \code{begin} and \code{ending} may -be written as "\%Y_\%m", "\%Y:\%m", or "\%Y/\%m", eventually with missing starting'0' for month. +a sequence of month of formatted month '\\%m'. If both begin and ending can be interpreted as something like +"\\%Y-\\%m", it will return a sequence of month exactly formatted as "\%Ym-\%d". \code{begin} and \code{ending} may +be written as "\\%Y_\\%m", "\\%Y:\\%m", or "\\%Y/\\%m", eventually with missing starting'0' for month. } \examples{ ## Only with month (\%m) diff --git a/man/department.Rd b/man/department.Rd index 6c2a0f76efafcc91bcfc7a54b2c3221377b007c2..8deb2f59588386bba3c7534abf466b39f7d7a2c7 100644 --- a/man/department.Rd +++ b/man/department.Rd @@ -7,17 +7,17 @@ \format{ A data frame with 101 rows and 2 variables: \describe{ - \item{code}{character, INSEE code of department.} - \item{label.fr}{character, name of department as defined by INSEE.} - \item{region}{character, INSEE code of region where department is - located.} +\item{code}{character, INSEE code of department.} +\item{label.fr}{character, name of department as defined by INSEE.} +\item{region}{character, INSEE code of region where department is +located.} } } \usage{ department } \description{ -This dataset gives the correspondance between code and French label in usage +This dataset gives the correspondance between code and French label in use in France. } \keyword{datasets} diff --git a/man/download.admin_express.Rd b/man/download.admin_express.Rd deleted file mode 100644 index 019a6c9f43b9d83cea95317379150032c93229fe..0000000000000000000000000000000000000000 --- a/man/download.admin_express.Rd +++ /dev/null @@ -1,60 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/download.admin_express.R -\name{download.admin_express} -\alias{download.admin_express} -\title{Download ADMIN EXPRESS} -\usage{ -download.admin_express( - destination, - origin = "IGN", - name = NULL, - extension = NULL, - date = NULL, - version = NULL, - verbose = TRUE -) -} -\arguments{ -\item{destination}{character, the address where dara are stocked.} - -\item{origin}{character, either a keyword or the address from where data are downloaded. See details.} - -\item{name}{character, vector of acceptable names fo archive to be downloaded.} - -\item{extension}{character, vector of acceptable types of archive to be downloaded.} - -\item{date}{character, date of the archive to be downloaded.} - -\item{version}{string, version of ADMIN EXPRESS to be downloaded.} - -\item{verbose}{logical, should the function send some messages while running.} -} -\value{ -nothing -} -\description{ -Function used to downlaod ADMIN EXPRESS -} -\section{Details}{ - - -If \code{origin == "IGN"}, then all necessary variables are filled with those values: -\itemize{ - \item \bold{origin} is changed to ftp://Admin_Express_ext:Dahnoh0eigheeFok@ftp3.ign.fr - \item \bold{name} default value is changed to "ADMIN-EXPRESS" - \item \bold{extension} default value is changed to "7z.001" - \item \bold{date} default value is changed to "last" - \item \bold{version} default value is changed to "WM" -} - -If not, everything shall be filled so that \code{download_archive} can make a successful download. -} - -\examples{ -\dontrun{ -destination = tempdir() -download.admin_express(destination) - -unlink(destination) -} -} diff --git a/man/download.geo_sirene.Rd b/man/download.geo_sirene.Rd index a301989fa5b20f9b0f5afb08e69867a5e52e285f..727c482d10d00d9294ed8ce20891ee87077eab74 100644 --- a/man/download.geo_sirene.Rd +++ b/man/download.geo_sirene.Rd @@ -47,25 +47,25 @@ Function used to downlaod Geolocalized SIRENE data-base. If \code{origin == "cquest"}, then all necessary variables are filled with those values: \itemize{ - \item \bold{origin} is changed to \url{http://data.cquest.org/geo_sirene}. This url is adapted depending - on version_insee. - \item \bold{version_insee} If value is "v2019", then the version 2019 is dowloaded from - \url{http://data.cquest.org/geo_sirene}. - \item \bold{name} If version is not set to null, then default value is changed to "StockEtablissement_utf8", - which should be the most complete version at France level. - \item \bold{extension} default value is changed to "csv.gz". - \item \bold{month} is used to set something equivalent to date, but directly in origin. - \item \bold{date} is set to null, because conflict may occur with month. +\item \bold{origin} is changed to \url{https://data.cquest.org/geo_sirene}. This url is adapted depending +on version_insee. +\item \bold{version_insee} If value is "v2019", then the version 2019 is dowloaded from +\url{https://data.cquest.org/geo_sirene}. +\item \bold{name} If version is not set to null, then default value is changed to "StockEtablissement_utf8", +which should be the most complete version at France level. +\item \bold{extension} default value is changed to "csv.gz". +\item \bold{month} is used to set something equivalent to date, but directly in origin. +\item \bold{date} is set to null, because conflict may occur with month. } If not, everything shall be filled so that \code{download_archive} can make a successful download. - @export +@export } \examples{ \dontrun{ -origin = "http://data.cquest.org/geo_sirene" +origin = "https://data.cquest.org/geo_sirene" destination = tempdir() month = c("2018-11", "2019-05", "2020-03") download.geo_sirene(origin, destination, month = month) diff --git a/man/download.rpg.Rd b/man/download.rpg.Rd index e9e1da1ee4fc843dd3aa7e3846f71701ca364154..11dd50ff7b1190b942e08713490ee1a098692f4f 100644 --- a/man/download.rpg.Rd +++ b/man/download.rpg.Rd @@ -43,22 +43,22 @@ Function used to download RPG If \code{origin == "cquest"}, then all necessary variables are filled with those values: \itemize{ - \item \bold{origin} is changed to \url{http://data.cquest.org/registre_parcellaire_graphique}. - This url is adapted depending on year. - \item \bold{extension} default value is changed to \code{c("zip", "7z")}. - \item \bold{year} is used to set something equivalent to date, but directly in origin. - \item \bold{date} is set to null, because conflict may occur with year. +\item \bold{origin} is changed to \url{https://data.cquest.org/registre_parcellaire_graphique}. +This url is adapted depending on year. +\item \bold{extension} default value is changed to \code{c("zip", "7z")}. +\item \bold{year} is used to set something equivalent to date, but directly in origin. +\item \bold{date} is set to null, because conflict may occur with year. } If \code{origin == "IGN"}, then all necessary variables are filled with those values: \itemize{ - \item \bold{origin} is changed to \url{ftp://RPG_ext:quoojaicaiqu6ahD@ftp3.ign.fr}. - This url is adapted depending on year. - \item \bold{name} default value is set to "RPG". - \item \bold{extension} default value is changed to \code{c("7z", "7z.001")}. - \item \bold{year} may be used to set something equivalent to date, but directly in origin. - This should be only used for year 2010 and 2011. It is not used if year is something else. - \item \bold{date} default value is set to "last". It is set to NULL if year is successfully used. +\item \bold{origin} is changed to \url{ftp://RPG_ext:quoojaicaiqu6ahD@ftp3.ign.fr}. +This url is adapted depending on year. +\item \bold{name} default value is set to "RPG". +\item \bold{extension} default value is changed to \code{c("7z", "7z.001")}. +\item \bold{year} may be used to set something equivalent to date, but directly in origin. +This should be only used for year 2010 and 2011. It is not used if year is something else. +\item \bold{date} default value is set to "last". It is set to NULL if year is successfully used. } If not, everything shall be filled so that \code{download_archive} can make a successful download. diff --git a/man/download_admin_express.Rd b/man/download_admin_express.Rd new file mode 100644 index 0000000000000000000000000000000000000000..b9b0c0131044a33d8018c702bea992651eb35de1 --- /dev/null +++ b/man/download_admin_express.Rd @@ -0,0 +1,55 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/download_admin_express.R +\name{download_admin_express} +\alias{download_admin_express} +\title{Download Admin Express archives} +\usage{ +download_admin_express( + destination, + origin = c("ign", "cquest"), + name = c("ADMIN-EXPRESS-COG", "ADMIN-EXPRESS", "ADMIN-EXPRESS-COG-CARTO"), + extension = "7z", + date = "last", + version = NULL, + verbose = TRUE +) +} +\arguments{ +\item{destination}{character, the address where dara are stocked.} + +\item{origin}{character, a keyword or the address from where data are +downloaded.} + +\item{name}{character, vector of acceptable names fo archive to be +downloaded.} + +\item{extension}{character, vector of acceptable types of archive to be +downloaded.} + +\item{date}{character, date of the archive to be downloaded.} + +\item{version}{string, version of Admin Express to be downloaded.} + +\item{verbose}{logical, should the function send some messages while running.} +} +\value{ +nothing +} +\description{ +Function used to downlaod Admin Express archives. The function has preset +options for its use with IGN website and data.cquest.org. +} +\details{ +If \code{origin == "ign"}, \bold{origin} is set to +"https://geoservices.ign.fr/adminexpress" + +If \code{origin == "cquest"}, \bold{origin} is set to +"https://data.cquest.org/ign/adminexpress" +} +\examples{ +\dontrun{ +destination = tempdir() +download_admin_express(destination, version = "MYT") +unlink(destination) +} +} diff --git a/man/download_archive.Rd b/man/download_archive.Rd index fd3428c16a22aca0feb887dfc59f30e590ccc943..d72a39b9a5eb995311317a48bf61f63c116b1cca 100644 --- a/man/download_archive.Rd +++ b/man/download_archive.Rd @@ -46,20 +46,25 @@ downloads! } \examples{ \dontrun{ -to_do = data.frame( - origin = "http://data.cquest.org/registre_parcellaire_graphique/2018", - destination = "temp/rpg", +destination = tempdir() +to_do_cquest = data.frame( + origin = "https://data.cquest.org/registre_parcellaire_graphique/2018", + destination = destination, short = "rpg_cquest", stringsAsFactors = FALSE ) -download_archive(to_do, version = "D976") +download_archive(to_do_cquest, version = "D976", verbose = TRUE) -to_do = data.frame( +to_do_ign = data.frame( origin = "https://geoservices.ign.fr/rpg", - destination = "temp/rpg", + destination = destination, short = "rpg_ign", stringsAsFactors = FALSE ) -download_archive(to_do, version = "D976", date = "2020") +download_archive(to_do_ign, version = "D976", date = "2020", verbose = TRUE) +download_archive(to_do_ign, version = "D976", verbose = TRUE) + +to_do = rbind(to_do_cquest, to_do_ign) +download_archive(to_do, version = "D976", verbose = TRUE) } } diff --git a/man/download_ban.Rd b/man/download_ban.Rd index 297bad3a1c004ae28f2847a2fbdddbca3ef94abd..95c7848286a654c169f664f9ea2994b7f55287f0 100644 --- a/man/download_ban.Rd +++ b/man/download_ban.Rd @@ -47,24 +47,24 @@ Function used to downlaod BAN If \code{origin == "data.gouv"}, then all necessary variables are filled with those values: \itemize{ - \item \bold{origin} is changed to - "https://adresse.data.gouv.fr/data/ban/adresses" - \item \bold{name} default value is changed to "adresses" - \item \bold{extension} default value is changed to "csv.gz" - \item \bold{date} default value is used to choose a given directory. If - date is null, then the most recent version is taken (equivalent to - "latest"). - \item \bold{version} must be something within "ban" or "bal". When "ban" - is used the file with one position per address is used. When "bal" is - used, the file with several position per address is used. - \item \bold{department} is used. Should be admissible French - departments (a formatting will be attempted with \code{format_scope}). - If NULL, region may be used. If both are NULL, all departments from - floodam.data::department will be used. - \item \bold{region} may be used if department is null. Should be - admissible French regions (a formatting will be attempted with - \code{format_scope}). If region is given and department is NULL, all - departments from given region will be used. +\item \bold{origin} is changed to +"https://adresse.data.gouv.fr/data/ban/adresses" +\item \bold{name} default value is changed to "adresses" +\item \bold{extension} default value is changed to "csv.gz" +\item \bold{date} default value is used to choose a given directory. If +date is null, then the most recent version is taken (equivalent to +"latest"). +\item \bold{version} must be something within "ban" or "bal". When "ban" +is used the file with one position per address is used. When "bal" is +used, the file with several position per address is used. +\item \bold{department} is used. Should be admissible French +departments (a formatting will be attempted with \code{format_scope}). +If NULL, region may be used. If both are NULL, all departments from +floodam.data::department will be used. +\item \bold{region} may be used if department is null. Should be +admissible French regions (a formatting will be attempted with +\code{format_scope}). If region is given and department is NULL, all +departments from given region will be used. } If not, everything shall be filled so that \code{download_archive} can make diff --git a/man/download_bd_topo.Rd b/man/download_bd_topo.Rd index 8b339db556d46526d25301d593f65efa147e5d9a..bc67103b45d79ee449e67d1917ca4564f012b4d3 100644 --- a/man/download_bd_topo.Rd +++ b/man/download_bd_topo.Rd @@ -52,7 +52,7 @@ considered. See details.} nothing } \description{ -Function used to downlaod BD TOPO. It is a wrapper to +Function used to downlaod BD TOPO. It is a wrapper to \code{download_archive}, that helps getting everything fine toi download aimed archive of BD TOPO from IGN websites. } diff --git a/man/download_gaspar.Rd b/man/download_gaspar.Rd index 645885247a317926fb0d0bb0dd90e7c18dc97ffd..318d88a393618fc8fd65337192f221f866b41176 100644 --- a/man/download_gaspar.Rd +++ b/man/download_gaspar.Rd @@ -29,20 +29,20 @@ running} } \value{ If everything got fine the \code{download_gaspar} returns the - integer 0, if not it returns an object of class "try-error". +integer 0, if not it returns an object of class "try-error". } \description{ \code{download_gaspar} downloads gaspar database from origin to destination. } \details{ The origin of the data is set by default to - \url{https://files.georisques.fr}. It can also be downloaded from - "cquest" and "opendatarchives" mirrors. +\url{https://files.georisques.fr}. It can also be downloaded from +"cquest" and "opendatarchives" mirrors. The georisques provider gives no indication of the time of the update of - gaspar db. So, if origin does not contain an indication of current day - in the format "\%Y-\%m-\%d", this information will be appended to - destination as a subirectory of destination. +gaspar db. So, if origin does not contain an indication of current day +in the format "\\%Y-\\%m-\\%d", this information will be appended to +destination as a subirectory of destination. The destination directory will be created by the function, if missing. } diff --git a/man/eaip_variable.Rd b/man/eaip_variable.Rd index 17e80d7e5bf109f0846f7e0530f8939c546d30f5..767fa975e5d886866e5e405f50a100fed98b74c9 100644 --- a/man/eaip_variable.Rd +++ b/man/eaip_variable.Rd @@ -11,9 +11,9 @@ A character vector with 12 elements. eaip_variable } \description{ -This dataset controls what variables are kept when applying adapt.eaip. +This dataset controls which variables are kept when applying adapt.eaip. The choice of the variables has been made by inspecting all EAIP shapefiles, -and by keeping most common variables inside, removing variables without added +and by keeping most common variables inside, removing variables without added information (such as R, V, B). } \keyword{datasets} diff --git a/man/format_archive.Rd b/man/format_archive.Rd new file mode 100644 index 0000000000000000000000000000000000000000..a702280bfa32e4f4b84bd70360155debcf7bed21 --- /dev/null +++ b/man/format_archive.Rd @@ -0,0 +1,70 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/format_archive.R +\encoding{UTF-8} +\name{format_archive} +\alias{format_archive} +\title{Format name of archives to be consistent and predictible} +\usage{ +format_archive(x, extension, origin = c("floodam.data", "ign", "version")) +} +\arguments{ +\item{x}{character, a named character.} + +\item{extension}{character, if given, it will overrule what is in x.} + +\item{origin}{character, default value to "floodam.data". See details.} +} +\value{ +A vector of formatted names. +} +\description{ +\code{format_archive} creates formatted names for archives given some +informations on the data contained in archives and the type of format aimed +at. + +It can be as the reciprocal function of +\code{\link[=analyse_archive]{analyse_archive()}}. +} +\details{ +\code{x} should be a named character where informations used for formatting +the result ar stored. If some informations are missing, basically NA will be +used, and those NA will be post-treated depending on origin. + +If origin is "floodam.data", \code{format_archive} returns archive names +formatted with this general scheme: data_precision_scope_date. Missing +informations in \code{x} produce an adaptation of the scheme. For instance, +if nothing is given for "scope" in x or if x["scope"] is "NA", the resulting +scheme will be data_precision_date. + +If origin is "ign", \code{format_archive} returns names formatted with +this scheme: data-type_version_precision_format_projection_scope_date. +Missing informations in \code{x} are replaced by "". + +If origin is "version", \code{format_archive} returns names formatted with +this scheme: version_precision_format_projection_scope. Missing informations +in \code{x} are replaced by ".*". No extension information is used. + +If extension is given, the extension is added to be name produced. I no +extension is given, x["extension"] will be used if not NA. +} +\examples{ +archive = "ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z" +x = analyse_archive(archive) + +format_archive(x, origin = "ign") +archive == format_archive(x, origin = "ign") + +format_archive(x, extension = "rds", origin = "ign") +format_archive(x, extension = "rds") +x["precision"] = "commune" +x["scope"] = "D972" +format_archive(x, extension = "rds") + +format_archive(origin = "version") +} +\seealso{ +\code{\link[=analyse_archive]{analyse_archive()}} +} +\author{ +Frédéric Grelot +} diff --git a/man/format_scope.Rd b/man/format_scope.Rd index 70a849bb96d300ebee6e54142044a6c03c5b793e..1591fee4506a30fbe78dfcfdbc86e18ea8b85dba 100644 --- a/man/format_scope.Rd +++ b/man/format_scope.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/utilities.R +% Please edit documentation in R/format_scope.r \encoding{UTF-8} \name{format_scope} \alias{format_scope} diff --git a/man/generate_report.Rd b/man/generate_report.Rd index 7e5ffecd694f83c6499b6785d172b77f66441bf3..55dda71a7821fdb8708e5e70ced9371edfd6414a 100644 --- a/man/generate_report.Rd +++ b/man/generate_report.Rd @@ -18,7 +18,7 @@ generate_report( \arguments{ \item{origin}{character, path to the directory where archive are stored.} -\item{destination}{character, path to the directory where output should be +\item{destination}{character, path to the directory where output should be saved.} \item{archive}{either a list with the information to display in the report or diff --git a/man/get_archive.Rd b/man/get_archive.Rd index b21b5cbd9d1afedb2beb40583701f04476ccc546..376e8805f124525eeebc5b6abc947f0dbabde10a 100644 --- a/man/get_archive.Rd +++ b/man/get_archive.Rd @@ -38,9 +38,7 @@ matching with given constraints. \description{ Find all archive of given type within a vector of html text. } -\section{Details}{ - - +\details{ First, a regex search is made to find in x names enclosed in href="name" or href='name'. @@ -51,11 +49,11 @@ the end of archives' names. This may lead to an empty character as result. beginning of archives' names. This may lead to an empty character as result. \code{date} may contain either "last", and so anything that can be considered -as a date in archives' names ("\%Y", "\%Y-\%m", "\%Y-\%m-\%d") is matched +as a date in archives' names ("\\%Y", "\\%Y-\\%m", "\\%Y-\\%m-\\%d") is matched against and the max is taken. If nothing matches, all archives' names are kept. code{date} may also contain anything admissible for code{create_date}. -If so, anything that can be considered as a date in archives' names ("\%Y", -"\%Y-\%m", "\%Y-\%m-\%d") is matched against, and only archives' names whose +If so, anything that can be considered as a date in archives' names ("\\%Y", +"\\%Y-\\%m", "\\%Y-\\%m-\\%d") is matched against, and only archives' names whose date pertain to \code{create_date(date)} are kept, possibly nothing. \code{version} may contain different possibilities. Il will be matched @@ -64,11 +62,11 @@ anywhere in archives' names. This may lead an empty character as result. If \code{directory} is set to TRUE, \code{extension} is not used. Instead, links finishing by "\" are looked after. } - \examples{ +\dontrun{ # RPG archive for year 2010 in data.cquest.org -origin = "http://data.cquest.org/registre_parcellaire_graphique/2010" +origin = "https://data.cquest.org/registre_parcellaire_graphique/2010" file_list = get_archive(origin) get_archive(origin) get_archive(origin, version = "34") @@ -76,13 +74,13 @@ get_archive(origin, version = 30:35) # All RPG archives for any year for region "Occitanie" in data.cquest.org origin = get_archive( - "http://data.cquest.org/registre_parcellaire_graphique", + "https://data.cquest.org/registre_parcellaire_graphique", directory = TRUE ) get_archive(origin, version = "R76") # "geo_siret" archives in data.cquest.org -origin = "http://data.cquest.org/geo_sirene/v2019/last/dep" +origin = "https://data.cquest.org/geo_sirene/v2019/last/dep" get_archive(origin, "gz", c("geo_siret_34", "geo_siret_83")) get_archive(origin, "gz", c("geo_siret"), version = c("34", "83")) @@ -92,3 +90,4 @@ get_archive(origin, "7z", "ADMIN-EXPRESS-COG", date = "last") get_archive(origin, "7z", "ADMIN-EXPRESS-COG", version = "FRA", date = "last") get_archive(origin, "7z", "ADMIN-EXPRESS", date = 2021:2022) } +} diff --git a/man/nace_label.Rd b/man/nace_label.Rd index a26eacd3c4cac4d52a94ddde2050642e04ea6a03..befa7a1dd5f0c9066f04cd0b0a5a735058c9cd04 100644 --- a/man/nace_label.Rd +++ b/man/nace_label.Rd @@ -7,18 +7,18 @@ \format{ A data frame with 996 rows and 4 variables: \describe{ - \item{level}{integer, level of the type.} - \item{code}{character, code of the type.} - \item{label.en}{character, label in English corresponding with the - code.} - \item{label.fr}{character, label in French corresponding with the code.} +\item{level}{integer, level of the type.} +\item{code}{character, code of the type.} +\item{label.en}{character, label in English corresponding with the +code.} +\item{label.fr}{character, label in French corresponding with the code.} } } \usage{ nace_label } \description{ -A dataset containing the label (currently in English an French) corresponding -with the NACE typology of activities at levels 1 to 4 incldued. +A dataset containing the label (currently in English and French) +corresponding with the NACE typology of activities at levels 1 to 4 included. } \keyword{datasets} diff --git a/man/naf_esane.Rd b/man/naf_esane.Rd index 30d4057d56f39fbabb5a23397aacf3f519cb28d6..6f06596168075fe6b8bc07a41a5f5cdf15fa7124 100644 --- a/man/naf_esane.Rd +++ b/man/naf_esane.Rd @@ -3,51 +3,51 @@ \docType{data} \name{naf_esane} \alias{naf_esane} -\title{Typology of activities withh additional informations} +\title{Typology of activities with additional information} \format{ A data frame with 732 rows and 26 variables: \describe{ - \item{APE.05}{character, category at level 5, specific to France.} - \item{APE.01}{character, category at level 1, compatible withe NACE.} - \item{APE.02}{character, category at level 2, compatible withe NACE.} - \item{APE.03}{character, category at level 3, compatible withe NACE.} - \item{APE.04}{character, category at level 4, compatible withe NACE.} - \item{type}{character, type of activity, compatible with French damage - modelling.} - \item{category}{character, vulnerability category of activity, - compatible with French damage modelling.} - \item{leased}{character, TO BE SPECIFIED.} - \item{level}{character, level at which following data could be - retrieved.} - \item{n}{numeric, number of activity of given category.} - \item{employee}{numeric, number of employee of given category.} - \item{equipment}{numeric, value of equipment in € of given category.} - \item{stock}{numeric, value of stock in € of given category.} - \item{transport}{numeric, part of transport equipment within equipment - for given category.} - \item{virtual.corrected}{numeric, TO BE SPECIFIED.} - \item{e.emp}{numeric, value of equipment per employee in € of given - category.} - \item{s.emp}{numeric, value of stock per employee in € of given - category.} - \item{e.ent}{numeric, value of stock per activity in € of given - category.} - \item{s.ent}{numeric, value of stock per activty in € of given - category.} - \item{ACTENTNOMESS}{numeric, original data frome ESANE.} - \item{EMPSALNOMESS}{numeric, original data frome ESANE.} - \item{BAC123VALESE}{numeric, original data frome ESANE.} - \item{BAC124VALESE}{numeric, original data frome ESANE.} - \item{BAC152VALESE}{numeric, original data frome ESANE.} - \item{BAC155VALESE}{numeric, original data frome ESANE.} - \item{BAC156VALESE}{numeric, original data frome ESANE.} +\item{APE.05}{character, category at level 5, specific to France.} +\item{APE.01}{character, category at level 1, compatible with NACE.} +\item{APE.02}{character, category at level 2, compatible with NACE.} +\item{APE.03}{character, category at level 3, compatible with NACE.} +\item{APE.04}{character, category at level 4, compatible with NACE.} +\item{type}{character, type of activity, compatible with French damage +modelling.} +\item{category}{character, vulnerability category of activity, +compatible with French damage modelling.} +\item{leased}{character, TO BE SPECIFIED.} +\item{level}{character, level at which following data could be +retrieved.} +\item{n}{numeric, number of activity of given category.} +\item{employee}{numeric, number of employee of given category.} +\item{equipment}{numeric, value of equipment in € of given category.} +\item{stock}{numeric, value of stock in € of given category.} +\item{transport}{numeric, part of transport equipment within equipment +for given category.} +\item{virtual.corrected}{numeric, TO BE SPECIFIED.} +\item{e.emp}{numeric, value of equipment per employee in € of given +category.} +\item{s.emp}{numeric, value of stock per employee in € of given +category.} +\item{e.ent}{numeric, value of stock per activity in € of given +category.} +\item{s.ent}{numeric, value of stock per activty in € of given +category.} +\item{ACTENTNOMESS}{numeric, original data from ESANE.} +\item{EMPSALNOMESS}{numeric, original data from ESANE.} +\item{BAC123VALESE}{numeric, original data from ESANE.} +\item{BAC124VALESE}{numeric, original data from ESANE.} +\item{BAC152VALESE}{numeric, original data from ESANE.} +\item{BAC155VALESE}{numeric, original data from ESANE.} +\item{BAC156VALESE}{numeric, original data from ESANE.} } } \usage{ naf_esane } \description{ -A dataset containing the Typology of activities at differente level, -with some useful additional information from Frecnh data base esane. +A dataset containing the typology of activities at different level, +with some useful additional information from French database esane. } \keyword{datasets} diff --git a/man/naf_label.Rd b/man/naf_label.Rd index 6358cdcf7b5763e1c2de7956b230c7ebe17df609..cb277bfccd9c5d94b26da7e0551d17a44174ea9c 100644 --- a/man/naf_label.Rd +++ b/man/naf_label.Rd @@ -7,9 +7,9 @@ \format{ A data frame with 1728 rows and 3 variables: \describe{ - \item{level}{integer, level of the type.} - \item{code}{character, code of the type.} - \item{label.fr}{character, label in French corresponding with the code.} +\item{level}{integer, level of the type.} +\item{code}{character, code of the type.} +\item{label.fr}{character, label in French corresponding with the code.} } } \usage{ @@ -17,6 +17,6 @@ naf_label } \description{ A dataset containing the label in French corresponding with -the NAF typology of activities at levels 1 to 5 incldued. +the NAF typology of activities at levels 1 to 5 included. } \keyword{datasets} diff --git a/man/nomenclature_rpg_1.Rd b/man/nomenclature_rpg_1.Rd index 745a77208a28cb746460044c423f20f6efc91346..b7ec81aa8c585f06de7a0a67235be97e3194f677 100644 --- a/man/nomenclature_rpg_1.Rd +++ b/man/nomenclature_rpg_1.Rd @@ -7,9 +7,9 @@ \format{ A data frame with 28 rows and 2 variables: \describe{ - \item{group}{character, code of the group of culture.} - \item{group_label_fr}{character, label in French corresponding with the - group code.} +\item{group}{character, code of the group of crops.} +\item{group_label_fr}{character, label in French corresponding with the +group code.} } } \usage{ @@ -17,6 +17,6 @@ nomenclature_rpg_1 } \description{ A dataset containing the label in French corresponding with -the version 1.0 of the RPG typology for culture plots. +the version 1.0 of the RPG typology for cultivated plots. } \keyword{datasets} diff --git a/man/nomenclature_rpg_2.Rd b/man/nomenclature_rpg_2.Rd index b0373eb9278e8188d70e7a7c5f5c31fb90c66bb7..1d88106ceec8c8e60294e00cd760c63179f69923 100644 --- a/man/nomenclature_rpg_2.Rd +++ b/man/nomenclature_rpg_2.Rd @@ -7,10 +7,10 @@ \format{ A data frame with 392 rows and 3 variables: \describe{ - \item{culture}{character, code of the culture.} - \item{group}{character, code of the group to which the culture belongs.} - \item{culture_label_fr}{character, label in French corresponding with - the culture code.} +\item{culture}{character, code of the crop.} +\item{group}{character, code of the group to which the crop belongs.} +\item{culture_label_fr}{character, label in French corresponding with +the crop code.} } } \usage{ @@ -18,7 +18,7 @@ nomenclature_rpg_2 } \description{ A dataset containing the label in French corresponding with -the version 2.0 of the RPG typology for culture plots (should work up to +the version 2.0 of the RPG typology for cultivated plots (should work up to year 2018). } \keyword{datasets} diff --git a/man/plot_construction_date.Rd b/man/plot_construction_date.Rd index 2b8f1485f21ab734cc83b17408a929ed8c6d0e81..5b2f5ba29e2979c451cde368156ba4894cb6645c 100644 --- a/man/plot_construction_date.Rd +++ b/man/plot_construction_date.Rd @@ -3,7 +3,7 @@ \encoding{UTF-8} \name{plot_construction_date} \alias{plot_construction_date} -\title{plot of the construction dates of buildings in the context of the +\title{plot of the construction dates of buildings in the context of the BD-Topo v3} \usage{ plot_construction_date(output_name, dataset, destination) @@ -16,8 +16,8 @@ plot_construction_date(output_name, dataset, destination) \item{destination}{character. Path to folder where tables and figures must be stocked.} } \description{ -The function produces a time series plot of the construction dates of -buildings identified as residential in the BDTopo. The plot is stored as png +The function produces a time series plot of the construction dates of +buildings identified as residential in the BDTopo. The plot is stored as png image in destination } \author{ diff --git a/man/pprn_classification.Rd b/man/pprn_classification.Rd index bc327f72423a2f1f3eeb927d75cdfaad44413e34..56aba8fb303842f5d95965365860d228cc09e113 100644 --- a/man/pprn_classification.Rd +++ b/man/pprn_classification.Rd @@ -3,7 +3,7 @@ \docType{data} \name{pprn_classification} \alias{pprn_classification} -\title{Classification of hazards events in pprn (gaspar DB)} +\title{Classification of hazard events in pprn (gaspar DB)} \format{ An object of class \code{data.frame} with 25 rows and 8 columns. } @@ -11,6 +11,6 @@ An object of class \code{data.frame} with 25 rows and 8 columns. pprn_classification } \description{ -Classification of hazards events in pprn (gaspar DB) +Classification of hazard events in pprn (gaspar DB) } \keyword{datasets} diff --git a/man/prepare_table_building.Rd b/man/prepare_table_building.Rd index de8a104a8aa4330c74c256ce413c34bb730f13c0..44421389abc1a8a193858ff26eaff467a1546aa7 100644 --- a/man/prepare_table_building.Rd +++ b/man/prepare_table_building.Rd @@ -18,7 +18,7 @@ A list. } \description{ The function performs several analysis in order to check the validity and the -consistency of the calculations made by functions `extract_building()` over +consistency of the calculations made by functions \code{extract_building()} over the BDTopo v3. } \author{ diff --git a/man/prepare_table_dwelling.Rd b/man/prepare_table_dwelling.Rd index 584d75205d3cc4b8e328da746c783000ad6568ce..aa286ffbfcd102800f8f6c9f7fce6797ac3962fe 100644 --- a/man/prepare_table_dwelling.Rd +++ b/man/prepare_table_dwelling.Rd @@ -18,7 +18,7 @@ A list. } \description{ The function performs several analysis in order to check the validity and the -consistency of the calculations made by function `extract_dwelling` over the +consistency of the calculations made by function \code{extract_dwelling} over the BDTopo v3. } \author{ diff --git a/man/qq_developed_dwelling.Rd b/man/qq_developed_dwelling.Rd index 190828842dea702224e7a85be30f1dbc61b6767e..406268ad30e6c2b7da5add0a1616a2d007ae0ba3 100644 --- a/man/qq_developed_dwelling.Rd +++ b/man/qq_developed_dwelling.Rd @@ -3,7 +3,7 @@ \encoding{UTF-8} \name{qq_developed_dwelling} \alias{qq_developed_dwelling} -\title{qq plot of the building's developed surface versus the building's +\title{qq plot of the building's developed surface versus the building's dwellings in the context of the BD-Topo v3} \usage{ qq_developed_dwelling(output_name, dataset, destination, dwelling_mean_surf) @@ -18,8 +18,8 @@ qq_developed_dwelling(output_name, dataset, destination, dwelling_mean_surf) \item{dwelling_mean_surf}{numeric. Average surface of a dwelling} } \description{ -The function produces a QQ-plot that confronts the following series of the -building/dwelling database: surface developed and number of dwellings. The +The function produces a QQ-plot that confronts the following series of the +building/dwelling database: surface developed and number of dwellings. The plot is stored as png image in destination } \author{ diff --git a/man/qq_height_level.Rd b/man/qq_height_level.Rd index 82811856c38b54d5e1f4bce0271f1b3d2710ec54..9d6f355320a66945923143ed323c8257b4fe87fe 100644 --- a/man/qq_height_level.Rd +++ b/man/qq_height_level.Rd @@ -3,7 +3,7 @@ \encoding{UTF-8} \name{qq_height_level} \alias{qq_height_level} -\title{qq plot of building heights versus building storeys in the context of +\title{qq plot of building heights versus building storeys in the context of the BD-Topo v3} \usage{ qq_height_level(output_name, dataset, destination) @@ -17,7 +17,7 @@ qq_height_level(output_name, dataset, destination) } \description{ The function produces a QQ-plot that confronts the variable referring to the -surface developed and the number of dwellings as issued from the functions +surface developed and the number of dwellings as issued from the functions that process the bdtopo. The plot is stored as png image in destination } \author{ diff --git a/man/read_url.Rd b/man/read_url.Rd index 95708fb8b250a5fc04c31039b30762e58978c320..2aa0a966c2d99b0daf8e07d85b765e49a092f669 100644 --- a/man/read_url.Rd +++ b/man/read_url.Rd @@ -16,7 +16,7 @@ A character vector of length the number of lines read. Read all text lines from an url. } \examples{ -origin = "http://data.cquest.org/registre_parcellaire_graphique/" +origin = "https://data.cquest.org/registre_parcellaire_graphique/" year = "2010" index = read_url(sprintf("\%s/\%s", origin, year)) \dontrun{ diff --git a/man/read_with_scheme.Rd b/man/read_with_scheme.Rd index 29ec2cfc44606a92df78ce9b32c80df4d3eabc0d..57b742d5c0560c61484138f019a918ab8801c6f2 100644 --- a/man/read_with_scheme.Rd +++ b/man/read_with_scheme.Rd @@ -3,29 +3,85 @@ \encoding{UTF-8} \name{read_with_scheme} \alias{read_with_scheme} -\title{Read tabular data with a scheme} +\alias{read_csv_with_scheme} +\alias{read_shp_with_scheme} +\alias{read_gpkg_with_scheme} +\alias{read_shp_from_7z} +\alias{read_gpkg_from_7z} +\title{Read data with a scheme} \usage{ -read_with_scheme(x, scheme = NULL, projection = NA) +read_with_scheme( + x, + scheme = NULL, + projection = NA, + layer, + type, + extension = tools::file_ext(x) +) + +read_csv_with_scheme(x, scheme = NULL, projection = NA) + +read_shp_with_scheme(x, scheme = NULL, projection = NA, layer) + +read_gpkg_with_scheme(x, scheme = NULL, projection = NA, layer) + +read_shp_from_7z(x, scheme = NULL, projection = NA, layer) + +read_gpkg_from_7z(x, scheme = NULL, projection = NA, layer) } \arguments{ \item{x}{character, path of the data to be read.} \item{scheme}{data.frame, scheme to be applied.} -\item{projection}{something that will be used in the option "crs" of +\item{projection}{something that will be used in the option "crs" of \code{sf::st_as_sf}.} + +\item{layer}{character, indicates the layer to be read for data organized by +layers.} + +\item{type}{character, indicates the type of data that should be read.} + +\item{extension}{character, indicate the exrtension of the archive. If +missing will be guessed from x.} } \value{ data adapted, either a data.frame or a 'sf' objects. } \description{ -The function relies on \code{data.table::fread} to read tabular data, and -to apply a scheme. The idea is to used the efficiency of \code{fread} to read -more quickly data (and without too many specifications on "sep" and "dec"), -and to used some options to read only data that will be kept with original -format given in scheme. As almost, everyhting is done after reading, the -remaining part of applying a scheme is also one: final format is applied, -and if, some "lon" and "lat" is found, data is transformed in sf object. +\code{read_with_scheme} is a wrapper for more specific functions. It uses +\code{type} and \code{extension} to call the good function. If those +parameters are not specified it tries to guess them from the name of the +archive included in \code{x}. + +\code{read_csv_with_scheme} relies on \code{data.table::fread} to read +tabular data, and to apply a scheme. The idea is to used the efficiency of +\code{fread} to read more quickly data (and without too many specifications +on "sep" and "dec"), and to used some options to read only data that will be +kept with original format given in scheme. As almost, everyhting is done +after reading, the remaining part of applying a scheme is also one: final +format is applied, and if, some "lon" and "lat" is found, data is transformed +in sf object. + +\code{read_shp_with_scheme} relies on \code{sf::st_read} to read gpkg data. +If given, projection is changed. If given scheme is applyed through +\code{apply_scheme}. It is supposed that the scheme given is organized with a +layer column. + +\code{read_gpkg_with_scheme} relies on \code{sf::st_read} to read gpkg data. +If given, projection is changed. If given scheme is applyed through +\code{apply_scheme}. It is supposed that the scheme given is organized with a +layer column. + +\code{read_shp_from_7z} uses a system call to 7z to uncompress a +7z archive. It looks specifically for files that correspond to given layer. +It then reads the uncompressed gpkg file with a call to +\code{read_shp_with_scheme}. + +\code{read_gkpg_from_7z} uses a system call to 7z to uncompress a 7z archive. +It looks specifically for files with extension gkpg, and presumes that there +is only one. It then reads the uncompressed gpkg file with a call to +\code{read_gpkg_with_scheme}. } \details{ If 'scheme' is NULL (default). \code{data.table::fread} is used with diff --git a/man/region.Rd b/man/region.Rd index 87abb37ae3ccfbac7a4143d736eccb9439952827..14456b1d5ac12c424a403b4f576fa0dc484b3c5a 100644 --- a/man/region.Rd +++ b/man/region.Rd @@ -7,15 +7,15 @@ \format{ A data frame with 18 rows and 2 variables: \describe{ - \item{code}{character, INSEE code of region.} - \item{label.fr}{character, name of region as defined by INSEE.} +\item{code}{character, INSEE code of region.} +\item{label.fr}{character, name of region as defined by INSEE.} } } \usage{ region } \description{ -This dataset gives the correspondance between code and French label in usage +This dataset gives the correspondance between code and French label in use in France. } \keyword{datasets} diff --git a/man/save_archive.Rd b/man/save_archive.Rd new file mode 100644 index 0000000000000000000000000000000000000000..9112840864b1f88c8113a16c867d72e6113151f1 --- /dev/null +++ b/man/save_archive.Rd @@ -0,0 +1,52 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/save_archive.R +\encoding{UTF-8} +\name{save_archive} +\alias{save_archive} +\title{Save an archive in a formatted way} +\usage{ +save_archive(x, path, scope = NULL, extension = NULL, origin = "floodam.data") +} +\arguments{ +\item{x}{data.frame, data to be archived.} + +\item{path}{character, the path from wich the archive's path is constructed. +See details.} + +\item{scope}{character or factor. If factor or long character, how x will be +sliced. If character of length 1, may be the name of a variable of x. See +details.} + +\item{extension}{character, the extension and so the format to be used for +saving. See details.} + +\item{origin}{character, default value to "floodam.data". See details.} +} +\value{ +Nothin useful. +} +\description{ +\code{save_archive} saves archives in a formatted way, to help retrieve +those archives for a use in a typical 'floodam.data' perspective. +} +\details{ +TO BE COMPLETED +} +\examples{ + +x = data.frame(scope = 0:2) +temp_dir = tempdir() +scope = "scope" + +# No scope, no extension, only basename +save_archive(x, file.path(temp_dir, "x")) + +# Adding a scope +save_archive(x, file.path(temp_dir, "x"), scope = "scope") + +# Using a path with extension, but also parameter extension +save_archive(x, file.path(temp_dir, "x.7z"), extension = "rds", scope = "scope") +} +\author{ +Frédéric Grelot +} diff --git a/man/scheme_admin_express.Rd b/man/scheme_admin_express.Rd deleted file mode 100644 index bb04ccf8dc2a948b1af79a86099cccdb1ce87447..0000000000000000000000000000000000000000 --- a/man/scheme_admin_express.Rd +++ /dev/null @@ -1,31 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R -\docType{data} -\name{scheme_admin_express} -\alias{scheme_admin_express} -\title{Informations on the variables of ADMIN EXPRESS version 2.0} -\format{ -A data frame with 26 rows and 11 variables: -\describe{ - \item{name}{character, name of varaibales used in floodam.data.} - \item{name.origin}{character, name of variables as defined in original - data.} - \item{layer}{character, name of layer where the variables is used.} - \item{order}{integer, order of the variables in original data.} - \item{keep}{logical, defined if floodam.data will keep this variable.} - \item{type}{character, type that will be used within floodam.data.} - \item{label.fr}{character, variables description in French.} - \item{source}{character, source of the variables.} - \item{length.source}{integer, length of variables in source.} - \item{type.source}{character, type of variables in source.} - \item{comment}{character, some comments on choice made.} -} -} -\usage{ -scheme_admin_express -} -\description{ -This dataset controls also default behaviour of what variables are kept, -their desired type. It is used as default value in adapt.admin_express. -} -\keyword{datasets} diff --git a/man/scheme_admin_express_2_0.Rd b/man/scheme_admin_express_2_0.Rd new file mode 100644 index 0000000000000000000000000000000000000000..fa8d697d01d3f5d4201d1ca358b1d6a84719bbbb --- /dev/null +++ b/man/scheme_admin_express_2_0.Rd @@ -0,0 +1,32 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/data.R +\docType{data} +\name{scheme_admin_express_2_0} +\alias{scheme_admin_express_2_0} +\title{Information on the variables of Admin Express version 2-0} +\format{ +A data frame with 26 rows and 11 variables: +\describe{ +\item{name}{character, name of variables used in floodam.data.} +\item{name_origin}{character, name of variables as defined in original +data.} +\item{layer}{character, name of layer where the variables are used.} +\item{order}{integer, order of the variables in original data.} +\item{keep}{logical, defined if floodam.data will keep this variable.} +\item{type}{character, type that will be used within floodam.data.} +\item{label_fr}{character, variables description in French.} +\item{source}{character, source of the variables.} +\item{length_source}{integer, length of variables in source.} +\item{type_source}{character, type of variables in source.} +\item{comment}{character, some comments on choice made.} +} +} +\usage{ +scheme_admin_express_2_0 +} +\description{ +This dataset controls also default behaviour of what variables are kept, +their desired type. It may be used as a value in \code{adapt_admin_express} +for old version of Admin Express. +} +\keyword{datasets} diff --git a/man/scheme_admin_express_3_1.Rd b/man/scheme_admin_express_3_1.Rd new file mode 100644 index 0000000000000000000000000000000000000000..205ae04446acf5a8c2fa69dcc22d11451c3b986f --- /dev/null +++ b/man/scheme_admin_express_3_1.Rd @@ -0,0 +1,32 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/data.R +\docType{data} +\name{scheme_admin_express_3_1} +\alias{scheme_admin_express_3_1} +\title{Information on the variables of Admin Express version 3-1} +\format{ +A data frame with 24 rows and 11 variables: +\describe{ +\item{name}{character, name of variables used in floodam.data.} +\item{name_origin}{character, name of variables as defined in original +data.} +\item{layer}{character, name of layer where the variables is used.} +\item{order}{integer, order of the variables in original data.} +\item{keep}{logical, defined if floodam.data will keep this variable.} +\item{type}{character, type that will be used within floodam.data.} +\item{label_fr}{character, variables description in French.} +\item{source}{character, source of the variables.} +\item{length_source}{integer, length of variables in source.} +\item{type_source}{character, type of variables in source.} +\item{comment}{character, some comments on choice made.} +} +} +\usage{ +scheme_admin_express_3_1 +} +\description{ +This dataset controls also default behaviour of what variables are kept, +their desired type. It is used as default value in +\code{adapt_admin_express}. +} +\keyword{datasets} diff --git a/man/scheme_ban.Rd b/man/scheme_ban.Rd index beb8151e9259aaa30f8d6f527bdc30865fe7632a..e91097ed9d2eca1b44db64fcbf87d950bc32cf06 100644 --- a/man/scheme_ban.Rd +++ b/man/scheme_ban.Rd @@ -3,22 +3,22 @@ \docType{data} \name{scheme_ban} \alias{scheme_ban} -\title{Informations on the variables of BAN} +\title{Information on the variables of BAN} \format{ A data frame with 25 rows and 12 variables: \describe{ - \item{name}{character, name of variables used in floodam.data.} - \item{name_origin}{character, name of variables as defined in - original data.} - \item{order}{integer, order of the variables in original data.} - \item{keep}{logical, defined if floodam.data will keep this variable.} - \item{type}{character, type that will be used within floodam.data.} - \item{label_fr}{character, variables description in French.} - \item{source}{character, source of the variables.} - \item{length_source}{integer, length of variables in source.} - \item{type_source}{character, type of variables in source.} - \item{comment}{character, some additionnal comments to better understand - variable.} +\item{name}{character, name of variables used in floodam.data.} +\item{name_origin}{character, name of variables as defined in +original data.} +\item{order}{integer, order of the variables in original data.} +\item{keep}{logical, defined if floodam.data will keep this variable.} +\item{type}{character, type that will be used within floodam.data.} +\item{label_fr}{character, variables description in French.} +\item{source}{character, source of the variables.} +\item{length_source}{integer, length of variables in source.} +\item{type_source}{character, type of variables in source.} +\item{comment}{character, some additionnal comments to better understand +variable.} } } \usage{ diff --git a/man/scheme_bd_topo_3.Rd b/man/scheme_bd_topo_3.Rd index cd3d3e87cf281ec6193beed2cb54df2ace33b6a5..be2e24011cfcb66313c5e9bd42c8ae20e8495f1e 100644 --- a/man/scheme_bd_topo_3.Rd +++ b/man/scheme_bd_topo_3.Rd @@ -3,26 +3,26 @@ \docType{data} \name{scheme_bd_topo_3} \alias{scheme_bd_topo_3} -\title{Informations on the variables of BD TOPO version 3.0} +\title{Information on the variables of BD TOPO version 3.0} \format{ A data frame with 25 rows and 12 variables: \describe{ - \item{name}{character, name of variables used in floodam.data.} - \item{name_origin_gpkg}{character, name of variables as defined in - original data for gkpg archives.} - \item{name_origin_shp}{character, name of variables as defined in - original data for shp files.} - \item{layer}{character, name of layer where the variables is used.} - \item{order}{integer, order of the variables in original data.} - \item{keep}{logical, defined if floodam.data will keep this variable.} - \item{type}{character, type that will be used within floodam.data.} - \item{unit}{character, unit of numeric data.} - \item{label_fr}{character, variables description in French.} - \item{source}{character, source of the variables.} - \item{length_source}{integer, length of variables in source.} - \item{type_source}{character, type of variables in source.} - \item{comment}{character, some additionnal comments to better understand - variable.} +\item{name}{character, name of variables used in floodam.data.} +\item{name_origin_gpkg}{character, name of variables as defined in +original data for gkpg archives.} +\item{name_origin_shp}{character, name of variables as defined in +original data for shp files.} +\item{layer}{character, name of layer where the variables is used.} +\item{order}{integer, order of the variables in original data.} +\item{keep}{logical, defined if floodam.data will keep this variable.} +\item{type}{character, type that will be used within floodam.data.} +\item{unit}{character, unit of numeric data.} +\item{label_fr}{character, variables description in French.} +\item{source}{character, source of the variables.} +\item{length_source}{integer, length of variables in source.} +\item{type_source}{character, type of variables in source.} +\item{comment}{character, some additionnal comments to better understand +variable.} } } \usage{ diff --git a/man/scheme_insee_logement_2019.Rd b/man/scheme_insee_logement_2019.Rd index f27acc071c31718e999a74628401281a4d0f7566..0fc4af76822ab9fb0ce69d71fe481a30767a668e 100644 --- a/man/scheme_insee_logement_2019.Rd +++ b/man/scheme_insee_logement_2019.Rd @@ -3,21 +3,22 @@ \docType{data} \name{scheme_insee_logement_2019} \alias{scheme_insee_logement_2019} -\title{Informations on the variables of the series 'Logements (France hors Mayotte)' from the INSEE} +\title{Informations on the variables of the series 'Logements (France hors Mayotte)' +from the INSEE} \format{ A data frame with 7 rows and 11 variables: \describe{ - \item{name}{character, name of variables used in floodam.data.} - \item{name_origin}{character, name of variables as defined in original - data.} - \item{order}{integer, order of the variables in original data.} - \item{keep}{logical, defined if floodam.data will keep this variable.} - \item{type}{character, type that will be used within floodam.data.} - \item{label_fr}{character, variables description in French.} - \item{source}{character, source of the variables.} - \item{length_source}{integer, length of variables in source.} - \item{type_source}{character, type of variables in source.} - \item{comment}{character, some comments on choice made.} +\item{name}{character, name of variables used in floodam.data.} +\item{name_origin}{character, name of variables as defined in original +data.} +\item{order}{integer, order of the variables in original data.} +\item{keep}{logical, defined if floodam.data will keep this variable.} +\item{type}{character, type that will be used within floodam.data.} +\item{label_fr}{character, variables description in French.} +\item{source}{character, source of the variables.} +\item{length_source}{integer, length of variables in source.} +\item{type_source}{character, type of variables in source.} +\item{comment}{character, some comments on choice made.} } } \usage{ diff --git a/man/scheme_rpg_1.Rd b/man/scheme_rpg_1.Rd index ed32adfbe0006e9926378c18fc4f8d60d8669134..218fdca321dacb7e4441a92ad27a6dec9d94ea35 100644 --- a/man/scheme_rpg_1.Rd +++ b/man/scheme_rpg_1.Rd @@ -3,22 +3,22 @@ \docType{data} \name{scheme_rpg_1} \alias{scheme_rpg_1} -\title{Informations on the variables of RPG version 1.0} +\title{Information on the variables of RPG version 1.0} \format{ A data frame with 9 rows and 11 variables: \describe{ - \item{name}{character, name of varaibales used in floodam.data.} - \item{name_origin}{character, name of variables as defined in original - data.} - \item{layer}{character, name of layer where the variables is used.} - \item{order}{integer, order of the variables in original data.} - \item{keep}{logical, defined if floodam.data will keep this variable.} - \item{type}{character, type that will be used within floodam.data.} - \item{label_fr}{character, variables description in French.} - \item{source}{character, source of the variables.} - \item{length_source}{integer, length of variables in source.} - \item{type_source}{character, type of variables in source.} - \item{comment}{character, some comments on choice made.} +\item{name}{character, name of variables used in floodam.data.} +\item{name_origin}{character, name of variables as defined in original +data.} +\item{layer}{character, name of layer where the variables is used.} +\item{order}{integer, order of the variables in original data.} +\item{keep}{logical, defined if floodam.data will keep this variable.} +\item{type}{character, type that will be used within floodam.data.} +\item{label_fr}{character, variables description in French.} +\item{source}{character, source of the variables.} +\item{length_source}{integer, length of variables in source.} +\item{type_source}{character, type of variables in source.} +\item{comment}{character, some comments on choice made.} } } \usage{ diff --git a/man/scheme_rpg_2.Rd b/man/scheme_rpg_2.Rd index 887a1b39f0a40b08e6e8007bbd420690e1095ad8..ebcae3bcc6c8cb03634acc9fa3d227e0bbe5e042 100644 --- a/man/scheme_rpg_2.Rd +++ b/man/scheme_rpg_2.Rd @@ -3,22 +3,22 @@ \docType{data} \name{scheme_rpg_2} \alias{scheme_rpg_2} -\title{Informations on the variables of RPG version 2.0} +\title{Information on the variables of RPG version 2.0} \format{ A data frame with 7 rows and 11 variables: \describe{ - \item{name}{character, name of varaibales used in floodam.data.} - \item{name_origin}{character, name of variables as defined in original - data.} - \item{layer}{character, name of layer where the variables is used.} - \item{order}{integer, order of the variables in original data.} - \item{keep}{logical, defined if floodam.data will keep this variable.} - \item{type}{character, type that will be used within floodam.data.} - \item{label_fr}{character, variables description in French.} - \item{source}{character, source of the variables.} - \item{length_source}{integer, length of variables in source.} - \item{type_source}{character, type of variables in source.} - \item{comment}{character, some comments on choice made.} +\item{name}{character, name of variables used in floodam.data.} +\item{name_origin}{character, name of variables as defined in original +data.} +\item{layer}{character, name of layer where the variables are used.} +\item{order}{integer, order of the variables in original data.} +\item{keep}{logical, defined if floodam.data will keep this variable.} +\item{type}{character, type that will be used within floodam.data.} +\item{label_fr}{character, variables description in French.} +\item{source}{character, source of the variables.} +\item{length_source}{integer, length of variables in source.} +\item{type_source}{character, type of variables in source.} +\item{comment}{character, some comments on choice made.} } } \usage{ diff --git a/man/scheme_sirene_2019.Rd b/man/scheme_sirene_2019.Rd index fe175f747e65cc7efc60e89f3575b50adba595a5..c5967197f05f8ff62f1d1b6f2ec8a02c0b55e97d 100644 --- a/man/scheme_sirene_2019.Rd +++ b/man/scheme_sirene_2019.Rd @@ -3,21 +3,21 @@ \docType{data} \name{scheme_sirene_2019} \alias{scheme_sirene_2019} -\title{Informations on the variables of geolocalized sirene data} +\title{Information on the variables of geolocalized sirene data} \format{ A data frame with 57 rows and 10 variables: \describe{ - \item{name}{character, name of varaibales used in floodam.data.} - \item{name.origin}{character, name of variables as defined in original - data.} - \item{order}{integer, order of the variables in original data.} - \item{keep}{logical, defined if floodam.data will keep this variable.} - \item{type}{character, type that will be used within floodam.data.} - \item{label.french}{character, variables description in French.} - \item{source}{character, source of the variables.} - \item{length.source}{integer, length of variables in source.} - \item{type.source}{character, type of variables in source.} - \item{comment}{character, some comments on choice made.} +\item{name}{character, name of variables used in floodam.data.} +\item{name.origin}{character, name of variables as defined in original +data.} +\item{order}{integer, order of the variables in original data.} +\item{keep}{logical, defined if floodam.data will keep this variable.} +\item{type}{character, type that will be used within floodam.data.} +\item{label.french}{character, variables description in French.} +\item{source}{character, source of the variables.} +\item{length.source}{integer, length of variables in source.} +\item{type.source}{character, type of variables in source.} +\item{comment}{character, some comments on choice made.} } } \usage{ @@ -25,8 +25,8 @@ scheme_sirene_2019 } \description{ A dataset containing the description of variables in geolocalized sirene -data. It includes information that are coming from the 2019 version of Sirene -format as maintained by INSEE and information that are coming from 'cquest' +data. It includes information that is coming from the 2019 version of Sirene +format as maintained by INSEE and information that is coming from 'cquest' process for geolocalizing. This dataset controls also default behaviour of what variables are kept, their desired type. It is used as default value in adapt.geo_sirene. diff --git a/man/scheme_sirene_na.Rd b/man/scheme_sirene_na.Rd index 4dd67c79660acbc83bb4e5fa5056f9a5f588af9a..7dd474dbd043748dab840a5a9b3fd55f92d5c818 100644 --- a/man/scheme_sirene_na.Rd +++ b/man/scheme_sirene_na.Rd @@ -3,12 +3,12 @@ \docType{data} \name{scheme_sirene_na} \alias{scheme_sirene_na} -\title{Informations on na.value in geolocalized sirene data} +\title{Information on na.value in geolocalized sirene data} \format{ A data frame with 3 rows and 2 variables: \describe{ - \item{name}{character, name of variable as used in floodam.data.} - \item{na.value}{character, value that is to be considered as na.value.} +\item{name}{character, name of variable as used in floodam.data.} +\item{na.value}{character, value that is to be considered as na.value.} } } \usage{ diff --git a/man/shp_from_7z.Rd b/man/shp_from_7z.Rd index 861820cc36dce8c5dfff9519f125466c654fa8be..d0c9cfa331bf78f9cfe2b44753ba9f409f61e78f 100644 --- a/man/shp_from_7z.Rd +++ b/man/shp_from_7z.Rd @@ -15,7 +15,7 @@ charcater, temp path to th shp file extracted. } \description{ The function 'shp_from_7z' uses a system call to 7z to uncompress a 7z -archive. It looks specifically for a gkpg file inside the 7z archive. +archive. It looks specifically for a shp file inside the 7z archive. } \author{ Frédéric Grelot diff --git a/script/summarize_insee.R b/script/summarize_insee.R index f99594b56fc25bd03724158cfcd1bfe6a25f58f9..c5b60b507a0958918ea4ce442de1bfd0094c8697 100644 --- a/script/summarize_insee.R +++ b/script/summarize_insee.R @@ -1,6 +1,7 @@ # loading libraries -package = "floodam.data" ; devtools::document(package) ; devtools::load_all(package) -#library(floodam.data) +# package = "floodam.data" ; devtools::document(package) ; devtools::load_all(package) +library(floodam.data) +library(data.table) # paths path_data = "data-local/floodam-data/original/insee" @@ -9,50 +10,121 @@ archive = "BTT_TD_LOG1_2019.zip" csv = sprintf("%s.csv", tools::file_path_sans_ext(archive)) # load database and apply scheme -insee = read_with_scheme( - # cmd = sprintf("unzip -p %s", file.path(path_data, archive)), - utils::unzip(file.path(path_data, archive), csv), +insee = read_with_scheme( + file.path(path_data, archive), + # utils::unzip(file.path(path_data, archive), csv), scheme = scheme_insee_logement_2019 ) # extract code department -insee[["department"]] = substr(insee[["commune"]], 1, 2) -insee = insee[c("department", names(insee)[names(insee)!="department"])] - -# → read_with_scheme did not coerce columns to right types -# coerce 'type_loge' to factor & rename levels -insee[["type_loge"]] = as.factor(insee[["type_loge"]]) -levels(insee[["type_loge"]]) = c("individual", "collective", "other") - -# coerce 'type_loge' to factor & rename levels -insee[["n_loge"]] = as.numeric(insee[["n_loge"]]) - -# sorting data.frame by commune and type of dwelling -insee = insee[order(insee[["commune"]], insee[["type_loge"]]),] - -# need to use aggregate before reshape because there seems to be multiple entries per type in certain communes -result = stats::aggregate( - insee[["n_loge"]], - by = list( - department = insee[["department"]], - commune = insee[["commune"]], - period = insee[["period"]], - type_loge = insee[["type_loge"]]), - FUN = sum -) -result = stats::reshape( - result, - direction = "wide", - timevar = "type_loge", - varying = levels(insee[["type_loge"]]), - idvar = c("department", "commune", "period") +insee = data.table::as.data.table(insee) +insee[ , department := format_scope(commune, origin = "commune", type = "insee")] +# insee[["department"]] = format_scope(insee[["commune"]], origin = "commune", type = "insee") +levels(insee[["type"]]) = c("individual", "collective", "other") +levels(insee[["period"]]) = c("0000-1918", "1919-1945", "1946-1970", "1971-1990", "1991-2005", "2006-2023") + +# data.table way, 50×faster +result = data.table::dcast( + insee[ , .(dwelling = sum(dwelling)), by = c("department", "commune", "period", "type")], + department + commune + period ~ type, + value.var = "dwelling" ) -result[["total"]] = rowSums(result[levels(insee[["type_loge"]])], na.rm = TRUE) +result[, total := rowSums(.SD, na.rm = TRUE), .SDcols = levels(insee[["type"]])] # check & store result if check passes -if (!all.equal(sum(insee[["n_loge"]]), sum(result[["total"]]))) { +if (!all.equal(sum(insee[["dwelling"]]), sum(result[["total"]]))) { message("the total number of dwellings before and after the summary does not match") } else { data.table::fwrite(result, file.path(path_output, "BTT_TD_LOG1_2019.csv.gz")) } +# + +insee = data.table::fread("data-local/floodam-data/adapted/insee/BTT_TD_LOG1_2019.csv.gz", data.table = FALSE) + +insee_dep = aggregate( + insee[c("individual", "collective", "other", "total")], + insee[c("period", "department")], + sum, na.rm = TRUE, + drop = FALSE +) +insee_dep[c("individual", "collective", "other", "total")] = round(insee_dep[c("individual", "collective", "other", "total")]) + +synthesis = dir( + "data-local/floodam-data/adapted/bd-topo/dwelling/2022-12-15/synthesis/", + "all", + full.names = TRUE +) +synthesis = lapply(synthesis, data.table::fread, data.table = FALSE, na.strings = "", colClasses = "character") +synthesis = do.call(rbind, synthesis) +synthesis["insee_type"] = "other" +synthesis[synthesis[["type"]] %in% c("AB", "MFH"), "insee_type"] = "collective" +synthesis[synthesis[["type"]] %in% c("TH", "SFH"), "insee_type"] = "individual" + +synthesis[["period"]] = addNA(synthesis[["period"]]) +synthesis[["department"]] = addNA(synthesis[["department"]]) +synthesis[["dwelling"]] = as.integer(synthesis[["dwelling"]]) + +synthesis_dep = aggregate(synthesis["dwelling"], synthesis[c("insee_type", "period", "department")], sum) +synthesis_dep = reshape( + synthesis_dep, + direction = "wide", + timevar = "insee_type", + varying = levels(synthesis_dep[["insee_type"]]), + idvar = c("department", "period"), + v.name = "dwelling" +) +names(synthesis_dep) = gsub("dwelling.", "", names(synthesis_dep)) +synthesis_dep[["total"]] = rowSums(synthesis_dep[c("individual", "collective", "other")]) +synthesis_dep = synthesis_dep[names(insee_dep)] + + +variable = c("individual", "collective", "other", "total") + +# Comparison department level +comparison = "department" +bilan_insee = aggregate(insee_dep[variable], insee_dep[comparison], sum) +bilan_bd_topo = aggregate(synthesis_dep[variable], synthesis_dep[comparison], sum) +bilan_bd_topo[[comparison]] = as.character(bilan_bd_topo[[comparison]]) +bilan_bd_topo = bilan_bd_topo[bilan_bd_topo[[comparison]] %in% bilan_insee[[comparison]], ] + +difference_dep = bilan_bd_topo +difference_dep[variable] = bilan_bd_topo[variable] / bilan_insee [variable] + +difference_dep = as.matrix(difference_dep[-1]) +row.names(difference_dep) = bilan_bd_topo[[comparison]] + +{ + what = "total" + x = t(difference_dep[ , what, drop = FALSE]) + barplot(x, ylim = c(0, 1.4), main = what) + grid() +} +colnames(x[, x < .8, drop = FALSE]) + +# Comparison period levelbilan_insee = aggregate(insee_dep[variable], insee_dep["department"], sum) +comparison = "period" +bilan_insee = aggregate(insee_dep[variable], insee_dep[comparison], sum) +bilan_bd_topo = aggregate(synthesis_dep[variable], synthesis_dep[comparison], sum) +bilan_bd_topo[[comparison]] = as.character(bilan_bd_topo[[comparison]]) +bilan_bd_topo = bilan_bd_topo[-nrow(bilan_bd_topo), ] + +difference_period = bilan_bd_topo +difference_period[variable] = bilan_bd_topo[variable] / bilan_insee [variable] + +difference_period = as.matrix(difference_period[-1]) +row.names(difference_period) = bilan_bd_topo[[comparison]] + +{ + what = "total" + x = t(difference_period[ , what, drop = FALSE]) + barplot(x, ylim = c(0, 1.4)) + grid(nx = NA, ny = NULL) +} + +department = "11" +result = synthesis_dep[synthesis_dep[["department"]] == department,][-7, -(1:2)] / + insee_dep[insee_dep[["department"]]==department, - (1:2)] +rownames(result) = as.character(bilan_insee[["period"]]) +result = round(as.matrix(result),2) +result diff --git a/tests/testthat/test_analyse_archive.R b/tests/testthat/test_analyse_archive.R new file mode 100644 index 0000000000000000000000000000000000000000..d4b50a7525e19abcd31b9fb1f1ab92c9a8600078 --- /dev/null +++ b/tests/testthat/test_analyse_archive.R @@ -0,0 +1,58 @@ +test_that("Test analyse_archive", + { + # origin = "ign" (default) + archive_rpg = "RPG_2-0__SHP_LAMB93_R76_2020-01-01.7z" + analyse = expect_warning( + analyse_archive(archive_rpg), + "analyse_archive WARNING: R76 is not an official IGN scope." + ) + + expect_identical( + names(analyse), + c( + "data", "version", "precision", "type", "projection", + "scope", "vintage", "year", "extension", "name" + ) + ) + + expect_identical(analyse[["data"]], "RPG") + expect_identical(analyse[["version"]], "2-0") + expect_identical(analyse[["precision"]], NA_character_) + expect_identical(analyse[["type"]], "SHP") + expect_identical(analyse[["projection"]], "LAMB93") + expect_identical(analyse[["scope"]], "R76") + expect_identical(analyse[["vintage"]], "2020-01-01") + expect_identical(analyse[["year"]], "2020") + expect_identical(analyse[["extension"]], "7z") + expect_identical(analyse[["name"]], "RPG_2-0__SHP_LAMB93_R76_2020-01-01") + + archive_floodam = "rpg_parcelle_D001_2020-01-01.rds" + analyse = expect_warning( + analyse_archive(archive_floodam), + "analyse_archive WARNING: 4 slots found in rpg_parcelle_D001_2020-01-01. This is not compatible with IGN's scheme. NAs returned." + ) + expect_identical( + names(analyse), + c( + "data", "version", "precision", "type", "projection", + "scope", "vintage", "year", "extension", "name" + ) + ) + + # origin = "floodam.data" + analyse = expect_silent(analyse_archive(archive_floodam, origin = "floodam.data")) + + expect_identical( + names(analyse), + c("data", "precision", "scope", "vintage", "extension", "name") + ) + + expect_identical(analyse[["data"]], "rpg") + expect_identical(analyse[["precision"]], "parcelle") + expect_identical(analyse[["scope"]], "D001") + expect_identical(analyse[["vintage"]], "2020-01-01") + expect_identical(analyse[["extension"]], "rds") + expect_identical(analyse[["name"]], "rpg_parcelle_D001_2020-01-01") + + } +) diff --git a/tests/testthat/test_basename_utilities.R b/tests/testthat/test_basename_utilities.R new file mode 100644 index 0000000000000000000000000000000000000000..95afb32f449e726dfd6f22766f589bdb1cfec3dd --- /dev/null +++ b/tests/testthat/test_basename_utilities.R @@ -0,0 +1,53 @@ +test_that("Test basename utilities", + { + archive = "toto" + expect_success( + expect_identical(basename_core(archive), "toto") + ) + expect_success( + expect_identical(basename_ext(archive), "") + ) + archive = ".hidden.csv.gz" + expect_success( + expect_identical(basename_core(archive), ".hidden") + ) + expect_success( + expect_identical(basename_ext(archive), "csv.gz") + ) + archive = ".hidden_csv.gz" + expect_success( + expect_identical(basename_core(archive), ".hidden_csv") + ) + expect_success( + expect_identical(basename_ext(archive), "gz") + ) + archive = ".bash_aliases" + expect_success( + expect_identical(basename_core(archive), ".bash_aliases") + ) + expect_success( + expect_identical(basename_ext(archive), "") + ) + archive = "toto.csv" + expect_success( + expect_identical(basename_core(archive), "toto") + ) + expect_success( + expect_identical(basename_ext(archive), "csv") + ) + archive = "path/toto.csv" + expect_success( + expect_identical(basename_core(archive), "toto") + ) + expect_success( + expect_identical(basename_ext(archive), "csv") + ) + archive = "path/toto.csv.gz" + expect_success( + expect_identical(basename_core(archive), "toto") + ) + expect_success( + expect_identical(basename_ext(archive), "csv.gz") + ) + } +) diff --git a/tests/testthat/test_format_archive.R b/tests/testthat/test_format_archive.R new file mode 100644 index 0000000000000000000000000000000000000000..cb92ff13a5562ea47fe7f46600103eda4a08d215 --- /dev/null +++ b/tests/testthat/test_format_archive.R @@ -0,0 +1,94 @@ +test_that("Test format_archive", + { + analyse = c( + data = "admin-express-cog", + version = "2-0", + precision = "departement", + type = "SHP", + projection = "LAMB93", + scope = 1, + vintage = "2022-04-15", + year = "2022", + extension = "7z" + ) + + # origin = "floodam.data" (default) + ## format complet, scope retravaillé + expect_identical( + format_archive(analyse), + "admin-express-cog_departement_D001_2022-04-15.7z" + ) + ## utilisation de extension + expect_identical( + format_archive(analyse, extension = "rds"), + "admin-express-cog_departement_D001_2022-04-15.rds" + ) + ## Pas de précision + expect_identical( + format_archive(analyse[-3], extension = "rds"), + "admin-express-cog_D001_2022-04-15.rds" + ) + ## Pas de précision, pas de scope car non reconnu + analyse[["scope"]] = "FRA" + expect_identical( + format_archive(analyse[-3], extension = "rds"), + "admin-express-cog_2022-04-15.rds" + ) + ## Pas de précision, ni de vintage, pas de scope car non reconnu + expect_identical( + format_archive(analyse[-c(3, 7)], extension = "rds"), + "admin-express-cog.rds" + ) + ## Rien + expect_identical( + format_archive(analyse[-c(1, 3, 7)], extension = "rds"), + ".rds" + ) + + # origin = "ign" + ## format complet, scope non retravaillé + expect_identical( + format_archive(analyse, origin = "ign"), + "ADMIN-EXPRESS-COG_2-0_departement_SHP_LAMB93_FRA_2022-04-15.7z" + ) + ## format complet, scope retravaillé + analyse["scope"] = 1 + expect_identical( + format_archive(analyse, origin = "ign"), + "ADMIN-EXPRESS-COG_2-0_departement_SHP_LAMB93_D001_2022-04-15.7z" + ) + # Pas de précision + expect_identical( + format_archive(analyse[-3], origin = "ign"), + "ADMIN-EXPRESS-COG_2-0__SHP_LAMB93_D001_2022-04-15.7z" + ) + # Pas de précision, ni de type + expect_identical( + format_archive(analyse[-(3:4)], origin = "ign"), + "ADMIN-EXPRESS-COG_2-0___LAMB93_D001_2022-04-15.7z" + ) + + # origin = "version" + ## Pattern général + expect_identical( + format_archive(origin = "version"), + ".*_.*_.*_.*_.*" + ) + ## Pattern complet, scope retravaillé + expect_identical( + format_archive(analyse, origin = "version"), + "2-0_departement_SHP_LAMB93_D001" + ) + ## Pattern complet, scope non retravaillé + analyse[["scope"]] = "R76" + expect_identical( + format_archive(analyse, origin = "version"), + "2-0_departement_SHP_LAMB93_R76" + ) + ## Pas de précision + expect_identical( + format_archive(analyse[-3], origin = "version"), + "2-0_.*_SHP_LAMB93_R76" + ) + } +) diff --git a/tests/testthat/test_get_archive.R b/tests/testthat/test_get_archive.R index dddf9240f3b62d2faa39454c499b39561fbb1ed6..2b45a16e5878cb132ca74d0d9de1ac71b2620700 100644 --- a/tests/testthat/test_get_archive.R +++ b/tests/testthat/test_get_archive.R @@ -1,5 +1,7 @@ test_that("Test get_archive", { + # data.cquest.org (erratic) + # first result from get_archive is tested again NULL archive_solution = "RPG_2-0__SHP_LAMB93_R76_2020-01-01.7z" year = "2020" @@ -10,21 +12,26 @@ test_that("Test get_archive", ) year_path = get_archive(origin, directory = TRUE, date = year) - expect_success( - expect_identical( - year_path, - stats::setNames(file.path(origin, year), year) + if (!is.null(year_path)) { + expect_success( + expect_identical( + year_path, + stats::setNames(file.path(origin, year), year) + ) ) - ) - + } + rpg_cquest = get_archive(year_path["2020"], version = "R76") - expect_success( - expect_identical( - rpg_cquest, - solution + if (!is.null(rpg_cquest)) { + expect_success( + expect_identical( + rpg_cquest, + solution + ) ) - ) + } + # IGN origin = "https://geoservices.ign.fr/rpg" rpg_ign = get_archive(origin, version = "R76", date = year) expect_success( diff --git a/tests/testthat/test_read_with_scheme.R b/tests/testthat/test_read_with_scheme.R new file mode 100644 index 0000000000000000000000000000000000000000..d757ab1d2ecc1fd90d6fbb3e50e7e74f04c44720 --- /dev/null +++ b/tests/testthat/test_read_with_scheme.R @@ -0,0 +1,122 @@ +skip("To be read again to have test passing and need to have small data.") + +test_that("Test read_with_scheme", + { + names_solution = c( + scheme_admin_express_3_1[["name"]][ + scheme_admin_express_3_1[["layer"]]=="COMMUNE" & + scheme_admin_express_3_1[["keep"]]==TRUE + ], + "geometry") + class_solution = c("sf","data.frame") + file_name = system.file("extdata", "mini_admin-express.gpkg", package="floodam.data") + + expect_error( + read_with_scheme( + x = file_name, + scheme = scheme_admin_express_3_1 + ) + ) + expect_error( + read_with_scheme( + x = file_name, + scheme = scheme_bd_topo_3, + layer = "COMMUNE" + ) + ) + + expect_error( + read_with_scheme( + x = file_name, + scheme = scheme_gaspar_risq, + layer = "COMMUNE" + ) + ) + + solution = read_with_scheme( + x = file_name, + scheme = scheme_admin_express_3_1, + layer = "COMMUNE" + ) + expect_success( + expect_identical( + class_solution, + class(solution) + ) + ) + expect_success( + expect_identical( + names_solution, + names(solution) + ) + ) + + solution = read_with_scheme( + x = file_name, + layer = "COMMUNE" + ) + expect_success( + expect_identical( + class_solution, + class(solution) + ) + ) + + file_name = system.file("extdata", "mini_admin-express.7z", package="floodam.data") + solution = read_with_scheme( + x = file_name, + scheme = scheme_admin_express_3_1, + layer = "mini_admin-express", + type = "shp" + ) + expect_success( + expect_identical( + class_solution, + class(solution) + ) + ) + expect_success( + expect_identical( + names_solution, + names(solution) + ) + ) + + file_name = system.file("extdata", "mini_admin-express.7z", package="floodam.data") + solution = read_with_scheme( + x = file_name, + layer = "mini_admin-express", + type = "shp" + ) + expect_success( + expect_identical( + class_solution, + class(solution) + ) + ) + + file_name = system.file("extdata", "mini_admin-express.zip", package="floodam.data") + solution = read_with_scheme( + x = file_name, + layer = "mini_admin-express", + type = "shp" + ) + expect_success( + expect_identical( + class_solution, + class(solution) + ) + ) + + file_name = system.file("extdata", "mini_admin-express.csv", package="floodam.data") + solution = read_with_scheme( + x = file_name + ) + expect_success( + expect_identical( + class_solution[2], + class(solution) + ) + ) + } +) diff --git a/tests/testthat/test_save_archive.R b/tests/testthat/test_save_archive.R new file mode 100644 index 0000000000000000000000000000000000000000..ffe6a44288aabdf6b4af7d33244d00808c380793 --- /dev/null +++ b/tests/testthat/test_save_archive.R @@ -0,0 +1,97 @@ +test_that("Test save archive", + { + x = data.frame(scope = 0:2) + temp_dir = tempdir() + scope = "scope" + + # Expected behaviour without scope + archive_rds = "rds.rds" + expect_success( + expect_invisible(save_archive(x, file.path(temp_dir, archive_rds))) + ) + expect_success( + expect_identical(archive_rds %in% dir(temp_dir), TRUE) + ) + + archive_gz = "gz.gz" + expect_success( + expect_invisible( + save_archive( + x, + file.path(temp_dir, archive_gz), + extension = "rds" + ) + ) + ) + expect_success( + expect_identical("gz.rds" %in% dir(temp_dir), TRUE) + ) + + archive_base = "basename" + expect_success( + expect_invisible( + save_archive( + x, + file.path(temp_dir, archive_base), + extension = "rds" + ) + ) + ) + expect_success( + expect_identical("basename.rds" %in% dir(temp_dir), TRUE) + ) + + # Expected behaviour with scope + scope_expected = format_scope(x[["scope"]]) + scope_expected = scope_expected[!is.na(scope_expected)] + basename_expected = sprintf("%s_%s.rds", archive_base, scope_expected) + expect_warning( + save_archive( + x, + file.path(temp_dir, archive_base), + extension = "rds", + scope = "scope" + ), + "Some levels of scope ar NA. Corresponding data will not be saved." + ) + expect_success( + expect_identical(all(basename_expected %in% dir(temp_dir)), TRUE) + ) + scope_NA = as.factor(format_scope(x[["scope"]])) + expect_warning( + save_archive( + x, + file.path(temp_dir, archive_base), + extension = "rds", + scope = scope_NA + ), + "Some levels of scope ar NA. Corresponding data will not be saved." + ) + + # Expected warnings + expect_warning( + save_archive(x, file.path(temp_dir, archive_rds), scope = list()), + "scope should be a character at this stage. It is removed." + ) + expect_warning( + save_archive(x, file.path(temp_dir, archive_base)), + "Unmanaged extension. Nothing is saved." + ) + expect_warning( + save_archive( + x, + file.path(temp_dir, archive_rds), + extension = "unkown" + ), + "Unmanaged extension. Nothing is saved." + ) + expect_warning( + save_archive( + x[character(), , drop = FALSE], + file.path(temp_dir, archive_rds), + extension = "unkown" + ), + "Empty data. Nothing is saved." + ) + } +) diff --git a/vignettes/admin_express_fr.Rmd b/vignettes/admin_express_fr.Rmd new file mode 100644 index 0000000000000000000000000000000000000000..0d958afd97a89d97f469456a10b43b6209fde0fb --- /dev/null +++ b/vignettes/admin_express_fr.Rmd @@ -0,0 +1,123 @@ +--- +title: "Admin express (French)" +author: " " +date: "2023-01-27" +output: rmarkdown::html_vignette +vignette: > + %\VignetteIndexEntry{Admin express (French)} + %\VignetteEngine{knitr::rmarkdown} + %\VignetteEncoding{UTF-8} + \usepackage[utf8]{inputenc} +--- + +```{r include = FALSE} +knitr::opts_chunk$set( + collapse = TRUE, + comment = "#>" +) +``` + +# Description de la base de données ADMIN EXPRESS + +La base de données **ADMIN EXPRESS** décrit le découpage administratif du territoire métropolitain français et des Départements et Régions d'Outre-Mer (DROM). Les Collectivités d'Outre-Mer (COM) ne sont pas couvertes par ce produit. + +Cette base de données contient les informations suivantes : + +- ARRONDISSEMENT +- ARRONDISSEMENT_MUNICIPAL +- CANTON +- CHFLIEU_ARRONDISSEMENT_MUNICIPAL +- CHFLIEU_COMMUNE +- CHFLIEU_COMMUNE_ASSOCIEE_OU_DELEGUEE +- COLLECTIVITE_TERRITORIALE +- COMMUNE +- COMMUNE_ASSOCIEE_OU_DELEGUEE +- DEPARTEMENT +- EPCI +- REGION + +La base de données ADMIN EXPRESS est actuellement dans sa version 3.1. Elle est livrée avec un rythme de mise à jour mensuel depuis 2016. Elle compte aussi avec une édition annuelle, conforme au COG (Code Officiel Géographique) de l'INSEE, qui rassemble les codes et libellés des entités administratives y compris d'outre-mer au 1er janvier de l'année en cours. + +**→ ADMIN EXPRESS COG CARTO à definir (pas d'information claire dans le site)** + +La dernière version d'ADMIN EXPRESS est disponible à l'adresse suivante : https://geoservices.ign.fr/adminexpress#telechargement. Ainsi, la documentation peut être consultée ici : https://geoservices.ign.fr/documentation/donnees/vecteur/adminexpress et l'évolution du produit ici : https://geoservices.ign.fr/sites/default/files/2022-12/SE_ADMIN_EXPRESS.pdf + +ADMIN EXPRESS est diffusée sous licence ouverte Etalab. + +La base de données ADMIN EXPRESS est disponible uniquement en format vectoriel. Il existe plusieurs systèmes de coordonnées de référence disponibles en fonction du territoire : + +- RGF93 Lambert 93 (France metropolitaine) +- WGS84 geographiques (France metropolitaine + DROM) +- RGAF09 UTM Nord Fuseau 20 (Guadeloupe et Martinique) +- RGFG95 UTM Nord f.22 (Guyane) +- RGM04 UTM Sud fuseau 38 (Mayotte) +- RGR92 UTM 40 Sud (La Réunion) + + +# Manipulation d'ADMIN EXPRESS avec floodam.data + +**floodam.data** permet de gérer la maintenance d'une base de données adaptée à partir de la base de données ADMIN EXPRESS. + +Pour ce faire, **floodam.data** utilise la séquence de fonctions suivantes : + +```{r} +#| echo: false + knitr::include_graphics("img/admin_express.png") +``` + +## Téléchargement de la base de données ADMIN EXPRESS + +Pour cette tâche, **floodam.data** se sert de la fonction `download_admin_express()`. + +Il y a 2 sources possibles pour le téléchargement de la base de données : + +- https://geoservices.ign.fr/adminexpress +- https://data.cquest.org/ign/adminexpress + +La dernière source est un miroir de la première. + +La fonction `download_admin_express()` La fonction permet de télécharger la base de données, en premier lieu, à partir de la première adresse. En cas d'échec, la deuxième source de données est utilisée. Des sources alternatives peuvent être utilisées en fournissant des paramètres additionnels (voir aide de la fonction : http://www.floodam.org/floodam.data/reference/download.admin_express.html). + +```{r} +#| label: "download-admin-express" +#| eval: false +library(floodam.data) +destination = file.path("admin_express", "download") +download.bd_topo(destination) +download.bd_topo(destination, origin = "cquest") +``` + + +## Traitement de la base de données ADMIN EXPRESS + +Pour cette tâche, **floodam.data** utilise la fonction `adapt_admin_express()`. + +Une fois telechargée, la base de données peut être traitée avec la fonction `adapt_admin_express()`. Cette fonction effectue plusieures transformations sur la base de données originale : + +1. Le système de référence des coordonnées (CRS) est vérifié. Si aucun n'est présent, le CRS **EPSG:4326** est défini par défaut. Si un autre CRS est fourni par le paramètre `projection`, la base de données est reprojetée pour correspondre au CRS fourni. +1. Les géométries sont vérifiées et rendues valides si nécessaire. +1. Un schéma pré-configuré (`floodam.data::scheme_admin_express`) est appliqué à chaque couche de la base de données afin de consolider les noms et types de variables. +1. La sortie est sauvegardée comme fichier *rds* dans le dossier fourni dans le paramètre `destination`. +1. Concernant la couche COMMUNE, la sortie est enregistrée au niveau du département. +1. Dans le cas où plusieurs couches sont présentes, la fonction s'applique de façon recursive. + +### Schéma appliqué aux données + +Le schéma appliqué aux données dépend de la couche à traiter. Le détail du schema est montré dans le tableau suivant : + +```{r} +#| label: "scheme-admin-express" +#| echo: false +# utils::data(scheme_admin_express_3_1, package = "floodam.data") +knitr::kable( + floodam.data::scheme_admin_express_3_1[1:7], + row.names = FALSE, + caption = "Schéma appliqué à la base de donnée ADMIN EXPRESS") +``` + + +## Analyse de la base de données ADMIN EXPRESS + +Pour cette tâche, **floodam.data** se sert de la fonction `analyse_admin_express()`. + +**→ A fournir une fois que la fonction sera finie** \ No newline at end of file diff --git a/vignettes/img/admin_express.png b/vignettes/img/admin_express.png new file mode 100644 index 0000000000000000000000000000000000000000..d8d0071dae210edb8ef73e935293a8f0145daab3 Binary files /dev/null and b/vignettes/img/admin_express.png differ