parse_palette: Parse the information from a 'palette' definition table.

Description Usage Arguments Value Examples

View source: R/IO.R

Description

This function checks the content of a palette definition, and appends some missing columns. It is mainly used internally, but can be invoked by the uses to see what it does.

Usage

1

Arguments

palette

data.frame containing the palette definition

verbose

logical: print some information?

Value

modified palette data.frame

Examples

1
2
3
4
p0 <- data.frame(substance="any", color="red")
str(p0)
p1 <- parse_palette(p0)
str(p1) # Should be the same!

PantaRhei documentation built on Dec. 18, 2020, 5:08 p.m.