The goal of decayr is to demonstrate the use of a niche gaussian decay function, for the purposes of demonstrating how to use GitHub when making an R package.
You can install decayr from github with:
# install.packages("devtools")
devtools::install_github("njtierney/decayr")
This is a basic example which shows you how to solve a common problem:
library(decayr)
gauss_decay(d_kj = 99,
d_0 = 100)
#> [1] 0.01541443
gauss_decay(d_kj = 1,
d_0 = 100)
#> [1] 0.9998729
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.