Translated fix from base MATLAB
This commit is contained in:
parent
1dee767e6e
commit
107d07bcf2
2 changed files with 22 additions and 0 deletions
5
R/fix.R
Normal file
5
R/fix.R
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#' @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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue