diff --git a/R/fix.R b/R/fix.R new file mode 100644 index 0000000..50ec46e --- /dev/null +++ b/R/fix.R @@ -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) \ No newline at end of file diff --git a/man/fix.Rd b/man/fix.Rd new file mode 100644 index 0000000..91b4678 --- /dev/null +++ b/man/fix.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/fix.R +\name{fix} +\alias{fix} +\title{Round toward zero} +\usage{ +fix(X) +} +\arguments{ +\item{X}{input element} +} +\description{ +Rounds each element of input to the nearest integer towards zero. Basically the same as trunc() +} +\author{ +Waldir Leoncio +}