Thank you Jeff for your tips, I found what I was looking for.
Stefano
Da: Jeff Newmiller [jdnew...@dcn.davis.ca.us]
Inviato: lunedì 12 gennaio 2015 9.13
A: Stefano Sofia; r-help@r-project.org
Oggetto: Re: [R] list of vectors which are part of an initial
library(gtools)
running(1:5, fun=I, align=center, width=3, allow.fewer=TRUE)[c(-1,-7)]
Clue found at http://stackoverflow.com/questions/1311920/lagging-variables-in-r
---
Jeff NewmillerThe .
Dear list users,
given for example the vector a - c(1:5), which is the easiest way to create a
list of 5 vectors with three elements each apart from the head and the tail,
like
1 2
1 2 3
2 3 4
3 4 5
4 5
? I tried to use the split command, with no success. Could somebody show me
hints for an
3 matches
Mail list logo