Return vector for distance between adjacent two points
dstpp(x, y)
vector for distance between adjacent two points
l.<-TR@L[[1]]
plot(l.)
x<-l.[,1] ;y<-l.[,2]
dstpp(x,y)
#> [1] 0.8127384 101.1230838 111.8659988 62.7863457 99.5032188 61.5163007
#> [7] 64.1394309 32.9334612 32.0181812 48.1371742 90.4625710 70.5726577
#> [13] 60.1426444 44.9951847 42.7750656 131.9793134 77.6707554 74.4399199
#> [19] 69.6541024 52.7779601 131.3572393 111.4963395 106.2233903 68.2797036
#> [25] 130.9417221 74.8822813 135.2666344 52.0216092 132.7776833 140.8384494
#> [31] 97.2063712 103.1281495 117.1048640 112.2638637 55.2901127 76.4147035
#> [37] 87.9111033 62.7126590 41.1537875 54.9425611 65.8518780 52.4200541
#> [43] 120.8222549 22.4792345 41.4815202 28.2126787 32.0697154 25.5205046
#> [49] 36.6544134 58.2739694 76.9187268 70.4649381 82.0664625 78.6300812
#> [55] 57.1754415 66.4360855 67.7699109 80.7929051 64.3912512 70.1266594
#> [61] 55.5582670 65.8769501 87.1489085 92.7804203 61.0420134 76.5528857
#> [67] 102.1402383 92.8266851 95.9582208 67.5013401 71.5625310 76.4363110
#> [73] 93.4684539 90.2725233 86.1847706 49.6369646 88.6034011 85.3414061
#> [79] 108.9827395 63.6483694 93.5214416 108.9190804 110.5443789 77.2272600
#> [85] 52.0152600 71.5394515 88.8267714 86.9971867 113.1575934 60.4111275
#> [91] 56.9844993 36.2102110 52.9279333 76.9873966 95.5339377 71.8940539
#> [97] 77.6367303 80.2309106 48.3083961 13.1050135 40.6450485 36.5732297
#> [103] 70.2960022 52.3254615 30.5939621 55.4690263 61.3926929 44.8186747
#> [109] 37.8512805 51.2540981 72.2057613 48.9333338 23.5834233 43.5630835
#> [115] 25.0370932 20.8321208 27.0166775 23.1166587 26.4608464 19.0257190
#> [121] 10.5655997 27.9303095 51.9262907 23.6673006 68.0082897 44.0756080
#> [127] 46.9140900 25.5205046 32.3873973 29.4610677 35.2113711 74.5330336
#> [133] 53.7453058 73.8564177 55.9846424 54.5201519 82.1469119 61.4357151
#> [139] 31.2666720 49.1017795 41.6642415 48.5062563 75.1288660 47.6821943
#> [145] 56.6006827 70.3288827 53.4248034 80.4980395 74.1331515 61.1285212
#> [151] 31.6550927 42.4261920 72.1828875 65.3686289 57.1292111 61.3065579
#> [157] 89.4935372 64.8665076 45.0758542 20.1224584 22.9013483 29.3600003
#> [163] 38.8927401 23.2448877 17.8432647 24.8118277 21.2714006 22.1088758
#> [169] 23.4006578 25.7010461 20.7208458 11.3201365 6.7020129 22.1834422
#> [175] 44.2177516 47.3485538 56.2436139 36.8521097 18.9561549 16.1936987
#> [181] 28.3061758 45.5423696 28.8264472 31.2243911 22.5964673 17.2790562
#> [187] 23.0020773 34.6535506 35.0986343 63.4769012 56.2436139 51.8690155
#> [193] 64.4578956 92.4094683 93.0399166 83.1459625 70.3476646 45.8387361
#> [199] 30.7232330 43.2816604 47.2507983 41.6325215 67.8527086 70.6895580
#> [205] 48.3971921 39.6579716 9.4780775 9.2666439 7.3596596 17.5069217
#> [211] 12.8505230 23.0164311 33.9117487 40.3760080 63.7934962 44.2550819
#> [217] 35.1738323 15.7805260 8.7534609 16.4566991 15.7805260 82.5199716
#> [223] 85.8622676 37.4653908 66.1521161 67.8527086 68.4487907 48.3289020
#> [229] 65.0190750 48.6897483 71.3452891 46.4897753 49.7565879 42.1528497
#> [235] 31.1078225 17.4502343 39.6579716 16.7550321 19.2672156 39.6246456
#> [241] 25.2341870 27.0166775 19.0257190 24.3821531 19.6575203 25.3907605
#> [247] 52.3002079 44.4635525 50.5337730 51.6328834 54.5504324 52.7341376
#> [253] 46.0041545 38.5430011 42.2623988 21.9589834 59.2853556 59.3799851
#> [259] 71.5071277 90.3273858 45.1636929 49.8428040 73.0651404 75.2518553
#> [265] 88.0499984 31.6237769 47.5642976 77.2742885 69.7299267 107.6073058
#> [271] 66.1121631 73.5067890 96.3874894 76.2849304 90.5392079 96.6851354
#> [277] 65.6509565 84.3056994 112.8770515 82.4038224 68.2313160 121.0434688
#> [283] 106.1549655 118.7849967 71.7607080 51.3056227 53.1334552 52.2812597
#> [289] 72.7888835 75.6938349 98.4252758 91.8538271 97.5590855 96.9920840
#> [295] 94.8678494 56.9439142 50.3897832 56.1731037 39.0875650 35.9079578
#> [301] 22.8869222 30.8947527 39.9566551 27.6331069 55.2901127 50.4159937
#> [307] 98.3447094 104.0432183 85.4342358 70.0654072 102.7945459 132.8970251
#> [313] 68.1586702 48.2878815 42.2702128 61.0041277 63.7261570 53.9415916
#> [319] 51.5176170 47.4809002 49.9024048 83.5264227 67.8527086 84.7745021
#> [325] 60.4930779 96.5757631 105.8589865 102.0820185 109.9872655 103.4447149
#> [331] 67.6088964 123.0701776 45.2951316 78.4618883 77.6367303 63.0854675
#> [337] 87.9862090 138.7761295 69.7867409 69.7867409 55.9846424 96.0167140
#> [343] 69.7867409 89.7146912 67.3543956 88.1549626 60.1426444 125.9298805
#> [349] 94.5714683 43.9555517 53.5791304 53.1458856 41.5372161 24.6783580
#> [355] 32.9133982 38.3367954 59.4633567 44.5229362 126.4768297 120.4005546
#> [361] 109.2823469 109.2823469 102.6627312 102.5758338 110.1403028 97.7755080
#> [367] 110.8725373 78.1666800 34.9099306 36.8610707 85.3414061 106.4221944
#> [373] 64.4578956 87.9937160 101.0969521 38.6114916 58.8997103 49.5170523
#> [379] 41.1297045 33.6477640 23.4006578 25.2079969 53.4742365 61.1501290
#> [385] 95.9891922 63.9796040 85.8891891 75.3088892 144.8613647 118.6514616
#> [391] 96.4936524 33.8727697 10.4081304 30.1700068 82.9630404 83.4077153
#> [397] 86.5633208 81.7640721 55.1046251 48.8522736 54.5988464 43.0751372
#> [403] 38.7736717 41.5213106 84.4974413 60.3673751 41.1297045 35.4823396
#> [409] 63.2266628 68.0568358 73.7848341 65.6761053 99.5563119 88.5027006
#> [415] 62.6441580 54.8402751 65.7665614 81.1192765 104.8180543 104.6887874
#> [421] 98.7401946 96.5928607 35.4357687 82.7597628 83.8539708 43.7673043
#> [427] 21.1311994 34.5007228 39.0283734 59.1682514 131.2138458 51.0151198
#> [433] 71.0809347 94.9478876 67.7894018 49.6036847 32.8028322 71.2109157
#> [439] 94.1830254 55.9315232 94.5015965 111.1997273 119.1874754 102.1887295
#> [445] 98.3144799 50.8984544 72.2639371 50.8157646 111.4395124 111.3481322
#> [451] 112.9823363 67.0449526 69.2655499 107.5919585 105.7341160 126.0059148
#> [457] 44.7006141 33.9506830 53.4495257 25.4427375 43.1057957 53.5976198
#> [463] 61.6075035 78.3481540 86.8261829 103.8684811 39.4994225 43.2892905
#> [469] 53.4248034 100.5466179 132.8448263 82.5039607 86.0006312 97.8869139
#> [475] 104.1606039 64.5347074 103.6520352 59.9666597 63.7934962 82.9670212
#> [481] 64.7033724 21.8383287 75.6327246 158.0729252 69.8813286 64.9580910
#> [487] 73.4933085 70.5211602 62.6441580 70.2254923 90.5610922 83.0147766
#> [493] 70.9646792 54.0333550 72.9927807 67.0201285 25.4037647 51.4663046
#> [499] 50.1335121 39.3905739 57.5669010 55.5998636 120.4663712 85.1825880
#> [505] 96.4422978 42.0901222 77.6239670 88.9271050 83.2967691 42.7132519
#> [511] 34.9004686 67.4328058 27.1264771 47.9033303 45.7594116 110.4636820
#> [517] 84.9690731 23.6253991 33.4113599 32.5501491 34.9477528 42.2936464
#> [523] 42.4573191 48.6354524 47.8067091 36.5822590 48.5062563 30.4641428
#> [529] 46.7236252 58.9781611 34.9099306 40.7667526 59.3521686 78.8523842
#> [535] 44.3668844 40.8396011 74.7719363 55.3915680 35.7974149 20.3833763
#> [541] 28.3877332 13.9828808 30.8840606 48.1988842 46.3830902 37.2886663
#> [547] 41.8934934 63.4769012 71.9491592 62.9806743 51.4663046 41.6642415
#> [553] 20.5768937 22.4792345 26.2352169 28.8035236 15.3347182 31.4036916
#> [559] 52.2812597 38.6371443 44.9951847 69.9238513 44.2326875 47.6198148
#> [565] 36.2466765 33.6771978 40.0969267 23.6673006 61.9656431 43.4720108
#> [571] 37.0665758 75.9160351 65.0647755 63.3101855 49.9553236 40.4495601
#> [577] 41.7987831 51.9771489 49.3700973 57.7959327 55.7540938 32.0181812
#> [583] 38.5344312 40.1463173 33.0935276 40.7667526 25.0370932 43.2587621
#> [589] 46.1832852 52.8279985 17.9907322 27.0533269 36.0914437 43.9855965
#> [595] 44.4635525 37.5006358 27.3205867 25.2864859 25.0370932 34.1833574
#> [601] 27.9657616 37.4212879 57.2447171 42.5893553 60.3071637 40.3760080
#> [607] 68.6800047 46.2047342 55.7481698 56.3199004 36.7982979 55.8901734
#> [613] 50.8984544 82.8833831 84.6887492 47.7306553 59.5299699 73.1690320
#> [619] 45.8387361 38.7736717 41.4416915 39.2309442 54.7438314 40.9042463
#> [625] 60.9608009 49.5437246 42.5893553 39.1466671 86.7957469 48.8793086
#> [631] 32.7625338 28.2126787 41.1297045 36.5732297 62.8546918 57.6528945
#> [637] 98.2876015 74.1554238 78.9863019 71.8940539 59.3299060 68.9727208
#> [643] 62.1093842 59.8122483 32.8028322 33.0035858 57.1292111 33.9506830
#> [649] 21.1936255 23.6253991 24.7184746 19.1813159 32.8028322 30.5074773
#> [655] 23.7369719 60.8034824 38.5087102 89.2274287 26.6226119 17.8987074
#> [661] 28.8264472 54.7438314 74.7896024 72.0225674 68.9296114 74.8514011
#> [667] 75.3921689 46.3332197 58.8604457 63.4769012 52.3759322 78.7350193
#> [673] 64.9631752 59.2630679 68.5066674 87.1261671 67.6479654 92.4237633
#> [679] 71.9353869 85.6928531 101.2927754 85.8276419 112.1608491 69.2021844
#> [685] 54.2164161 81.3753727 74.9351892 41.1297045 69.3071013 68.2893770
#> [691] 46.5536691 25.3907605 23.9033546 40.6369219 61.4948215 63.0854675
#> [697] 29.9723126 36.3921730 25.4427375 35.7974149 35.6494910 41.3778860
#> [703] 33.6477640 36.9684332 31.2243911 43.3502828 32.8832807 35.2582384
#> [709] 34.1446885 39.8573426 38.0948114 33.3618982 30.8947527 24.8118277
#> [715] 27.0655323 22.4792345 33.8727697 37.6500588 45.5786151 34.2894723
#> [721] 35.6865295 41.0734560 62.3323226 39.0960136 34.1736943 37.1377892
#> [727] 49.4369492 41.8382718 85.1631997 62.2209533 31.6133314 24.1234131
#> [733] 36.9684332 55.2662138 56.6006827 44.0756080 37.1021996 37.0130757
#> [739] 56.0377112 66.3266274 58.0866385 127.5144910 72.7344144 75.3571150
#> [745] 50.1335121 24.7184746 26.3231915 20.3833763 25.4557152 28.0718492
#> [751] 29.3712472 24.3550468 32.0181812 40.8719365 43.9931045 31.8734422
#> [757] 34.7202013 36.6724299 24.5037606 12.1910766 16.0297076 15.1832070
#> [763] 22.9877144 34.7487267 44.7891887 46.5536691 40.0969267 63.6691221
#> [769] 37.8512805 35.2113711 26.0203260 25.7010461 34.2605645 27.5013202
#> [775] 21.1936255 26.0583767 68.4101791 69.8198612 66.8078906 43.0828039
#> [781] 39.9566551 62.1997175 52.1230901 59.7735832 69.7678080 62.5333440
#> [787] 97.2063712 43.1976405 47.2507983 55.4154128 94.6273286 39.8987529
#> [793] 31.7072171 45.5423696 36.8968929 55.6473646 48.0616433 59.3354724
#> [799] 63.3988078 57.4692861 37.2886663 32.5501491 25.2079969 27.6450563
#> [805] 31.7904383 37.3948012 30.0713222 67.8527086 47.9791104 50.4487377
#> [811] 40.6450485 45.5206085 40.6694184 53.6961223 53.4495257 33.3618982
#> [817] 50.8075294 43.9179668 65.0241544 72.5571074 68.6607666 59.9996961
#> [823] 62.5016468 51.0410092 32.2033184 45.5206085 52.0216092 77.3170169
#> [829] 69.2021844 51.2605415 36.7982979 72.0775745 100.0031632 89.5378117
#> [835] 51.4342084 30.2465390 35.1832207 38.0948114 39.8573426 30.3446538
#> [841] 34.7487267 32.2033184 28.6310114 47.4809002 31.2666720 58.1661859
#> [847] 45.5786151 37.4212879 43.1976405 58.8772766 47.2507983 47.1458352
#> [853] 24.5037606 41.4416915 56.5539824 98.2876015 83.6765436 84.9962775
#> [859] 110.8010220 93.5602801 114.7199810 84.0310233 87.4213441 70.3664415
#> [865] 69.7678080 56.1025049 60.2797750 83.2214000 100.1120902 66.0071716
#> [871] 89.5378117 79.0531757 101.5532858 56.8277968 44.7301584 31.7904383
#> [877] 63.2579967 77.1459614 71.7100637 73.2592528 92.0154880 99.3138437
#> [883] 89.0458724 54.8944503 12.4059138 18.3362149 9.8203559 25.9695050
#> [889] 44.7670615 42.7750656 49.1017795 60.1426444 77.0731478 78.0271229
#> [895] 92.6664394 71.4563036 41.4416915 51.1508931 51.3313656 40.7667526
#> [901] 33.5986503 29.0433192 65.7916660 79.9835383 67.2415206 59.2630679
#> [907] 69.5829420 74.2755785 51.6584632 36.3921730 30.6371130 47.3415780
#> [913] 31.3721248 39.3905739 53.4742365 38.9521378 60.4111275 46.5252827
#> [919] 39.8573426 34.9855342 27.3205867 27.0533269 29.1794605 29.5394367
#> [925] 18.5510998 16.7550321 23.2448877 24.7585262 22.6694299 24.8650149
#> [931] 39.6829478 36.3921730 48.2468262 24.7718623 22.5379271 28.8264472
#> [937] 25.8675634 23.0164311 46.6387246 23.0020773 25.7010461 25.3125948
#> [943] 25.5075599 21.8080607 27.3205867 19.6575203 24.5710603 24.0136359
#> [949] 40.7343338 33.8239827 30.0823031 23.2448877 43.5630835 34.2894723
#> [955] 30.4316014 29.8065659 31.3721248 60.9553828 54.9425611 70.8715374
#> [961] 56.7405528 58.2002444 73.3178368 37.3594564 50.0015816 62.0774705
#> [967] 65.2472573 74.1376065 49.0142600 58.5228113 38.7140002 65.2472573
#> [973] 79.3825393 82.0020461 75.3045035 64.2526151 71.2480095 60.9120214
#> [979] 68.5789445 65.1256596 54.0333550 74.1554238 81.1192765 96.9035098
#> [985] 67.1628870 67.3396835 99.6093768 137.0422578 77.7854801 84.5755784
#> [991] 88.4653750 88.9493859 48.4517549 28.1775373 29.3149696 30.5399378
#> [997] 24.4362756 63.2475538 99.5927971 93.0931482 109.4182608 53.4680599
#> [1003] 36.2466765 26.8080514 17.8987074