Skip to content
Back to formatted view

Raw Message

Message-ID: <fk9bal$53p$1@ger.gmane.org>
Date: 2007-12-18T22:40:37Z
From: Johannes Graumann
Subject: All anchored series from a vector?

Hi all,

What may be a smart, efficient way to get the following result:

myvector <- c("A","B","C","D","E")
myseries <- miracle(myvector)
myseries
[1]
[[1]] "A"
[2]
[[1]] "A" "B"
[3]
[[1]] "A" "B"
[4]
[[1]] "A" "B" "C"
[5]
[[1]] "A" "B" "C" "D"
[6]
[[1]] "A" "B" "C" "D" "E"

Thanks for any hints,

Joh