Something like this might work:
mapply("/",co,oc,SIMPLIFY = FALSE)
although there are probably many ways to do this, which are basically equivalent.
Here is a minimal example using some sample data from the xts package:
data(sample_matrix) sample.xts <- as.xts(sample_matrix, descr='my new xts object') v1 <- list(a = sample.xts[,1],b = sample.xts[,2]) v2 <- list(a = sample.xts[,3],b = sample.xts[,4]) mapply("/",v1,v2,SIMPLIFY = FALSE)
Update: now we can use Map which by default is mapply(..., simplify = FALSE) .
Map("/",co,oc)
source share