Skip to content

Commit 8fa0ffb

Browse files
replace keyword details with note (#7061)
1 parent 06a4708 commit 8fa0ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

man/last.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ of \code{xts::first} is deployed. }
1818
\item{\dots}{ Not applicable for \code{data.table} first/last. Any arguments here
1919
are passed through to \code{xts}'s first/last. }
2020
}
21-
\details{
22-
Note: For zero-length vectors, \code{first(x)} and \code{last(x)} mimic \code{head(x, 1)} and \code{tail(x, 1)} by returning an empty vector instead of \code{NA}. However, unlike \code{head()}/\code{tail()} and base R subsetting (e.g., \code{x[1]}), they do not preserve attributes like names.
21+
\note{
22+
For zero-length vectors, \code{first(x)} and \code{last(x)} mimic \code{head(x, 1)} and \code{tail(x, 1)} by returning an empty vector instead of \code{NA}. However, unlike \code{head()}/\code{tail()} and base R subsetting (e.g., \code{x[1]}), they do not preserve attributes like names.
2323
}
2424
\value{
2525
If no other arguments are supplied it depends on the type of \code{x}. The first/last item

0 commit comments

Comments
 (0)