View source: R/container_weights.R
container_weights | R Documentation |
Creates a weight by postcode for each major port.
container_weights( path, sheet_nums, range = "A7:M2217", postcode_shp, na = c("", "-", "np"), outfile, return_sf = FALSE )
path |
Character. File path to xls file containing containers by postcode for each port. |
sheet_nums |
Integer. Vector of integers signifying the sheet numbers to read in. |
range |
A cell range to read from, as described in cell-specification.
Includes typical Excel ranges such as |
postcode_shp |
Character. File path to postcode shape file. |
na |
Character vector of strings to interpret as missing values. By
default, |
outfile |
Character. Name of shapefile where output will be saved. If
not provided, |
return_sf |
Logical. Should the |
For the purposes of this analysis missing data (i.e. NAs) will be treated as zeroes.
An sf
object or shapefile export.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.