Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0743f7

Browse files
committed
Added return values to lunar_phase and as_time_of_day
1 parentbb52199 commitd0743f7

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

‎R/solarlunar.R‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ lunar_longitude <- function(tee) {
308308
#' means the last quarter.
309309
#'
310310
#' @param date Date vector
311+
#' @return A numeric vector of angles in degrees representing the lunar phase at the given dates.
311312
#' @examples
312313
#' april2025 <- gregorian_date(2025, 4, 1:30)
313314
#' lunar_phase(april2025)

‎R/time.R‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EVENING <- FALSE
99
#' @param hour A numeric vector of hours
1010
#' @param minute A numeric vector of minutes
1111
#' @param second A numeric vector of seconds
12-
#' @return Atime vector object
12+
#' @return Atime_of_day vector object, stored as a vctrs record containing hours, minutes and seconds.
1313
#' @export
1414
time_of_day<-function(
1515
hour= integer(),
@@ -66,6 +66,8 @@ format.time_of_day <- function(x, ...) {
6666
#'
6767
#' @param x Vector of times
6868
#' @param ... Additional arguments not currently used
69+
#' @return A vector containing "time_of_day" objects
70+
#' @seealso [time_of_day]
6971
#' @rdname time
7072
#' @examples
7173
#' as_time_of_day(Sys.time())

‎man/lunar_phase.Rd‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎man/time.Rd‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎man/time_of_day.Rd‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp