Added proportion2str

This commit is contained in:
Waldir Leoncio 2019-12-17 16:38:55 +01:00
parent be1d759fff
commit 11efa94ee8
6 changed files with 56 additions and 22 deletions

21
man/proportion2str.Rd Normal file
View file

@ -0,0 +1,21 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/proportion2str.R
\name{proportion2str}
\alias{proportion2str}
\title{Convert proportion to string}
\usage{
proportion2str(prob)
}
\arguments{
\item{prob}{belongs to [0.00, 0.01, ... ,1]}
}
\value{
a 4-mark presentation of proportion
}
\description{
Convert proportion to string
}
\note{
The `round` function in R, being ISO-compliant, rounds 8.5 to 8. The
Matlab equivalent rounds it to 9.
}