Overview

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

Installation

Install the development version of makeup from GitHub with:

# install.packages("devtools")
remotes::install_github("datasketch/makeup")

Example

This is a basic example which shows you how this packages work:

Let´s load makeup package

library(makeup)
library(dstools)

Making number values human readable

x <- c(1234.56, 432141, 0.12)

makeup(x, 
       sample = "1,432.1")

Making character values human readable

x <- c("hello", "WoRlD","Hello world")

makeup(x, sample = "down")

makeup(x, sample = "UPPER")

makeup(x, sample = "Title phrase")

makeup(x, sample = "Title Case")

Making date values human readable

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")



datasketch/makeup documentation built on Feb. 21, 2025, 6:53 a.m.