Learn R Programming

naniar (version 0.6.1)

new_shade: Create a new shade factor

Description

Create a new shade factor

Usage

new_shade(x, extra_levels = NULL)

Value

a new shade, which is built upon a factor

Arguments

x

a factor to convert into a shade object

extra_levels

the extra levels to give to shade objects, such as "broken_machine" and so on, which get converted into "NA_broken_machine".