Skip to content

Commit

Permalink
Add examples for c14_is_lab_id() and c14_fix_lab_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Roe committed Nov 1, 2024
1 parent c195f86 commit 56b600a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/lab_id.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ c14_parse_lab_id <- function(x, fix = TRUE) {
#' @export
#'
#' @examples
#' # Valid formats
#' c14_is_lab_id(c("OxA-1234", "OxA 1234", "OxA", "Gif/LSN_5678"))
#'
#' # Invalid formats
#' c14_is_lab_id(c("1234", "1234-OxA"))
#'
#' # Fix
#' c14_fix_lab_id(c("OxA", "Gif/LSN_5678", "Ki(KIEV)-1234"))
c14_fix_lab_id <- function(x) {
y <- x

Expand Down
10 changes: 10 additions & 0 deletions man/c14_fix_lab_id.Rd

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

0 comments on commit 56b600a

Please sign in to comment.