Format Specific MTBS Shapefile

format_transform_mtbs(
  dl_date,
  mtbs_type,
  orig_colnames,
  tform_colnames,
  ds_source = "mtbs"
)

Arguments

dl_date

(date) : Date in which the file were downloaded. This is going to look for a folder in the `data/ds_source/` named as this date

mtbs_type

(character) : This specifies the type of MTBS data we want to import and takes 2 values mtbs_perimeter_data, mtbs_fod_pts_data

orig_colnames

(array) : Name of the columns in the original shapefile

tform_colnames

(array) : Name of the columns in the transformed shapefile

ds_source

(character) : data names. Default to "mtbs"

Value

A sf data frame containing the shapefile contents

Examples

if (FALSE) { list_colnames <- mtbs_transform_col_names(mtbs_type = "mtbs_perimeter_data") format_transform_mtbs(ds_source = "mtbs", dl_date = base::as.Date("2019-07-06"), mtbs_type = "mtbs_perimeter_data", orig_colnames = list_colnames$ORIG_COLNAMES, tform_colnames = list_colnames$TFORM_COLNAMES) }