Skip to content

Commit 995392e

Browse files
committed
modified statement
1 parent 1be35e3 commit 995392e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
14. `fcoalesce()` and `setcoalesce()` gain `nan` argument to control whether `NaN` values should be treated as missing (`nan=NA`, the default) or non-missing (`nan=NaN`), [#4567](https://github.com/Rdatatable/data.table/issues/4567). This provides full compatibility with `nafill()` behavior. Thanks to @ethanbsmith for the feature request and @Mukulyadav2004 for the implementation.
6969

70-
15. New function `isoyear()` has been added as a complement to `isoweek()`, returning the year that corresponds to the ISO 8601 week. For example, `isoyear("2019-12-30")` is 2020. Closes [#7154](https://github.com/Rdatatable/data.table/issues/7154). Thanks to @ben-schwen and @MichaelChirico for the suggestion and @venom1204 for the fix.
70+
15. New function `isoyear()` has been implemented as a complement to `isoweek()`, returning the ISO 8601 year corresponding to a given date. For example, `isoyear("2019-12-30")` returns 2020. [#7154](https://github.com/Rdatatable/data.table/issues/7154). Thanks to @ben-schwen and @MichaelChirico for the suggestion and @venom1204 for the implementation.
7171

7272
### BUG FIXES
7373

man/IDateTime.Rd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,15 @@ round(seqtimes, "hours")
288288
trunc(seqtimes, "hours")
289289

290290
# Examples for isoyear() and isoweek()
291-
d1 <- as.IDate("2019-12-30")
292-
year(d1) # Returns 2019
293-
isoweek(d1) # Returns 1
294-
isoyear(d1) # Correctly returns 2020
295-
296-
d2 <- as.IDate("2016-01-01")
297-
year(d2) # Returns 2016
298-
isoweek(d2) # Returns 53
299-
isoyear(d2) # Correctly returns 2015
291+
d1 = as.IDate("2019-12-30")
292+
year(d1)
293+
isoweek(d1)
294+
isoyear(d1)
295+
296+
d2 = as.IDate("2016-01-01")
297+
year(d2)
298+
isoweek(d2)
299+
isoyear(d2)
300300

301301
}
302302
\keyword{utilities}

0 commit comments

Comments
 (0)