[R] Generate list if sequence form two vector element

Mohammad Tanvir Ahamed mashranga at yahoo.com
Wed Jun 22 09:32:36 CEST 2016


Hi,
I want to do the follow thing 

Input : 
a <- c(1,3,6,9) 


b<-c(10,7,20,2) 


Expected outcome : 

d<-list(1:10,3:7,6:20,2:9) 



Thanks !!


 
Tanvir Ahamed 
Göteborg, Sweden  |  mashranga at yahoo.com



More information about the R-help mailing list