Skip to contents

Get a unique vector of all cameras present either in one list or in the other.

Usage

get_cameras(cam1, cam2, NA.last = TRUE)

Arguments

cam1

Character vector of camera names.

cam2

Character vector of camera names.

NA.last

Value of the NA.last argument in unique and sort functions

Value

A vector of unique cameras that are present in both vectors. NAs are kept and placed in the last position. Alphabetical order is used.

Examples

cam1 <- c("C1", "C2", "C3", NA)
cam2 <- c("C2", "C3", "C4")
get_cameras(cam1, cam2)
#> [1] "C1" "C2" "C3" "C4" NA