Learn R Programming

mapchina (version 0.1.0)

get_mex: Get the mex number of a vector

Description

Get the mex number of a vector

Usage

get_mex(v, colors, idx)

Arguments

v

An logical vector - the intersection vector

colors

An integer vector - the color assignment vector

idx

An integer - the index

Value

An integer

Examples

Run this code
# NOT RUN {
get_mex(c(TRUE,TRUE,FALSE,FALSE,TRUE), 1:5, 4)

# }

Run the code above in your browser using DataLab