Can you tell me what is wrong with the output. Given the values in the list, the 'unlist' appears to have created the correct values. Now when I do it, it does print out the vector in this format:
> unlist(x) [1] 6978022 10249966 10955201 11045352 11814604 13847633 16022770 23625856 29676192 30164446 [11] 34558312 44009616 53582632 7428353 20225456 33046200 57970280 70011280 70677328 71362456 [21] 71824776 74014744 90487648 101058192 102176888 102409592 110591464 116407200 131185424 132395992 [31] 137564368 142716752 148377392 148838944 154876816 So what is the problem? On Sat, May 24, 2008 at 4:27 AM, mohamed nur anisah < [EMAIL PROTECTED]> wrote: > Dear R, > > Can anybody help me on how to combine all the elements in a list into a > single vector?? I've tried using unlist command but it gave me wrong output. > Below is the example of the vector output that i want and attach with is my > list of data. Any suggestion?? Many Thanks > > breakp.start > 6978022 > 10249966 > 10955201 > 11045352 > 11814604 > 13847633 > 16022770 > 23625856 > 29676192 > 30164446 > 34558312 > 44009616 > 53582632 > 7428353 > 20225456 > 33046200 > 57970280 > 70011280 > 70677328 > 71362456 > 71824776 > 74014744 > 90487648 > 101058192 > 102176888 > 102409592 > 110591464 > 116407200 > 131185424 > 132395992 > 137564368 > 142716752 > 148377392 > 148838944 > 154876816 > > > > [[19]] > breakp.start > 1 6978022 > 2 10249966 > 3 10955201 > 4 11045352 > 5 11814604 > 6 13847633 > 7 16022770 > 8 23625856 > 9 29676192 > 10 30164446 > 11 34558312 > 12 44009616 > 13 53582632 > > [[20]] > breakp.start > 1 7428353 > 2 20225456 > 3 33046200 > 4 57970280 > 5 70011280 > 6 70677328 > 7 71362456 > 8 71824776 > 9 74014744 > 10 90487648 > 11 101058192 > 12 102176888 > 13 102409592 > 14 110591464 > 15 116407200 > 16 131185424 > 17 132395992 > 18 137564368 > 19 142716752 > 20 148377392 > 21 148838944 > 22 154876816 > > ______________________________________________ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? [[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.