Skip to content

Commit

Permalink
Adjust NAMESPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveViss committed Apr 2, 2024
1 parent bc7d75b commit f8e75a4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Imports:
cli (>= 3.6.2),
readxl (>= 1.4.3),
tidyr (>= 1.3.1),
purrr (>= 1.0.2),
janitor (>= 2.2.0)
purrr (>= 1.0.2)
Suggests:
devtools (>= 2.2.0),
testthat (>= 3.0.0),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export(dbs_integration)
export(detect_cens)
export(remove_cens)
export(uncensored)
4 changes: 2 additions & 2 deletions R/dbs_integration.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' @description This function is a quick integration procedure among all Excel files.
#'
#' @return a data.frame of contaminants
#' @return a data.frame of all contaminant measurements
#' @export
dbs_integration <- function(){
contaminants_mapping <- list(
Expand Down Expand Up @@ -95,7 +95,7 @@ dbs_integration <- function(){
readxl::read_excel(tmp_file, sheet = n) |>
dplyr::select("Year", "Location", "SampleID", "Species", s[1]:s[2]) |>
dplyr::mutate(source = f$path, conpound_family = n) |>
dplyr::mutate(across(everything(), as.character)) |>
dplyr::mutate(dplyr::across(everything(), as.character)) |>
tidyr::pivot_longer(cols = s[1]:s[2], names_to = "variable") |>
dplyr::filter(!is.na(value))
}) |> dplyr::bind_rows()
Expand Down
14 changes: 14 additions & 0 deletions man/dbs_integration.Rd

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

0 comments on commit f8e75a4

Please sign in to comment.