complete_color: Auto complete (or cut) a vector to a fixed length

Description Usage Arguments Value Examples

View source: R/cartogram.R

Description

From https://github.com/chxy/cartogram/blob/master/R/dorling.R Not exported here, but needed for aec_carto_f

Usage

1
complete_color(cl, targetlen)

Arguments

cl

a vector

targetlen

the target length

Value

a vector of completed cl with length n

Examples

1
2
3
4
5
6
## Not run: 
complete_color('red',5)
complete_color(c('red','blue'),5)
complete_color(c('red','blue','green','yellow','pink','grey'),5)

## End(Not run)

Emaasit/ebolaCases documentation built on May 6, 2019, 3:46 p.m.