download_geography: Download and unzip Canadian shapefiles

View source: R/utils.R

download_geographyR Documentation

Download and unzip Canadian shapefiles

Description

Download and unzip Canadian shapefiles from Statistics Canada

Usage

download_geography(geo_path, geo_dir = NULL, overwrite = FALSE)

Arguments

geo_path

Full path/url to zipped shapefile

geo_dir

Directory to download to — may not keep this.

overwrite

Download and unzip even if geography already exists in geo_dir

Value

A tibble of shapefiles along with metadata, including filepath, size, path, ref_date, geo_code, geo_level, file_type, format, projection, and language.

Examples


download_geography("http://www12.statcan.gc.ca/census-recensement/2011/
geo/bound-limit/files-fichiers/2016/lpr_000a16a_e.zip")


tweed1e/canmap documentation built on Dec. 21, 2024, 3:19 p.m.