Skip to content

Find the min of a Series

Source code

Description

Find the min of a Series

Usage

<Series>$min()

Details

The Dtypes Int8, UInt8, Int16 and UInt16 are cast to Int64 before summing to prevent overflow issues.

Value

A numeric value

Examples

library(polars)

as_polars_series(c(1:2, NA, 3, 5))$min() # a NA is dropped always
#> [1] 1
as_polars_series(c(1:2, NA, 3, NaN, 4, Inf))$min() # NaN carries / poisons
#> [1] 1
as_polars_series(c(1:2, 3, Inf, 4, -Inf, 5))$min() # Inf-Inf is NaN
#> [1] -Inf