search for: tp931873p931908

Displaying 1 result from an estimated 1 matches for "tp931873p931908".

2009 Dec 01
2
apply on two lists?
x=list(a=c(1,2),b=c(3,4,5)) y=list(a=c(1,2),b=c(3,4,5)) lapply(seq(along=x),function(i){cbind(x[[i]],y[[i]])}) I need to apply some function on two lists. I have to use the index to do as shown above. But I feel more natural to refer to the lists without using the index (using the syntax of something like, lapply(x,y, function(i,j){....})). I'm wondering if there is such a thing in R? Or