Skip to content

Commit b318090

Browse files
also updated docs for last
1 parent 565e0b3 commit b318090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

man/last.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ of \code{xts::first} is deployed. }
1919
are passed through to \code{xts}'s first/last. }
2020
}
2121
\details{
22-
Note: \code{first(x)} is not an exact replacement for \code{x[1]}. It differs in its handling of zero-length vectors (returning a zero-length vector instead of \code{NA}) and does not preserve attributes like names.
22+
Note: \code{first(x)} and \code{last(x)} are not exact replacements for \code{x[1]} and \code{x[length(x)]}. They differ in handling of zero-length vectors (returning a zero-length vector instead of \code{NA}) and 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)