
Get non-shared cameras between two dataframes
Source:R/utils_server_functions.R
get_cameras_not_in.RdUsing two dataframes in input, determine which cameras are in one of the tables but not in the other one.
Value
A named list with two components
$not_in_records: cameras fromdfcamerasthat are not indfrecords. If all cameras fromdfcamerasare indfrecords, this is a character vector of length zero.$not_in_cameras: cameras fromdfrecordsthat are not indfcamerasIf all cameras fromdfrecordsare indfcameras, this is a character vector of length zero.
Examples
dfrecords <- data.frame(camID = letters[2:7])
dfcam <- data.frame(cameras = letters[1:5])
get_cameras_not_in(dfrecords = dfrecords,
dfcameras = dfcam,
cam_col_dfrec = "camID",
cam_col_dfcam = "cameras")
#> $not_in_records
#> [1] "a"
#>
#> $not_in_cameras
#> [1] "f" "g"
#>