knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Functions for CHI numbers
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("graemegowans/chi")
Use pad_chi()
to add a leading zero to a 9 character string. Other strings are left alone.
library(chi) library(tidyverse) df <- tibble(chi_no = c("123456789", "1234567890", "123")) df %>% mutate(padded_chi = pad_chi(chi_no))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.