Created
November 8, 2016 07:07
-
-
Save Jeet1994/f43e9d0517498668f58a1b1fdb743549 to your computer and use it in GitHub Desktop.
Add documentation for BenfScore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' 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