You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# cancensus - 0.5.4
2
-
- add a convenience function for creating unique names within given selection of regions from `list_census_regions()`
2
+
- added ability to query census datasets by year
3
+
- added a convenience function for creating unique names within given selection of regions from `list_census_regions()`
3
4
- added a check and context menu to install `sf` package when user requests spatial data but does not have the required package installed as opposed to erroring out.
4
5
- improved checking that correct spatial formats are requested
5
6
- preparing for 'sp' spatial format usage deprecation in future versions
Copy file name to clipboardExpand all lines: R/cancensus.R
+45-13Lines changed: 45 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,11 @@
11
11
#' @param regions A named list of census regions to retrieve. Names must be valid census aggregation levels.
12
12
#' @param level The census aggregation level to retrieve, defaults to \code{"Regions"}. One of \code{"Regions"}, \code{"PR"}, \code{"CMA"}, \code{"CD"}, \code{"CSD"}, \code{"CT"}, \code{"DA"}, \code{"EA"} (for 1996), or \code{"DB"} (for 2001-2016).
13
13
#' @param vectors An R vector containing the CensusMapper variable names of the census variables to download. If no vectors are specified only geographic data will get downloaded.
14
-
#' @param geo_format By default is set to \code{NA} and appends no geographic information. To include geographic information with census data, specify one of either \code{"sf"} to return an \code{\link[sf]{sf}} object (requires the \code{sf} package) or \code{"sp"} to return a \code{\link[sp]{SpatialPolygonsDataFrame-class}} object (requires the \code{rgdal} package).
14
+
#' @param geo_format By default is set to \code{NA} and appends no geographic information. To include geographic information with census data, specify one of either \code{"sf"} to return an \code{\link[sf]{sf}} object (requires the \code{sf} package) or \code{"sp"} to return a \code{\link[sp]{SpatialPolygonsDataFrame-class}} object (requires the \code{rgdal} package). If user requests geo-spatial data and neither package is available, a context menu will prompt to install the \code{sf} package.
15
+
#' @param resolution Resolution of the geographic data. {cancensus} will download simplified geometries by default. For lower level geometries like DB or DA this will be very close to the high resolution data.
16
+
#' Simplification generally increases as the geographic aggregation level increases.
17
+
#' If high resolution geometries are required
18
+
#' then this option can be set to 'high'. By default this setting is set to \code{'simplified'}.
15
19
#' @param labels Set to "detailed" by default, but truncated Census variable names can be selected by setting labels = "short". Use \code{label_vectors(...)} to return variable label information in detail.
16
20
#' @param use_cache If set to TRUE (the default) data will be read from the local cache if available.
17
21
#' @param quiet When TRUE, suppress messages and warnings.
Copy file name to clipboardExpand all lines: cran-comments.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# Update - 0.5.4
2
+
- added ability to query census datasets by year
2
3
- add a convenience function for creating unique names within given selection of regions from `list_census_regions()`
3
4
- added a check and context menu to install `sf` package when user requests spatial data but does not have the required package installed as opposed to erroring out.
4
5
- improved checking that correct spatial formats are requested
0 commit comments