Skip to content

Commit

Permalink
Ending of period => End of period
Browse files Browse the repository at this point in the history
  • Loading branch information
shrektan committed Jan 15, 2022
1 parent 26c4c5c commit 81ab7c0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Authors@R: c(
Maintainer: Xianying Tan <[email protected]>
Description: Convert 'YMD' format number or string to Date efficiently, using Rust's
standard library. It also provides helper functions to handle Date, e.g., quick
finding the beginning or ending of the given period, adding months to Date, etc.
finding the beginning or end of the given period, adding months to Date, etc.
License: MIT + file LICENSE
URL: https://shrektan.github.io/ymd/, https://github.com/shrektan/ymd
BugReports: https://github.com/shrektan/ymd/issues
Expand Down
2 changes: 1 addition & 1 deletion R/beop.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Find the Beginning or Ending of Period
#' Find the Beginning or End of Period
#'
#' Each of `bop` and `eop` contains a list of functions, whose names all
#' consist of two letters, the first of which stands for **l**ast, **t**his, **n**ext
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ knitr::opts_chunk$set(
<!-- badges: end -->

Convert 'YMD' format number or string to Date efficiently, e.g., `211225` to `as.Date("2021-12-25")`, using Rust's standard library.
It also provides helper functions to handle Date, e.g., quick finding the beginning or ending of the given period, adding months to Date, etc.
It also provides helper functions to handle Date, e.g., quick finding the beginning or end of the given period, adding months to Date, etc.

It's similar to the `lubridate` package but is much lighter and focuses only on Date objects.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- badges: start -->
[![R-CMD-check](https://github.com/shrektan/ymd/workflows/R-CMD-check/badge.svg)](https://github.com/shrektan/ymd/actions) [![CRAN status](https://www.r-pkg.org/badges/version/ymd)](https://CRAN.R-project.org/package=ymd) [![Downloads from the RStudio CRAN mirror](https://cranlogs.r-pkg.org/badges/ymd)](https://cran.r-project.org/package=ymd) [![Rust Code Coverage](https://coveralls.io/repos/github/shrektan/ymd/badge.svg?branch=main)](https://coveralls.io/github/shrektan/ymd?branch=main) <!-- badges: end -->

Convert 'YMD' format number or string to Date efficiently, e.g., `211225` to `as.Date("2021-12-25")`, using Rust's standard library. It also provides helper functions to handle Date, e.g., quick finding the beginning or ending of the given period, adding months to Date, etc.
Convert 'YMD' format number or string to Date efficiently, e.g., `211225` to `as.Date("2021-12-25")`, using Rust's standard library. It also provides helper functions to handle Date, e.g., quick finding the beginning or end of the given period, adding months to Date, etc.

It's similar to the `lubridate` package but is much lighter and focuses only on Date objects.

Expand Down
2 changes: 1 addition & 1 deletion man/beop.Rd

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

2 changes: 1 addition & 1 deletion tests/testthat/test-beop.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test_that("period_begin returns right begining date", {

})

test_that("period_end returns right ending date", {
test_that("period_end returns right end date", {

dates <- seq.Date(from = as.Date("2016-03-07") - 1, to = as.Date("2016-03-13") + 1, by = "1 day")
out <- period_end(dates, unit = "week") == as.Date("2016-03-13")
Expand Down

0 comments on commit 81ab7c0

Please sign in to comment.