epiverse-trace / datatagr

Tagging, validating, and safeguarding data to help harden data pipelines.
https://epiverse-trace.github.io/datatagr/
Other
1 stars 0 forks source link

Helper functions for type groups #24

Closed chartgerink closed 1 month ago

chartgerink commented 2 months ago
          Would it be helpful to provide wrappers/aliases for these types? So that users do not necessarily have to list all the potential classes for, e.g., dates.

_Originally posted by @Bisaloo in https://github.com/epiverse-trace/datatagr/pull/19#discussion_r1705272325_

Original code from linelist:

date_types <- c("integer", "numeric", "Date", "POSIXct", "POSIXlt")

#' @noRd
category_types <- c("character", "factor")

#' @noRd
numeric_types <- c("numeric", "integer")

#' @noRd
binary_types <- c("logical", "integer", "character", "factor")