Skip to content

Commit

Permalink
add sampling details for commercial samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ecophilina committed Sep 27, 2024
1 parent 640773d commit 02bd336
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions R/get-dat.R
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,30 @@ get_commercial_samples <- function(species, unsorted_only = TRUE,
)
)

.scc <- get_table("species_category")
names(.scc) <- tolower(names(.scc))

.d <- left_join(.d,
select(.scc, -row_version),
by = "species_category_code"
)

.stc <- get_table("sample_type")
names(.stc) <- tolower(names(.stc))

.d <- left_join(.d,
select(.stc, -row_version),
by = "sample_type_code"
)

.ssc <- get_table("sample_source")
names(.ssc) <- tolower(names(.ssc))

.d <- left_join(.d,
select(.ssc, -row_version),
by = "sample_source_code"
)

add_version(as_tibble(.d))
}

Expand Down

0 comments on commit 02bd336

Please sign in to comment.