Skip to content

Commit bd47fa8

Browse files
committed
fix data format
1 parent a4b0dd7 commit bd47fa8

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

R/data.R

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,3 @@
3333
#' June 7 is the average of the underlying data for June 1 through 7,
3434
#' inclusive.
3535
"case_death_rate_subset"
36-
37-
#' Subset of Statistics Canada employment numbers by industry and province
38-
#'
39-
#' @format A tibble with 109,388 rows and 6 variables:
40-
#' \describe{
41-
#' \item{geo_value}{The province in Canada associated with each
42-
#' row of measurements.}
43-
#' \item{time_value}{The time value, in YYYY-MM-01 format,
44-
#' associated with each row of measurements.}
45-
#' \item{ppl_count}{The number of people employed, seasonally
46-
#' adjusted.}
47-
#' \item{employee_type}{The type of employee}
48-
#' \item{naics_industry}{The industry name and associated code
49-
#' according to \href{https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=1181553}{NAICS}}
50-
#' }
51-
#' @source This object contains modified data from the following Statistics Canada
52-
#' data table: \href{https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1410022001#data}{Table 14-10-0220-01 Employment and average weekly earnings (including overtime) for all employees by industry, monthly, seasonally adjusted, Canada}
53-
#'
54-
#' Modifications:
55-
#' * From the given Statistics Canada table, the employee counts
56-
#' are taken as-is. Only \href{https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=1181553}{NAICS} codes at hierarchy level 2 are
57-
#' filtered in. Only data rows that are \href{https://www.statcan.gc.ca/en/concepts/definitions/guide-symbol}{good quality or higher and not missing}
58-
#' according to Statistics Canada are removed.
59-
"statcan_employ_subset"

data-raw/statcan_employ_subset.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ employ <- statcan_employ %>%
8080
statcan_employ_subset <- employ %>%
8181
tsibble::as_tsibble(index=time_value, key=c(geo_value, employee_type, naics_industry)) %>%
8282
as_epi_df(
83-
additional_metadata=c(other_keys=c("employee_type", "naics_industry")))
83+
additional_metadata=c(other_keys=list("employee_type", "naics_industry")))
8484

8585
usethis::use_data(statcan_employ_subset, overwrite = TRUE)
8686

0 commit comments

Comments
 (0)