View source: R/class_partial_time_min_max.R
pmax.partial_time | R Documentation |
Get the elementwise maximum of parttime vectors
## S3 method for class 'partial_time'
pmax(..., na.rm = FALSE)
... |
numeric or character arguments (see Note). |
na.rm |
a logical indicating whether missing values should be removed. |
A partial_time
vector with length equal to the maximum length of
the vectors provided where each value is the maximum of the recycled values
of each vector argument.
pmax(
parttime(c("2019", "2018", "2019-02", "2018", "2010")),
parttime(c("2020", NA, "2019-03", "2018-01", "2010"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.