small package for hw2
To install the package \
devtools::install_github("Hung-Ching-Chang/biost2094_hw2")
After installation, you can run the following example to see the result
- example 1 \
try(sqrt_2(-1))
- eample 2 \
try(log_2(-1))
- eample 3 \
set.seed(2)
\
(y = lapply(runif(2,-10,10), log_3))
\
y[[1]]$invalid_input
- eample 4 \
set.seed(2)
\
(y = lapply(runif(2,-10,10), sqrt_3))
\
y[[1]]$invalid_input
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.