hrbrmiscpp
: R C/C++ mish-mash of stuff for hrbrmstr
A place for some C/C++-backed R functions until they find a better home.
The following functions are implemented:
sdbm_hash
: SDBM Hash Functiondjb2_hash
: DJB2 Hash Functionline_count
: Count lines (fast, like wc
because it is wc
)The following data sets are included:
devtools::install_github("hrbrmstr/hrbrmiscpp")
options(width=120)
library(hrbrmiscpp) # current verison packageVersion("hrbrmiscpp") setdiff(sdbm_hash(state.name), sdbm_hash(state.name)) setdiff(djb2_hash(state.name), djb2_hash(state.name)) line_count(system.file("extdata", "lines.csv", package = "hrbrmiscpp"))
library(hrbrmiscpp) library(testthat) date() test_dir("tests/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.