Hi there I have this data frame (test) and I want to divide every element in the list (AO) by a value in another column (DP):
df <- structure(list(DP = c("572", "594", "625", "594", "537", "513"
), AO2 = list(list(c(2, 2)), list(c(2, 2, 2)), list(c(4, 4)),
list(c(3, 2, 2, 2, 3)), list(c(2, 2)), list(c(2, 2)))), row.names = c(NA,
-6L), class = c("data.table",
"data.frame"))
df
I would like to create a new column in df where each value of the list is divided by the value in df$DP of the same row.

I have tried using mapply but it didn't work. Any idea?
test$AO2_DP <- mapply(FUN = `/`, list(as.numeric(unlist(test$AO2))), as.numeric(test$DP), SIMPLIFY = FALSE)