Skip to content

All anchored series from a vector?

2 messages · Mark Leeds, Johannes Graumann

#
i'm sorry. i tested it afterwards and of course
it had some problems. below is the working version.


myvector<-c("A","B","C","D","E")

result<- lapply(1:length(myvector), function(.length) {
myvector[1:.length]
})


print(result)
#
Nothing to be sorry about. You suggested a viable solution untested ... my
job to figure it out ;0)

Joh
markleeds at verizon.net wrote: