makeup helps to format number, character and date values in order to make them human readable.
The main function of this package is makeup()
. It takes a date, number o character value and returns it into a human readable format
Install the development version of makeup from GitHub with:
# install.packages("devtools") remotes::install_github("datasketch/makeup")
This is a basic example which shows you how this packages work:
Let´s load makeup
package
library(makeup) library(dstools)
x <- c(1234.56, 432141, 0.12) makeup(x, sample = "1,432.1")
x <- c("hello", "WoRlD","Hello world") makeup(x, sample = "down") makeup(x, sample = "UPPER") makeup(x, sample = "Title phrase") makeup(x, sample = "Title Case")
x <- as.Date(c("2020-03-05","2020-06-20")) makeup(x)
Learn about the many ways to work with formatting dates values in vignette("working-with-dates")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.