bc_area: The size of British Columbia

View source: R/utils.R

bc_areaR Documentation

The size of British Columbia

Description

Total area, Land area only, or Freshwater area only, in the units of your choosing.

Usage

bc_area(what = "total", units = "km2")

Arguments

what

Which part of BC? One of 'total' (default), 'land', or 'freshwater'.

units

One of 'km2' (square kilometres; default), 'm2' (square metres), 'ha' (hectares), 'acres', or 'sq_mi' (square miles)

Details

The sizes are from Statistics Canada

Value

The area of B.C. in the desired units (numeric vector).

Examples

## With no arguments, gives the total area in km^2:
bc_area()

## Get the area of the land only, in hectares:
bc_area("land", "ha")

bcgov/bcmaps documentation built on Oct. 26, 2024, 10:26 p.m.