Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Paquette committed Nov 20, 2019
1 parent ac6204e commit 131af51
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 35 deletions.
16 changes: 9 additions & 7 deletions R/statcanR.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,24 @@
#'This client allows an easy connection with R to Statistics Canada's Web Data Service. Open economic data (formerly known as CANSIM tables, now identified by Product IDs (PID)) are accessible as a data frame, directly in the user's R environment.
#'
#'The
#'\code{sqs_statcan_data()} function has 2 arguments to fulfill to get data: {tableNumber} & {lang}
#'\code{sqs_statcan_data()} function has 2 arguments to fulfill to get data: {tableNumber} & {lang}.
#'
#'
#'The tableNumber argument simply refers to the table number of the Statistics Canada data table a user wants to collect,
#'such as '14-10-0287-03' for the Labour force variales by province, monthly, seasonally adjusted_ as an example.
#'The tableNumber argument simply refers to the table number of the Statistics Canada data table a user wants to collect,
#'such as '14-10-0287-03' for the labour force variables by province, monthly, seasonally adjusted, as an example.
#'
#'To get the table number: <https://www150.statcan.gc.ca/n1/en/type/data>
#'
#'The second argument, lang, referes to the language. As Canada is a bilingual country, Statistics Canada displays all data in both languages.
#' Therefore, users can choose if they want to get satistics data tables in French or English by setting the lang argument with c("fra", "eng").
#'To get the table number: \url{https://www150.statcan.gc.ca/n1/en/type/data}.
#'
#'The second argument, lang, refers to the language. As Canada is a bilingual country, Statistics Canada displays all the economic data in both languages.
#'Therefore, users can choose to collect satistics data tables in French or English by setting the lang argument with c("fra", "eng").
#'
#'
#'
#' @param tableNumber The table number of the Statistics Canada data table
#' @param lang The language wanted
#'
#' @return The output will be a data table representing the data associated with the chosen table number
#' @return The output will be a data table representing the data associated with the chosen table number.
#' @export
#'
#'@import data.table
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ SQS stands for SKEMA Quantum Studio, a research and technological development ce
SKEMA Quantum Studio is also a state-of-the-art platform developed by our team that enables scholars, students and professors to access one of the most powerful analytical tools in higher education. By using data science and artificial intelligence within the platform, new theories, methods and concepts are being developed to study globalisation, innovation and digital transformations that our society faces.


To learn more about the SKEMA Quantum Studio and the mission of the SKEMA Global Lab in AI, please visit the following websites : [SQS]( https://quantumstudio.skemagloballab.io) ; [Global Lab](https://skemagloballab.io/)
To learn more about the SKEMA Quantum Studio and the mission of the SKEMA Global Lab in AI, please visit the following websites : [SQS]( https://quantumstudio.skemagloballab.io) ; [Global Lab](https://skemagloballab.io/).
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ innovation and digital transformations that our society faces.
To learn more about the SKEMA Quantum Studio and the mission of the
SKEMA Global Lab in AI, please visit the following websites :
[SQS](https://quantumstudio.skemagloballab.io) ; [Global
Lab](https://skemagloballab.io/)
Lab](https://skemagloballab.io/).
8 changes: 4 additions & 4 deletions docs/articles/statCanR.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions docs/reference/sqs_statcan_data.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions man/sqs_statcan_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions statcanR3.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace,vignette
5 changes: 1 addition & 4 deletions vignettes/statCanR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ In details, the sqs_statcan_data() function has 2 arguments:
2. lang


<<<<<<< HEAD
The tableNumber argument simply refers to the table number of the Statistics Canada data table a user wants to collect, such as '14-10-0287-03' for the labour force variables by province, monthly, seasonally adjusted, as an example.
=======

The 'tableNumber' argument simply refers to the table number of the Statistics Canada data table a user wants to collect, such as '14-10-0287-03' for the labour force variables by province, monthly, seasonally adjusted, as an example.
>>>>>>> 6bd1020c584d751adf2c41ddc8df5697086d0ed0


The second argument, 'lang', refers to the language. As Canada is a bilingual country, Statistics Canada displays all the economic data in both languages. Therefore, users can choose to collect satistics data tables in French or English by setting the lang argument with c("fra", "eng").

Expand Down

0 comments on commit 131af51

Please sign in to comment.