R/ld8.R

Defines functions ld8from

Documented in ld8from

#' Extract lunaid_date from text
#' @param s (vector of) string to extract luna_yyyymmdd
#' @export
#' @examples 
#' ld8from("/path/to/12345_20191011/file.txt")
ld8from <- function(s) stringr::str_extract(s,'\\d{5}_\\d{8}')
LabNeuroCogDevel/LNCDR documentation built on Oct. 13, 2023, 4:31 a.m.