rmInfinite function

remove Infinite values

remove Infinite values

rmInfinite(x, infiniteValue = NULL, ...)

Arguments

  • x: vector input
  • infiniteValue: NULL to remove Infinite values, or a replacement value
  • ...: additional parameters are ignored

Returns

numeric vector with infinite values either removed, or replaced with the supplied value.

Details

This function removes any positive or negative infinite numerical values, optionally replacing them with a given value or NA.

Examples

rmInfinite(c(1, 5, 4, 10, Inf, 1, -Inf)) rmInfinite(c(1, 5, 4, 10, Inf, 1, -Inf), infiniteValue=1000)

See Also

Other jam practical functions: breakDensity(), call_fn_ellipsis(), checkLightMode(), check_pkg_installed(), colNum2excelName(), color_dither(), exp2signed(), getAxisLabel(), isFALSEV(), isTRUEV(), jargs(), kable_coloring(), lldf(), log2signed(), middle(), minorLogTicks(), newestFile(), printDebug(), reload_rmarkdown_cache(), renameColumn(), rmNA(), rmNAs(), rmNULL(), setPrompt()

  • Maintainer: James M. Ward
  • License: MIT + file LICENSE
  • Last published: 2025-03-23