Skip to content
Prev 361920 / 398506 Next

Generate list if sequence form two vector element

Hi Tanvir,
Not at all elegant, but:

make.seq<-function(x) return(seq(x[1],x[2]))
apply(matrix(c(a,b),ncol=2),1,make.seq)

Jim


On Wed, Jun 22, 2016 at 5:32 PM, Mohammad Tanvir Ahamed via R-help
<r-help at r-project.org> wrote: