diff --git a/R/pascalprops.R b/R/pascalprops.R index 7f9cc82..575e8a5 100644 --- a/R/pascalprops.R +++ b/R/pascalprops.R @@ -1,5 +1,6 @@ -#' Accessory function to calculate the probabilities of Pascals triangle +#' Accessory function to calculate the probabilities proportional to Pascals triangle #' @param n number of elements in the row +#' @noRd pascalprops <- function(n){ pascalvals <- choose(n-1, 0:(n-1)) p <- pascalvals / n diff --git a/man/pascalprops.Rd b/man/pascalprops.Rd deleted file mode 100644 index 0e1d020..0000000 --- a/man/pascalprops.Rd +++ /dev/null @@ -1,14 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/pascalprops.R -\name{pascalprops} -\alias{pascalprops} -\title{Accessory function to calculate the probabilities of Pascals triangle} -\usage{ -pascalprops(n) -} -\arguments{ -\item{n}{number of elements in the row} -} -\description{ -Accessory function to calculate the probabilities of Pascals triangle -}