slu-openGIS / compstatr

Compare 106e3d7 ... +14 ... 848c413

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 3 of 48 files from the diff.
Other files ignored by Codecov
docs/index.html has changed.
CRAN-RELEASE was deleted.
index.Rmd has changed.
docs/authors.html has changed.
appveyor.yml has changed.
README.Rmd has changed.
README.md has changed.
DESCRIPTION has changed.
NEWS.md has changed.
cran-comments.md has changed.
.travis.yml has changed.

@@ -22,6 +22,7 @@
Loading
22 22
#' @importFrom utils read.csv
23 23
#'
24 24
#' @examples
25 +
#' \donttest{
25 26
#' # create index
26 27
#' i <- cs_create_index()
27 28
#'
@@ -36,6 +37,7 @@
Loading
36 37
#'
37 38
#' # preview year list object
38 39
#' yearList18
40 +
#' }
39 41
#'
40 42
#' @export
41 43
cs_get_data <- function(year, month, index){

@@ -111,6 +111,9 @@
Loading
111 111
    var <- rlang::quo(!! rlang::sym(var))
112 112
  }
113 113
114 +
  # ensure the crime variable is integer
115 +
  .data <- dplyr::mutate(.data, !!var := as.integer(!!var))
116 +
114 117
  # convert to lower case
115 118
  crime <- tolower(crime)
116 119

@@ -123,7 +123,6 @@
Loading
123 123
  crime <- tolower(crime)
124 124
125 125
  #Appends the column with the proper crime code
126 -
127 126
  if (crime == "violent"){
128 127
129 128
    cleanData <- dplyr::mutate(.data, !!newVarN := ifelse(!!var <= 50000, TRUE, FALSE))
@@ -369,6 +368,9 @@
Loading
369 368
370 369
  newVarN <- rlang::quo_name(rlang::enquo(newVar))
371 370
371 +
  # ensure the crime variable is integer
372 +
  .data <- dplyr::mutate(.data, !!var := as.integer(!!var))
373 +
372 374
  #Adds a new column with the numeric, string, or factor name
373 375
  if (output == "string" | output == "factor"){
374 376

Learn more Showing 3 files with coverage changes found.

Changes in R/categorize.R
New
Loading file...
Changes in R/filter.R
New
Loading file...
Changes in R/get.R
+1
Loading file...
Files Coverage
R 97.66%
Project Totals (14 files) 97.66%
Loading