In R, I have two vectors:
a <- c(1, 2, 3, 4) b <- c(NA, 6, 7, 8)
How do I find the element-wise mean of the two vectors, removing NA,
I'm not exactly sure what you are asking for, but does
apply(rbind(a,b),2,mean,na.rm = TRUE)
do what you want?