Learn R Programming

jjb (version 0.1.1)

int_to_hex: Convert 0-255 to a Hex number

Description

This is a helper function for rgb_to_hex. This function takes a single R, G, or B numeric value and converts it to hex.

Usage

int_to_hex(n)

Arguments

n

An int

Value

A string of length 2.

Examples

Run this code
# NOT RUN {
int_to_hex(22)
# }

Run the code above in your browser using DataLab