Aggregate function: returns the last value in a group.
Usagelast(x, ...)
# S4 method for class 'characterOrColumn'
last(x, na.rm = FALSE)
Arguments
column to compute on.
further arguments to be passed to or from other methods.
a logical value indicating whether NA values should be stripped before the computation proceeds.
The function by default returns the last values it sees. It will return the last non-missing value it sees when na.rm is set to true. If all values are missing, then NA is returned. Note: the function is non-deterministic because its results depends on the order of the rows which may be non-deterministic after a shuffle.
Examplesif (FALSE) { # \dontrun{
last(df$c)
last(df$c, TRUE)
} # }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4