interting , when I modified
bj2=bjerrdata$tyerr[bjyearnum[2]:bjyearnum[3]] the length of bj2 is correct . It seems that can not put a fomula in the dimension description . 2009/7/29 Jie TANG <totang...@gmail.com> > hi ,everyone, > > I have a script shown as below: > > > bj2=bjerrdata$tyerr[bjyearnum[2]+1:bjyearnum[3]] > > length(bj2) > [1] 448 > > while > > > b=bjyearnum[3] > > a=bjyearnum[2]+1 > > bj1=bjerrdata$tyerr[a:b] > > length(bj1) > [1] 169 > > > it is different with bj2 and bj1 . and the array bjyearnum is > [1] 0 279 448 633 1021 1365 1813 2237 2839 3314 3798 4157 12 > > why bj1 is 169 while bj2 is 448 ? > > how to let bj2 is also array with the length 169 ? > > thank you . > -- > > > TANG Jie > Email: totang...@gmail.com > Tel: 0086-2154896104 > Shanghai Typhoon Institute,China > -- TANG Jie Email: totang...@gmail.com Tel: 0086-2154896104 Shanghai Typhoon Institute,China [[alternative HTML version deleted]] ______________________________________________ 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.