Skip to content

Commit

Permalink
Push up extra type docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elimillera committed Jun 15, 2023
1 parent 191c885 commit 3fca4a5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
12 changes: 11 additions & 1 deletion R/type.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@
#' 'xportr.character_types' option is used to explicitly collapse the class of a
#' column to character using `as.character`. Similarly, 'xportr.numeric_types'
#' will collapse a column to a numeric type. If no type is passed for a
#' variable, it is assumed to be numeric and coerced with `as.numeric`.
#' variable and it isn't identifed as a timing variable, it is assumed to be numeric and coerced with `as.numeric`.
#'
#' Certain care should be taken when using timing variables. R serializes dates
#' based on a reference date of 01/01/1970 where XPT uses 01/01/1960. This can
#' result in dates being 10 years off when outputting from R to XPT if you're
#' using a date class. For this reason, `xportr` will try to determine what
#' should happen with variables that appear to be used to denote time.
#'
#' For variables that end in DT, DTM, or, TM, if they are not explicitly noted
#' in 'xportr.numeric_types' or 'xportr.character_types', they are coerced to
#' numeric results.
#'
#' @inheritParams xportr_length
#'
Expand Down
13 changes: 12 additions & 1 deletion man/xportr_type.Rd

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

0 comments on commit 3fca4a5

Please sign in to comment.