[R] All anchored series from a vector?

markleeds at verizon.net markleeds at verizon.net
Tue Dec 18 21:50:52 CET 2007

>From: Johannes Graumann <johannes_graumann at web.de>
>Date: 2007/12/18 Tue PM 04:40:37 CST
>To: r-help at stat.math.ethz.ch
>Subject: [R] All anchored series from a vector?

lapply(1:length(myvector) function(.length) {

but test it because i didn't.

>Hi all,
>What may be a smart, efficient way to get the following result:
>myvector <- c("A","B","C","D","E")
>myseries <- miracle(myvector)
>[[1]] "A"
>[[1]] "A" "B"
>[[1]] "A" "B"
>[[1]] "A" "B" "C"
>[[1]] "A" "B" "C" "D"
>[[1]] "A" "B" "C" "D" "E"
>Thanks for any hints,
>R-help at r-project.org mailing list
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list