format_transform_mtbs: Format Specific MTBS Shapefile

Description Usage Arguments Value Examples

Description

Format Specific MTBS Shapefile

Usage

1
2
3
4
5
6
7
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

1
2
3
4
5
6
7
8
9
## Not run: 
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)

## End(Not run)

shamindras/backburner documentation built on Feb. 28, 2021, 12:20 a.m.