Package: dttr2 0.5.2.9000

Ayla Pearson

dttr2: Manipulate Date, POSIXct and hms Vectors

Manipulates date ('Date'), date time ('POSIXct') and time ('hms') vectors. Date/times are considered discrete and are floored whenever encountered. Times are wrapped and time zones are maintained unless explicitly altered by the user.

Authors:Joe Thorley [aut], Ayla Pearson [aut, cre], Poisson Consulting [cph, fnd]

dttr2_0.5.2.9000.tar.gz
dttr2_0.5.2.9000.zip(r-4.5)dttr2_0.5.2.9000.zip(r-4.4)dttr2_0.5.2.9000.zip(r-4.3)
dttr2_0.5.2.9000.tgz(r-4.4-any)dttr2_0.5.2.9000.tgz(r-4.3-any)
dttr2_0.5.2.9000.tar.gz(r-4.5-noble)dttr2_0.5.2.9000.tar.gz(r-4.4-noble)
dttr2_0.5.2.9000.tgz(r-4.4-emscripten)dttr2_0.5.2.9000.tgz(r-4.3-emscripten)
dttr2.pdf |dttr2.html
dttr2/json (API)
NEWS

# Install 'dttr2' in R:
install.packages('dttr2', repos = c('https://poissonconsulting.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/poissonconsulting/dttr2/issues

On CRAN:

114 exports 10 stars 5.91 score 8 dependencies 3 dependents 5 scripts 603 downloads

Last updated 7 days agofrom:eefa6659d4. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 27 2024
R-4.5-winOKSep 27 2024
R-4.5-linuxOKSep 27 2024
R-4.4-winOKSep 27 2024
R-4.4-macOKSep 27 2024
R-4.3-winOKSep 27 2024
R-4.3-macOKSep 27 2024

Exports:check_tzchk_timedtt_add_daysdtt_add_hoursdtt_add_minutesdtt_add_monthsdtt_add_secondsdtt_add_unitsdtt_add_yearsdtt_adjust_tzdtt_adjust_unitsdtt_aggregatedtt_completedtt_completeddtt_datedtt_date_add_timedtt_date_from_intsdtt_date_timedtt_date_time_from_intsdtt_date<-dtt_daydtt_day_decimaldtt_day<-dtt_daysdtt_days_in_monthdtt_days_in_yeardtt_days<-dtt_daytedtt_dayte_timedtt_dayttdtt_decadedtt_default_tzdtt_diffdtt_doydtt_doy_decimaldtt_doy_to_datedtt_excel_to_datedtt_excel_to_date_timedtt_feb29_to_28dtt_floordtt_flooreddtt_hourdtt_hour_decimaldtt_hour<-dtt_hoursdtt_hours<-dtt_is_datedtt_is_date_timedtt_is_dttdtt_leap_yeardtt_minutedtt_minute_decimaldtt_minute<-dtt_minutesdtt_minutes<-dtt_monthdtt_month_decimaldtt_month<-dtt_monthsdtt_months<-dtt_reset_default_tzdtt_reset_sys_tzdtt_seasondtt_seconddtt_second<-dtt_secondsdtt_seconds<-dtt_seqdtt_set_datedtt_set_daydtt_set_default_tzdtt_set_hourdtt_set_minutedtt_set_monthdtt_set_seconddtt_set_sys_tzdtt_set_timedtt_set_tzdtt_set_yeardtt_study_yeardtt_subtract_daysdtt_subtract_hoursdtt_subtract_minutesdtt_subtract_monthsdtt_subtract_secondsdtt_subtract_unitsdtt_subtract_yearsdtt_sys_datedtt_sys_date_timedtt_sys_timedtt_sys_tzdtt_timedtt_time_from_intsdtt_time<-dtt_tzdtt_unitsdtt_units_per_unitdtt_wdaydtt_wrapdtt_yeardtt_year_decimaldtt_year<-dtt_yearsdtt_years<-is_dateis_date_timeis_timeis.Dateis.hmsis.POSIXctNA_Date_NA_hms_NA_POSIXct_vld_time

Dependencies:chkcligluehmslifecyclepkgconfigrlangvctrs

Readme and manuals

Help Manual

Help pageTopics
Check Time Zonecheck_tz
Check Timechk_time
dtt Objectdtt
Add Time Unitsdtt_add_days dtt_add_hours dtt_add_minutes dtt_add_months dtt_add_seconds dtt_add_units dtt_add_years
Adjust Time Zonedtt_adjust_tz dtt_adjust_tz.POSIXct
Adjust Unitsdtt_adjust_units
Aggregate Date/Timedtt_aggregate dtt_aggregate.Date dtt_aggregate.hms dtt_aggregate.POSIXct
Completedtt_complete dtt_complete.Date dtt_complete.hms dtt_complete.POSIXct
Completeddtt_completed dtt_completed.Date dtt_completed.hms dtt_completed.POSIXct
Floor Datedtt_date dtt_date.character dtt_date.Date dtt_date.double dtt_date.hms dtt_date.integer dtt_date.POSIXct dtt_date<- dtt_date<-.Date dtt_date<-.POSIXct dtt_set_date
Add Time to Datedtt_date_add_time
Create Dates from Integersdtt_date_from_ints
Floor Date/Timedtt_date_time dtt_date_time.character dtt_date_time.Date dtt_date_time.double dtt_date_time.hms dtt_date_time.integer dtt_date_time.POSIXct
Create Date Times from Integersdtt_date_time_from_ints
Get and Set Day Valuesdtt_day dtt_day.Date dtt_day.POSIXct dtt_day<- dtt_day<-.Date dtt_day<-.POSIXct dtt_days dtt_days<- dtt_set_day
Get Decimal Day Valuesdtt_day_decimal dtt_day_decimal.Date dtt_day_decimal.POSIXct
Days in the Monthdtt_days_in_month
Days in the Yeardtt_days_in_year
Daytedtt_dayte dtt_dayte.Date dtt_dayte.POSIXct
Dayte Timedtt_dayte_time dtt_dayte_time.Date dtt_dayte_time.POSIXct
Dayte Timedtt_daytt
Decadedtt_decade dtt_decade.Date
Time Differencedtt_diff
Day of the Yeardtt_doy
Day of the Year Decimaldtt_doy_decimal
Day of the Year to Datedtt_doy_to_date
Convert Excel dates to dates.dtt_excel_to_date
Convert Excel date times to date times.dtt_excel_to_date_time
Convert Feb 29 to Feb 28dtt_feb29_to_28
Floor Date/Timedtt_floor dtt_floor.Date dtt_floor.hms dtt_floor.POSIXct
Test Flooreddtt_floored dtt_floored.Date dtt_floored.hms dtt_floored.POSIXct
Get Decimal Hour Valuesdtt_hour_decimal dtt_hour_decimal.Date dtt_hour_decimal.hms dtt_hour_decimal.POSIXct
Get and Set Hour Valuesdtt_hour dtt_hour.Date dtt_hour.hms dtt_hour.POSIXct dtt_hour<- dtt_hour<-.hms dtt_hour<-.POSIXct dtt_hours dtt_hours<- dtt_set_hour
Is Datedtt_is_date
Is Date Timedtt_is_date_time
Is Date or DateTime Objectdtt_is_dtt
Test for Leap Yeardtt_leap_year
Get Decimal Minute Valuesdtt_minute_decimal dtt_minute_decimal.Date dtt_minute_decimal.hms dtt_minute_decimal.POSIXct
Get and Set Minute Valuesdtt_minute dtt_minute.Date dtt_minute.hms dtt_minute.POSIXct dtt_minute<- dtt_minute<-.hms dtt_minute<-.POSIXct dtt_minutes dtt_minutes<- dtt_set_minute
Get Decimal Month Valuesdtt_month_decimal dtt_month_decimal.Date dtt_month_decimal.POSIXct
Get and Set Month Valuesdtt_month dtt_month.Date dtt_month.POSIXct dtt_month<- dtt_month<-.Date dtt_month<-.POSIXct dtt_months dtt_months<- dtt_set_month
Seasondtt_season
Get and Set Second Valuesdtt_second dtt_second.Date dtt_second.hms dtt_second.POSIXct dtt_second<- dtt_second<-.hms dtt_second<-.POSIXct dtt_seconds dtt_seconds<- dtt_set_second
Sequencedtt_seq dtt_seq.Date dtt_seq.hms dtt_seq.POSIXct
Floor Timedtt_set_time dtt_time dtt_time.character dtt_time.Date dtt_time.double dtt_time.hms dtt_time.integer dtt_time.POSIXct dtt_time.POSIXlt dtt_time<- dtt_time<-.Date dtt_time<-.POSIXct
Set Time Zonedtt_set_tz dtt_set_tz.POSIXct
Study Yeardtt_study_year
Subtract Time Unitsdtt_subtract_days dtt_subtract_hours dtt_subtract_minutes dtt_subtract_months dtt_subtract_seconds dtt_subtract_units dtt_subtract_years
Get System Datedtt_sys_date
Get System Date Timedtt_sys_date_time
Get System Timedtt_sys_time
Get, Set or Reset Default Time Zonedtt_default_tz dtt_reset_default_tz dtt_reset_sys_tz dtt_set_default_tz dtt_set_sys_tz dtt_sys_tz
Create Time from Vectorsdtt_time_from_ints
Get, Set or Adjust Time Zonedtt_tz dtt_tz.POSIXct
Get Unitsdtt_units dtt_units.Date dtt_units.hms dtt_units.POSIXct
Units per Unitdtt_units_per_unit
Get Week Daydtt_wday dtt_wday.default
Wrapdtt_wrap
Get Decimal Year Valuesdtt_year_decimal dtt_year_decimal.Date dtt_year_decimal.POSIXct
Get and Set Year Valuesdtt_set_year dtt_year dtt_year.Date dtt_year.POSIXct dtt_year<- dtt_year<-.Date dtt_year<-.POSIXct dtt_years dtt_years<-
Is Date/Timeis.Date is.hms is.POSIXct is_date is_date_time is_time
Missing DateNA_Date_
Missing hmsNA_hms_
Missing POSIXctNA_POSIXct_
Validate Timevld_time