ourMELONS/R/fix.R
2020-07-14 14:09:57 +02:00

5 lines
No EOL
219 B
R

#' @title Round toward zero
#' @description Rounds each element of input to the nearest integer towards zero. Basically the same as trunc()
#' @param X input element
#' @author Waldir Leoncio
fix <- function(X) trunc(X)