medewitt / tidyqwi
Showing 4 of 47 files from the diff.
Other files ignored by Codecov
docs/index.html has changed.
docs/pkgdown.css has changed.
docs/pkgdown.yml has changed.
man/nc_qwi.Rd has changed.
.Rbuildignore has changed.
man/get_qwi.Rd has changed.
R/state_info.R has changed.
docs/authors.html has changed.
docs/pkgdown.js has changed.
README.Rmd has changed.
README.md has changed.
DESCRIPTION has changed.
NEWS.md has changed.
man/state_info.Rd has changed.
cran-comments.md has changed.

@@ -15,6 +15,8 @@
Loading
15 15
#'
16 16
#'}
17 17
#'
18 +
#' @return a data.frame with formatted column names and types
19 +
#'
18 20
#'@export
19 21
#'
20 22
@@ -40,9 +42,12 @@
Loading
40 42
41 43
  labelled::var_label(df) <- labeled_list
42 44
43 -
  out_data<- dplyr::mutate_at(df,
44 -
                              dplyr::vars(numeric_variables$name),
45 -
                              .funs = as.numeric)
45 +
  target_cols <- unlist(numeric_variables$name)
46 +
47 +
48 +
  df[target_cols] <- lapply(df[target_cols], as.numeric)
49 +
50 +
  out_data <- df
46 51
47 52
  for(i in 1:nrow(numeric_variables)){
48 53

@@ -1,5 +1,8 @@
Loading
1 1
#' A function to check if a valid state number or fips is passed
2 2
#'
3 +
#' The function verifies if a valid FIPS code was passed and
4 +
#' converts it to a unified standard for internal use.
5 +
#'
3 6
#' @param fips the state abbreviation or fips code vector
4 7
#' @return States Abbreviations or FIPs as FIP character strings
5 8
#' @examples \donttest{
@@ -12,6 +15,8 @@
Loading
12 15
#'
13 16
#' }
14 17
#'
18 +
#' @return a vector with the State FIPS code
19 +
#'
15 20
#' @export
16 21
converted_fips <- function(fips){
17 22

@@ -1,9 +1,11 @@
Loading
1 -
#'@title get_qwi
2 -
#'@description The purpose of this function is to retrive firm information from the
3 -
#'    US Census' Quarterly Workforce Indicator API. These data can be retrieved with by
4 -
#'    specifying the states, the quarters, the years, and additional detail. This function can
5 -
#'    accept multiple states, years and quarters. This makes the data retrieval easier and stay
6 -
#'    inside of the US Census' limits on the API.
1 +
#' Retrieve the Quarterly Workforce Indcator Data
2 +
#'
3 +
#' The purpose of this function is to retrive firm information from the
4 +
#' US Census' Quarterly Workforce Indicator API. These data can be retrieved with by
5 +
#' specifying the states, the quarters, the years, and additional detail. This function can
6 +
#' accept multiple states, years and quarters. This makes the data retrieval easier and stay
7 +
#' inside of the US Census' limits on the API.
8 +
#'
7 9
#'@param years years to fetch (e.g. 2010, or c(2010, 2011))
8 10
#'@param variables the variables you wish to fetch. Default is all.
9 11
#'@param quarters The quarters to fetch (e.g. c(1,2,3,4)) Default is all
@@ -17,7 +19,7 @@
Loading
17 19
#'@param apikey your US Census API Key
18 20
#'@param processing the processing strategy (default = "sequential")
19 21
#'
20 -
#'@return the desired data from the US Census's Quaterly Workforce API
22 +
#'@return the desired data from the US Census's Quaterly Workforce API as a tibble
21 23
#'@import jsonlite
22 24
#'@import dplyr
23 25
#'@import httr

@@ -1,4 +1,10 @@
Loading
1 1
#' A helper function to help parse API calls from the census
2 +
#'
3 +
#' The function verifies that API call was sucessful.
4 +
#' If the call was not sucessful, this function passes the
5 +
#' message received from the US Census API for further troublshooting,
6 +
#'
7 +
#'
2 8
#' @param call a returned call from the US Census API
3 9
#' @import xml2
4 10
#' @import  httr
@@ -14,7 +20,7 @@
Loading
14 20
#'check_census_api_call(single_call)
15 21
#'
16 22
#'}
17 -
#'
23 +
#' @return a string vector with the message from the US Census API
18 24
#' @export
19 25
20 26
Files Coverage
R 79.26%
Project Totals (6 files) 79.26%
Notifications are pending CI completion. Waiting for GitHub's status webhook to queue notifications. Push notifications now.
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading