Skip to content

Commit

Permalink
first-last examples improve, #3858
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Sep 13, 2019
1 parent 35b0de3 commit ac14ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions man/last.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ For other types, or if any argument is supplied in addition to \code{x} (such as
\examples{
first(1:5) # [1] 1
x = data.table(x=1:5, y=6:10)
first(x) # same as x[1]
first(x) # same as head(x, 1)

last(1:5) # [1] 5
x = data.table(x=1:5, y=6:10)
last(x) # same as x[5]
last(x) # same as tail(x, 1)
}
\keyword{ data }

0 comments on commit ac14ad6

Please sign in to comment.