This repo contains the code for the extraction, tabulation, and visualisation of data from Statistics Canada's CANSIM database.
The data presented here are tailored for users in British Columbia.
The repo contains the code, written in R, including for applications using the Shiny package.
These pages contain links to data sources and related reference materials at Statistics Canada, and to the R scripts developed for extracting, tabulating, and viewing those data.
CANSIM was the name of Statistics Canada's data repository; old habits die hard and we continue to refer to the socio-economic data that Statistics Canada disseminates through the portal as "CANSIM".
The database contains a wide variety of data series, from the familiar (unemployment rates from the Labour Force Survey) and the Consumer Price Index) to more obscure topics (total sales by vending machine operators; vector v101256214).
CANSIM tutorials
How to access StatsCan data through their new API, ODX, 2018-11-28
Note: these may not reflect the latest changes to Statistics Canada's website
-
Statistics Canada has a short step-by-step tutorial on finding and saving data from CANSIM.
-
The University of Toronto Map & Data Library has created a CANSIM guide, helping you navigate through the system to find the series you are seeking.
- doc/interactiveDataVisual.Rmd & doc/interactiveDataVisual.nb.html -- R Notebook and HTML file detailing the code in the
LFS_UR
script file.
View the HTML file online here.
- **
cansim
**
- Some scripts rely on the
cansim
R package
- **
CANSIM2R
**
- Some of these R scripts rely on the
CANSIM2R
package, developed by Marco Lugo Rodriguez.
An original R-Shiny app from @najsaqib LFSDataViewer
Shiny application link: https://najsaqib.shinyapps.io/LFSApp/
To report bugs/issues/feature requests, please file an issue.
If you would like to contribute, please see our CONTRIBUTING guidelines.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Copyright 2017 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Data downloaded and/or saved in this repository is sourced from Statistics Canada, and is covered under the Statistics Canada Open Licence Agreement.
This repository is maintained by BC Stats. Click here for a complete list of our repositories on GitHub.
happy Wednesday!