Skip to content

Commit 551f579

Browse files
authored
Merge pull request #1 from nationalparkservice/bugfix
Bug fix
2 parents b2f050e + 284a87a commit 551f579

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: imdccal
22
Type: Package
33
Title: Wrangle CCAL Data Into Machine Readable Format
4-
Version: 0.1.0
4+
Version: 0.1.1
55
Authors@R:
66
person("Sarah", "Wright", , "sarah_wright@nps.gov", role = c("aut", "cre"),
77
comment = c(ORCID = "0009-0004-5060-2189"))

R/read_write.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ getCCALData <- function(files) {
7575
dplyr::select(sheet, address, row, col, is_blank, character) %>%
7676
dplyr::filter(row > quest_results_row, col == quest_results_col, character != "", !is.na(character)) %>%
7777
dplyr::select(character) %>%
78-
dplyr::mutate(lab_number = stringr::str_extract(character, "#.*is "),
78+
dplyr::mutate(lab_number = stringr::str_extract(character, "#[^(is)]* is "),
7979
lab_number = trimws(stringr::str_replace_all(lab_number, "(#|,|&|(is))", "")),
8080
lab_number = stringr::str_replace_all(lab_number, "[ \t\r\n]+", " "),
8181
param_description = stringr::str_extract(character, "Concentration of .* for sample"),

man/imdccal-package.Rd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/machineReadableCCAL.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)