Skip to content

Commit

Permalink
first-last examples improve, #3858 (#3870)
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki authored and mattdowle committed Sep 13, 2019
1 parent 5b84950 commit 98cfa12
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 98cfa12

Please sign in to comment.