I am running an analysis that produces a list of which elements in the input vector produced an error. Some of these are up to 50 elements. E.g.:
# Tags not found in the detection data
# A69-1602-19332, A69-1602-19328, A69-1602-54640, A69-1602-19333, A69-1602-19330,
# A69-1602-24389, A69-1602-54698, A69-1602-54697, A69-1602-19360, A69-1602-24329,
# A69-1602-19340, A69-1602-54648
Technically, the tags here are in the data, but refining the analysis by timeframe always has some come up that were not detected in that particular window. So far, I have been searching for each element, finding the row number, and dropping just that element with
bad_tags <- c(1, 2, 5, 6, 8, 11, 53, 82, 99, 102)
new_vector <- data_vector[-bad_tags]
The error output allows me to set up the following vector with relative ease, but I can't for the life of me figure out how to apply it to meet my needs. Is it possible?
bad_tags_names <- c("A69-1602-19332", "A69-1602-19328", ...)
new_vector <- data_vector ????
Relatively new at R but familiar with tidyr/dplyr and the like. I just can't figure this one out; really appreciate any input!
edits requested below
bbmm.data <- dynBBMM(
input = rsp.data,
base.raster = base.raster,
start.time = '2020-06-16 00:00:00',
stop.time = '2020-08-31 23:59:59',
UTM = 10,
verbose = TRUE
)
rsp.data is produced by package RSP and is a large list of 6 elements produced in package actel. One of the elements is the list of all tags from the larger analysis done earlier.
When I run this code, I get the error output in the original question.