Skip to content

Instantly share code, notes, and snippets.

@Jeet1994
Created November 8, 2016 07:07
Show Gist options
  • Save Jeet1994/f43e9d0517498668f58a1b1fdb743549 to your computer and use it in GitHub Desktop.
Save Jeet1994/f43e9d0517498668f58a1b1fdb743549 to your computer and use it in GitHub Desktop.
Add documentation for BenfScore
#' Benford Score function
#'
#' Facilitates finding the Benford Score of a number using Benford Law.
#' @param i First digit of a number
#' @keywords Benford law
#' @export
#' @examples
#' BenfScore()
BenfScore <- function(i){
P <- (log10(1+(1/i)))*100
return(P)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment