Package: dttr2 0.5.2.9001
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:
dttr2_0.5.2.9001.tar.gz
dttr2_0.5.2.9001.zip(r-4.5)dttr2_0.5.2.9001.zip(r-4.4)dttr2_0.5.2.9001.zip(r-4.3)
dttr2_0.5.2.9001.tgz(r-4.4-any)dttr2_0.5.2.9001.tgz(r-4.3-any)
dttr2_0.5.2.9001.tar.gz(r-4.5-noble)dttr2_0.5.2.9001.tar.gz(r-4.4-noble)
dttr2_0.5.2.9001.tgz(r-4.4-emscripten)dttr2_0.5.2.9001.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')) |
Bug tracker:https://github.com/poissonconsulting/dttr2/issues
Last updated 22 days agofrom:11c21a7ded. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 18 2024 |
R-4.5-win | OK | Nov 18 2024 |
R-4.5-linux | OK | Nov 18 2024 |
R-4.4-win | OK | Nov 18 2024 |
R-4.4-mac | OK | Nov 18 2024 |
R-4.3-win | OK | Nov 18 2024 |
R-4.3-mac | OK | Nov 18 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
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Check Time Zone | check_tz |
Check Time | chk_time |
dtt Object | dtt |
Add Time Units | dtt_add_days dtt_add_hours dtt_add_minutes dtt_add_months dtt_add_seconds dtt_add_units dtt_add_years |
Adjust Time Zone | dtt_adjust_tz dtt_adjust_tz.POSIXct |
Adjust Units | dtt_adjust_units |
Aggregate Date/Time | dtt_aggregate dtt_aggregate.Date dtt_aggregate.hms dtt_aggregate.POSIXct |
Complete | dtt_complete dtt_complete.Date dtt_complete.hms dtt_complete.POSIXct |
Completed | dtt_completed dtt_completed.Date dtt_completed.hms dtt_completed.POSIXct |
Floor Date | dtt_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 Date | dtt_date_add_time |
Create Dates from Integers | dtt_date_from_ints |
Floor Date/Time | dtt_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 Integers | dtt_date_time_from_ints |
Get and Set Day Values | dtt_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 Values | dtt_day_decimal dtt_day_decimal.Date dtt_day_decimal.POSIXct |
Days in the Month | dtt_days_in_month |
Days in the Year | dtt_days_in_year |
Dayte | dtt_dayte dtt_dayte.Date dtt_dayte.POSIXct |
Dayte Time | dtt_dayte_time dtt_dayte_time.Date dtt_dayte_time.POSIXct |
Dayte Time | dtt_daytt |
Decade | dtt_decade dtt_decade.Date |
Time Difference | dtt_diff |
Day of the Year | dtt_doy |
Day of the Year Decimal | dtt_doy_decimal |
Day of the Year to Date | dtt_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 28 | dtt_feb29_to_28 |
Floor Date/Time | dtt_floor dtt_floor.Date dtt_floor.hms dtt_floor.POSIXct |
Test Floored | dtt_floored dtt_floored.Date dtt_floored.hms dtt_floored.POSIXct |
Get Decimal Hour Values | dtt_hour_decimal dtt_hour_decimal.Date dtt_hour_decimal.hms dtt_hour_decimal.POSIXct |
Get and Set Hour Values | dtt_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 Date | dtt_is_date |
Is Date Time | dtt_is_date_time |
Is Date or DateTime Object | dtt_is_dtt |
Test for Leap Year | dtt_leap_year |
Get Decimal Minute Values | dtt_minute_decimal dtt_minute_decimal.Date dtt_minute_decimal.hms dtt_minute_decimal.POSIXct |
Get and Set Minute Values | dtt_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 Values | dtt_month_decimal dtt_month_decimal.Date dtt_month_decimal.POSIXct |
Get and Set Month Values | dtt_month dtt_month.Date dtt_month.POSIXct dtt_month<- dtt_month<-.Date dtt_month<-.POSIXct dtt_months dtt_months<- dtt_set_month |
Season | dtt_season |
Get and Set Second Values | dtt_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 |
Sequence | dtt_seq dtt_seq.Date dtt_seq.hms dtt_seq.POSIXct |
Floor Time | dtt_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 Zone | dtt_set_tz dtt_set_tz.POSIXct |
Study Year | dtt_study_year |
Subtract Time Units | dtt_subtract_days dtt_subtract_hours dtt_subtract_minutes dtt_subtract_months dtt_subtract_seconds dtt_subtract_units dtt_subtract_years |
Get System Date | dtt_sys_date |
Get System Date Time | dtt_sys_date_time |
Get System Time | dtt_sys_time |
Get, Set or Reset Default Time Zone | dtt_default_tz dtt_reset_default_tz dtt_reset_sys_tz dtt_set_default_tz dtt_set_sys_tz dtt_sys_tz |
Create Time from Vectors | dtt_time_from_ints |
Get, Set or Adjust Time Zone | dtt_tz dtt_tz.POSIXct |
Get Units | dtt_units dtt_units.Date dtt_units.hms dtt_units.POSIXct |
Units per Unit | dtt_units_per_unit |
Get Week Day | dtt_wday dtt_wday.default |
Wrap | dtt_wrap |
Get Decimal Year Values | dtt_year_decimal dtt_year_decimal.Date dtt_year_decimal.POSIXct |
Get and Set Year Values | dtt_set_year dtt_year dtt_year.Date dtt_year.POSIXct dtt_year<- dtt_year<-.Date dtt_year<-.POSIXct dtt_years dtt_years<- |
Is Date/Time | is.Date is.hms is.POSIXct is_date is_date_time is_time |
Missing Date | NA_Date_ |
Missing hms | NA_hms_ |
Missing POSIXct | NA_POSIXct_ |
Validate Time | vld_time |