powered by
Return the value (or the element with the value) closest to zero.
findAbsMin(x, element = FALSE)
A numeric vector.
Logical: whether or not to return the value (FALSE, default) or the index (TRUE).
The value or index of the element closest to zero (absolute minimum).
Other Utility functions: find_n_neighbors(), firstLetterCap(), getArrowPos(), getDec(), getRange(), getRatioCoords(), get_palette(), group_sort(), inch2coords(), isColor(), list2str(), move_n_point(), orderBoxplot(), se(), sortGroups()
find_n_neighbors()
firstLetterCap()
getArrowPos()
getDec()
getRange()
getRatioCoords()
get_palette()
group_sort()
inch2coords()
isColor()
list2str()
move_n_point()
orderBoxplot()
se()
sortGroups()
# NOT RUN { (test <- seq(-25,25, by=3)) min(test[test>0]) max(test[test<0]) min(abs(test)) findAbsMin(test) # }
Run the code above in your browser using DataLab