Skip to contents

analyse_archive() analyses paths of archives to get useful infomations. It can deal with IGN's names, floodam.data's names.

Usage

analyse_archive(x, origin = c("ign", "floodam.data", "geo-sirene"))

Arguments

x

character vector

origin

character, to choose the format. See details.

Value

either a vector or a matrix depending on the length of x.

Details

analyse_archive() 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.

analyse_archive() is also set for floodam.data's names.

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)
#> Warning: analyse_archive WARNING: BAD is not an official IGN scope.
#> Warning: analyse_archive WARNING: BAD is not an official IGN projection.
#> Warning: analyse_archive WARNING: BAD is not an official IGN type.
#> Warning: 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.
#> Warning: 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.
#>                                                         data               
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA                 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA                 
#>                                                         version precision type 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "3-1"   NA        "BAD"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA      NA        NA   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA      NA        NA   
#>                                                         projection scope
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "LAMB93"   "BAD"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "BAD"      "FRA"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA         NA   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA         NA   
#>                                                         vintage      year  
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA           NA    
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA           NA    
#>                                                         extension
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "7z"     
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "7z.001" 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           NA       
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA       
#>                                                         name                                                   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15"     
#> 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_FRA_2022-04-15        "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_LAMB93_BAD_2022-04-15"     
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_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__BAD_LAMB93_FRA_2022-04-15"     
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA"                
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto"
analyse_archive(rep(ign, 2))
#> Warning: analyse_archive WARNING: BAD is not an official IGN scope.
#> Warning: analyse_archive WARNING: BAD is not an official IGN projection.
#> Warning: analyse_archive WARNING: BAD is not an official IGN type.
#> Warning: 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.
#> Warning: 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.
#> Warning: analyse_archive WARNING: BAD is not an official IGN scope.
#> Warning: analyse_archive WARNING: BAD is not an official IGN projection.
#> Warning: analyse_archive WARNING: BAD is not an official IGN type.
#> Warning: 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.
#> Warning: 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.
#>                                                         data               
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA                 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA                 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "ADMIN-EXPRESS-COG"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA                 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA                 
#>                                                         version precision type 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "3-1"   NA        "BAD"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA      NA        NA   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA      NA        NA   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "3-1"   NA        "SHP"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "3-1"   NA        "BAD"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA      NA        NA   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA      NA        NA   
#>                                                         projection scope
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "LAMB93"   "BAD"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "BAD"      "FRA"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA         NA   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA         NA   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "LAMB93"   "BAD"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "BAD"      "FRA"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "LAMB93"   "FRA"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA         NA   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA         NA   
#>                                                         vintage      year  
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA           NA    
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA           NA    
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        "2022-04-15" "2022"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA           NA    
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA           NA    
#>                                                         extension
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "7z"     
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "7z.001" 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           NA       
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "7z"     
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z.001 "7z.001" 
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_BAD_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_2022-04-15           NA       
#> ADMIN-EXPRESS-COG_3-1__BAD_LAMB93_FRA_2022-04-15        NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   NA       
#>                                                         name                                                   
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15"     
#> 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_FRA_2022-04-15        "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_LAMB93_BAD_2022-04-15"     
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_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__BAD_LAMB93_FRA_2022-04-15"     
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA"                
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto"
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15.7z     "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15"     
#> 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_FRA_2022-04-15        "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_LAMB93_BAD_2022-04-15"     
#> ADMIN-EXPRESS-COG_3-1__SHP_BAD_FRA_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__BAD_LAMB93_FRA_2022-04-15"     
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA                   "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA"                
#> ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto   "ADMIN-EXPRESS-COG_3-1__SHP_LAMB93_FRA_2022-04-15_toto"

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")
#> Warning: 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.
#> Warning: 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.
#>                                                          data           
#> admin-express_2022-04-15                                 "admin-express"
#> admin-express_2022-04-15.rds                             "admin-express"
#> admin-express_commune_2022-04-15                         "admin-express"
#> admin-express_D034_2022-04-15                            "admin-express"
#> admin-express_commune_D034_2022-04-15                    "admin-express"
#> admin-express_D034_commune_2022-04-15                    NA             
#> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z NA             
#>                                                          precision scope 
#> admin-express_2022-04-15                                 NA        NA    
#> admin-express_2022-04-15.rds                             NA        NA    
#> admin-express_commune_2022-04-15                         "commune" NA    
#> admin-express_D034_2022-04-15                            NA        "D034"
#> admin-express_commune_D034_2022-04-15                    "commune" "D034"
#> admin-express_D034_commune_2022-04-15                    NA        NA    
#> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z NA        NA    
#>                                                          vintage      extension
#> admin-express_2022-04-15                                 "2022-04-15" NA       
#> admin-express_2022-04-15.rds                             "2022-04-15" "rds"    
#> admin-express_commune_2022-04-15                         "2022-04-15" NA       
#> admin-express_D034_2022-04-15                            "2022-04-15" NA       
#> admin-express_commune_D034_2022-04-15                    "2022-04-15" NA       
#> admin-express_D034_commune_2022-04-15                    NA           NA       
#> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z NA           "7z"     
#>                                                          name                                                   
#> admin-express_2022-04-15                                 "admin-express_2022-04-15"                             
#> admin-express_2022-04-15.rds                             "admin-express_2022-04-15"                             
#> admin-express_commune_2022-04-15                         "admin-express_commune_2022-04-15"                     
#> admin-express_D034_2022-04-15                            "admin-express_D034_2022-04-15"                        
#> admin-express_commune_D034_2022-04-15                    "admin-express_commune_D034_2022-04-15"                
#> admin-express_D034_commune_2022-04-15                    "admin-express_D034_commune_2022-04-15"                
#> ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15.7z "ADMIN-EXPRESS-COG_3-1__SHP_RGAF09UTM20_GLP_2022-04-15"

geo_sirene = c(
  "2024-01/geo_siret_34.csv.gz",
  "2024-01/StockEtablissement_utf8_geo.csv.gz",
  "2024-01/StockEtablissementActif_utf8_geo.csv.gz",
  "2024-01/StockEtablissementFerme_utf8_geo.csv.gz",
  "2024-01/geo_sirene.csv.gz",
  "2024-01/etablissements_actifs.csv.gz",
  "2024-01/etablissements_fermes.csv.gz",
  "bad-date/geo_siret_34.csv.gz"
)
analyse_archive(geo_sirene, "geo-sirene")
#>                                                 data        precision version
#> 2024-01/geo_siret_34.csv.gz                     "geo-siret" NA        "2019" 
#> 2024-01/StockEtablissement_utf8_geo.csv.gz      "geo-siret" NA        "2019" 
#> 2024-01/StockEtablissementActif_utf8_geo.csv.gz "geo-siret" "active"  "2019" 
#> 2024-01/StockEtablissementFerme_utf8_geo.csv.gz "geo-siret" "closed"  "2019" 
#> 2024-01/geo_sirene.csv.gz                       "geo-siret" NA        "2017" 
#> 2024-01/etablissements_actifs.csv.gz            "geo-siret" "active"  "2017" 
#> 2024-01/etablissements_fermes.csv.gz            "geo-siret" "closed"  "2017" 
#> bad-date/geo_siret_34.csv.gz                    "geo-siret" NA        "2019" 
#>                                                 scope    vintage   extension
#> 2024-01/geo_siret_34.csv.gz                     "D034"   "2024-01" "csv.gz" 
#> 2024-01/StockEtablissement_utf8_geo.csv.gz      "france" "2024-01" "csv.gz" 
#> 2024-01/StockEtablissementActif_utf8_geo.csv.gz "france" "2024-01" "csv.gz" 
#> 2024-01/StockEtablissementFerme_utf8_geo.csv.gz "france" "2024-01" "csv.gz" 
#> 2024-01/geo_sirene.csv.gz                       "france" "2024-01" "csv.gz" 
#> 2024-01/etablissements_actifs.csv.gz            "france" "2024-01" "csv.gz" 
#> 2024-01/etablissements_fermes.csv.gz            "france" "2024-01" "csv.gz" 
#> bad-date/geo_siret_34.csv.gz                    "D034"   NA        "csv.gz" 
#>                                                 name                              
#> 2024-01/geo_siret_34.csv.gz                     "geo_siret_34"                    
#> 2024-01/StockEtablissement_utf8_geo.csv.gz      "StockEtablissement_utf8_geo"     
#> 2024-01/StockEtablissementActif_utf8_geo.csv.gz "StockEtablissementActif_utf8_geo"
#> 2024-01/StockEtablissementFerme_utf8_geo.csv.gz "StockEtablissementFerme_utf8_geo"
#> 2024-01/geo_sirene.csv.gz                       "geo_sirene"                      
#> 2024-01/etablissements_actifs.csv.gz            "etablissements_actifs"           
#> 2024-01/etablissements_fermes.csv.gz            "etablissements_fermes"           
#> bad-date/geo_siret_34.csv.gz                    "geo_siret_34"