Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
colebrookson authored Oct 2, 2023
1 parent 25d65f0 commit c658c3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/02_1c_Format GenBank.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ print("read in")
gb %<>%
dplyr::rename(NCBIAccession = 'Accession') %>%
dplyr::rename(Release_Date = Release_Date) %>% # not sure what this is doing?

# really don't know why we want or need this here?????
dplyr::mutate_at("Release_Date", ~.x %>% # Modifying date column to make sense
stringr::str_split("T") %>% # Splitting at this midpoint
purrr::map_chr(1) %>% # Taking the first component
lubridate::ymd() # Coding as YMD (shouldn't throw errors)
)
print("renamed")
print("renamed")

gb[, c(paste0("Collection", c("Year", "Month", "Day")))] <-
data.table::tstrsplit(gb$Collection_Date, "-",
Expand Down

0 comments on commit c658c3a

Please sign in to comment.