Henrique Dallazuanna wrote:
> Hi, I don't know if is the more elegant way, but:
>
> X<-c(1,2,3,4,5)
> X <- c(X[1], 0, X[2:5])
>   
append(X, 0, 1)

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to