Convert filepath(s) into one complete set (if possible) of a single basename and extensions .shp, .shx, .dbf, .prj
Source:R/shapefile_xyz.R
shapefile_filepaths_validize.Rd
Convert filepath(s) into one complete set (if possible) of a single basename and extensions .shp, .shx, .dbf, .prj
Value
assuming only 1 base filename was provided (among the files with extensions .shp, .shx, .dbf, .prj) and it had at least one of the 4 valid extensions (.shp, .shx, .dbf, and .prj), returns a vector of exactly four filepaths, one with each extension. But returns NULL if more than one base name was provided (since ambiguous), or none of 4 extensions was provided. Ignores and drops files with other extensions.