util_col2rgb function

Return hex code colors from color names or STATAReporter syntax

Return hex code colors from color names or STATAReporter syntax

util_col2rgb(colors)

Arguments

  • colors: the colors, e.g.,"255 0 0" or "red" or "#ff0000"

Returns

character vector with colors using HTML hexadecimal encoding, e..g, "#ff0000" for "red"

  • Maintainer: Stephan Struckmann
  • License: BSD_2_clause + file LICENSE
  • Last published: 2025-03-05

Downloads (last 30 days):