Learn R Programming

lterpalettefinder (version 1.1.0)

palette_check: Check Hexadecimal Code Formatting

Description

Accepts the hexadecimal code vector and tests if it is formatted correctly

Usage

palette_check(palette)

Value

An error message or nothing

Arguments

palette

(character) Vector of hexadecimal codes returned by `palette_extract()`, `..._sort()`, or `..._subsample()`

Examples

Run this code
# Check for misformatted hexcodes
palette_check(palette = c("#8e847a", "#9fc7f2"))

Run the code above in your browser using DataLab