If the last position of your vector is 1440, what do you expect to get from 1440 + 1??? And you certainly need some parentheses in there if you expect to get a range of values from your vector.
Perhaps you need some subtraction? And no, we still can't tell exactly what you want. If this doesn't answer your question, make a reproducible example with a short vector, your code that doesn't work, and the _result you expect to get_ so we can help you. Sarah On Tue, Nov 24, 2009 at 1:44 PM, yonosoyelmejor <yonosoyelme...@hotmail.com> wrote: > > I use length(myVector),but when i want to use for example > exp(x.reconstruida[length(myVector)+1:length(myVector)+9]), I need that > function returns the number of last element,would then: > > if the last position of my vector is 1440 > > exp(x.reconstruida[1440+1:1440+9] > > This is what I need, I hope having explained, > > A gretting, > Ignacio. > -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org 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.