Skip to contents

functions

Functions for data processing and analysis

adapt.eaip()
Adapt eaip data
adapt_admin_express()
Adapt Admin Express archives
adapt_ban()
Adapt BAN database
adapt_gaspar()
Adapt gaspar database
adapt_geo_sirene()
Adapt geolocalized Sirene data
adapt_insee_serie()
Adapt INSEE time series data
adapt_rpg()
Adapt rpg data
adapt_saa()
Adapt Annual Agricultural Statistics from archive
adapt_saa_floodam()
Adapt SAA Floodam Data
add_commune()
Add commune and department information to an sf object.
add_journal()
Manage a journal for follow-up of tasks
add_journal_old()
Add information to a journal
add_log_info()
Apply a step to data analysis
add_transparency()
Add transparency to color
alert_gaspar()
Analyse gaspar to send an alert to mattermost
alert_mattermost()
Alert a mattermost server of something
alert_mattermost_lib()
Alert a mattermost server when a library has been updated
analyse_archive()
Get useful infomations from archive path
analyse_catnat()
Analyse catnat theme from gaspar to give some elementary results
analyse_dwelling()
Analyse dwellings in the BD Topo v3 reporting some elementary results
analyse_intersection() analyse_eaip()
Analyse intersections between spatial DBs
analyse_ppr()
Analyse ppr theme from gaspar to give some elementary results
analyse_ppr_state()
Analyse ppr theme from gaspar to give state of documents
apply_scheme()
Apply a scheme to data
basename_core() basename_ext()
Utilities enhancing basename()
boxplot_dispersion_serie()
Generate boxplots of crop price dispersion relative to a global index.
compare_agri_index()
Compare agricultural index time series.
complete_pattern()
Prepare a pattern for grep
create_date()
Create an interval of date
create_month()
Create a sequence of months
define_path()
Define path depending on who is logged
download.insee()
Download data from INSEE
download.ppr()
Download PPR
download.rpg()
Download RPG
download_admin_express()
Download Admin Express archives
download_archive()
Download distant archives
download_ban()
Download BAN
download_bd_topo()
Download BD TOPO
download_damage()
Function to download official damage functions ecologie.gouv
download_gaspar()
Download gaspar database
download_geo_sirene()
Download geo SIRENE
download_insee_index()
Download INSEE Index Data
download_saa()
Download SAA data from Agreste
extract.stat.log()
Extract data from journal files
extract_building()
Extract building information from BD TOPO
extract_building_agricultural()
Extract agricultural information building (layer in BD TOPO)
extract_dwelling()
Extract dwelling information building (layer in BD TOPO)
fmt()
Format difftime in a convenient way
format_address()
Formats several column in a single column
format_archive()
Format name of archives to be consistent and predictible
format_scope()
Format scope
generate_report()
Generate summary report of analysis
get_archive()
Find archive within an html-type vector
get_base_url()
Get parent url from an url
get_link_from_html() get_date_from_html()
Get links in a html page
get_insee_dataflow()
Retrieve dataflow from the INSEE SDMX web service
get_serie_key_from_xml()
Get series attributes from INSEE XML get_serie_key_from_xml extracts series keys (attributes) from an XML object representing an INSEE series structure.
get_serie_structure()
Get INSEE SDMX structure get_serie_structure This function retrieves the series structure from the INSEE SDMX web service for a given dataflow ID.
gpkg_from_7z()
Decompress a 7z archive looking for gpkg file
in_layer()
Control if an object x is inside an object y
interpret_args()
Catch and interpret arguments for a R script
merge_insee_index()
Merge INSEE indexes with Different Bases
plot_construction_date()
plot of the construction dates of buildings in the context of the BD-Topo v3
prepare.stat.log()
Prepare data from considering a time serie
prepare_table_building()
Analyse BD Topo before classification of dwellings
prepare_table_dwelling()
Analyse BD Topo after classification of dwellings
qq_developed_dwelling()
qq plot of the building's developed surface versus the building's dwellings in the context of the BD-Topo v3
qq_height_level()
qq plot of building heights versus building storeys in the context of the BD-Topo v3
rbind_list()
Row bind a list of data frames or matrices into a single data frame
read_with_scheme() read_csv_with_scheme() read_shp_with_scheme() read_gpkg_with_scheme() read_shp_from_7z() read_gpkg_from_7z()
Read data with a scheme
read_format_rds()
Read archive (building and dwelling) and format in a convenient way
read_gpkg_layer()
Read a specific layer inside a gpkg file
read_insee_serie()
Read INSEE Series Data
read_rds_safe()
Read a rds file safely
read_url()
Read all text lines from an url.
retrieve_insee_serie()
Retrieve INSEE series from INSEE SDMX web service
save_archive()
Save an archive in a formatted way
select_insee_series()
Select INSEE series IDs
select_scope()
Subset dataset with scope
send_message()
Send a message conditionnaly to verbose
shp_from_7z()
Decompress a 7z archive looking for shp file
split_dep()
Split a sf data.frame by department
subset_with_message()
Subset with message
summarise_dwelling()
Summarise dwelling information from BD Topo
to_logical()
Transform a vector in a logical ones
treat_na()
Add NA for a given value
update_ban()
Update information based on a version of a BAN according to another version of BAN
update_state()
Update state from observation and BAN

schemes

Data sets assisting the right formatting of the data to process

scheme_admin_express_2_0
Information on the variables of Admin Express version 2-0
scheme_admin_express_3_1
Information on the variables of Admin Express version 3-1
scheme_ban
Information on the variables of BAN
scheme_bd_topo_3
Information on the variables of BD TOPO version 3.0 and 3.1 (March 2019 to March 2022)
scheme_bd_topo_3_2
Information on the variables of BD TOPO version 3.2 (June 2022)
scheme_bd_topo_3_3
Information on the variables of BD TOPO version 3.2 and 3.3 (September 2022 to March 2024)
scheme_bd_topo_3_4
Information on the variables of BD TOPO version 3.4 and 3.5 (June 2024 to March 2025)
scheme_bd_topo_3_5
Information on the variables of BD TOPO version 3.5 (June 2025 to current)
scheme_gaspar_azi
Scheme for theme azi in gaspar DB
scheme_gaspar_catnat
Scheme for theme catnat in gaspar DB
scheme_gaspar_risq
Scheme for theme risq in gaspar DB
scheme_gaspar_pprn
Scheme for theme risq in gaspar DB
scheme_insee_logement_2019
Informations on the variables of the series 'Logements (France hors Mayotte)' from the INSEE
scheme_insee_serie
Scheme to rename insee series dataflow information
scheme_rpg_1
Information on the variables of RPG version 1.0
scheme_rpg_2
Information on the variables of RPG version 2.0
scheme_saa
Information on the variables of Annual Agricultural Statistics SAA from Agreste
scheme_sirene_2019
Information on the variables of geolocalized sirene data
scheme_sirene_na
Information on na.value in geolocalized sirene data

data

Data sets included in the package contents

category_label
Label for category of activities (from floodam.building)
commune_so_ii
Perimeter of so-ii experimental site
department
Region definition in France
eaip_variable
Variables kept in EAIP
nace_label
Label coming from NACE typology
naf_esane
Typology of activities with additional information
naf_label
Label (in French) coming from NAF typology
nomenclature_clc
Nomenclature of Corine Land Cover with color definitions
nomenclature_rpg_1
Nomenclature (in French) of RPG version 1.0
nomenclature_rpg_2
Nomenclature (in French) of RPG version 2.0
nomenclature_saa
Nomenclature of Annual Agricultural Statistics SAA from Agreste
region
Region definition in France
catnat_classification
Classification of hazard events in catnat (gaspar DB)
pprn_classification
Classification of hazard events in pprn (gaspar DB)
bd_topo_nature_reclass
Scheme to rename levels of variable 'nature' in the BT TOPO version 3.0
bd_topo_wall
Scheme to rename levels of variable 'material_wall' in BD Topo version 3.0
bd_topo_roof
Scheme to rename levels of variable 'material_roof' in BD Topo version 3.0