I am trying to get this code to work,
setuplong <- setuplong %>%
mutate(
nr_blinks = as.numeric(gsub("/files/vids/|blinks_|blinks_|,mp4","",video))
)
but I keep getting this error:
Warning messages:
1: Problem with mutate()
input nr_blinks
.
i NAs introduced by coercion
i Input nr_blinks
is as.numeric(gsub("/files/vids/|blinks_|blinks_|,mp4", "", video))
.
2: In mask$eval_all_mutate(dots[[i]]) : NAs introduced by coercion
I am not sure if I need to get another package on R or anything else.