luomus / finbif
Showing 1 of 4 files from the diff.

@@ -132,6 +132,8 @@
Loading
132 132
133 133
  df <- compute_abundance(df, select_, dwc)
134 134
135 +
  df <- compute_occurrence_status(df, select_, dwc)
136 +
135 137
  df <- coordinates_uncertainty(df, select_, dwc)
136 138
137 139
  df <- structure(
@@ -524,6 +526,27 @@
Loading
524 526
525 527
}
526 528
529 +
#' @noRd
530 +
531 +
compute_occurrence_status <- function(df, select_, dwc) {
532 +
533 +
  type <- col_type_string(dwc)
534 +
535 +
  occurrence_status_ <- var_names[["computed_var_occurrence_status", type]]
536 +
537 +
  abundance <- var_names[["computed_var_abundance", type]]
538 +
539 +
  if (occurrence_status_ %in% select_) {
540 +
541 +
    occurrence_status <- ifelse(df[[abundance]] == 0L, "absent","present")
542 +
543 +
    df[[occurrence_status_]] <- occurrence_status
544 +
545 +
  }
546 +
547 +
  df
548 +
549 +
}
527 550
528 551
#' @noRd
529 552
Files Coverage
R 99.89%
Project Totals (19 files) 99.89%

No yaml found.

Create your codecov.yml to customize your Codecov experience

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