[R] Reading a Vector into R

arun smartpink111 at yahoo.com
Thu Jun 20 19:44:11 CEST 2013


HI,
You could save it in a .txt file. (e.g. "vec1.txt")


 source("vec1.txt")
 length(drg_470)
[1] 4495
 head(drg_470)
#[1]  7558  9485 10481 10609 10650 10891
str(drg_470)
# num [1:4495] 7558 9485 10481 10609 10650 ...
A.K.


Hi there, 
I am having trouble successfully reading this vector into R: 
drg_470 <- 
c(7558,9485,10481,10609,10650,10891,10909,11226,11265,11284,11342,11588,12044,12283,12355,12406,12465,12480,12553,12558,12574,12592,12606,12649,12660,12666,12667,12724,12730,12744,12748,12818,12851,12851,12856,12866,12872,12885,12895,12901,12921,12931,12932,12933,12939,12948,12979,12999,13007,13016,13065,13070,13091,13095,13115,13117,13119,13127,13135,13153,13154,13167,13172,13180,13220,13221,13226,13258,13259,13275,13320,13331,13338,13340,13343,13344,13369,13383,13390,13401,13420,13422,13424,13427,13438,13444,13445,13451,13464,13469,13473,13478,13490,13500,13506,13513,13514,13515,13520,13521,13522,13524,13524,13534,13535,13536,13540,13542,13554,13559,13561,13567,13580,13593,13594,13610,13613,13626,13629,13632,13642,13651,13660,13664,13665,13671,13672,13672,13673,13676,13681,13692,13697,13718,13720,13724,13730,13733,13754,13757,13763,13774,13779,13783,13784,13788,13798,13803,13809,13811,13814,13816,13820,13824,13836,13841,13850,13852,13857,13860,13862,1
3862,13866,13870,13870,13871,13871,13875,13876,13884,13890,13891,13891,13894,13896,13900,13903,13905,13906,13908,13908,13908,13935,13936,13941,13943,13943,13943,13947,13947,13948,13948,13950,13951,13952,13958,13959,13971,13972,13981,13994,13995,13997,14000,14003,14005,14015,14026,14027,14038,14042,14042,14045,14054,14059,14070,14070,14078,14091,14094,14094,14099,14122,14125,14128,14133,14134,14138,14148,14150,14156,14163,14164,14164,14167,14177,14179,14197,14200,14201,14204,14207,14215,14218,14225,14226,14229,14245,14247,14248,14252,14254,14271,14273,14283,14285,14285,14286,14289,14291,14293,14295,14299,14305,14316,14317,14343,14354,14354,14359,14364,14366,14367,14372,14375,14381,14387,14392,14395,14396,14398,14403,14404,14409,14410,14413,14413,14417,14424,14438,14439,14444,14444,14445,14452,14462,14464,14464,14466,14475,14480,14494,14494,14496,14507,14509,14512,14513,14517,14523,14523,14525,14539,14541,14541,14545,14546,14548,14572,14576,14579,14579,14
579,14583,14584,14595,14599,14600,14602,14603,14608,14612,14627,14628,14629,14641,14646,14654,14660,14661,14664,14664,14667,14672,14675,14676,14682,14682,14684,14690,14693,14705,14711,14713,14717,14723,14733,14734,14740,14743,14746,14747,14748,14752,14752,14754,14756,14756,14760,14760,14761,14761,14763,14769,14775,14778,14779,14780,14782,14787,14788,14788,14790,14792,14795,14795,14803,14813,14817,14818,14827,14831,14834,14834,14835,14836,14839,14840,14845,14849,14849,14855,14859,14862,14866,14868,14868,14869,14879,14882,14884,14884,14889,14904,14907,14909,14919,14921,14925,14928,14928,14931,14936,14941,14947,14949,14950,14959,14962,14962,14968,14975,14977,14981,14989,14995,14996,15001,15004,15020,15022,15026,15035,15037,15044,15048,15049,15049,15051,15069,15076,15078,15080,15087,15087,15091,15092,15094,15099,15111,15115,15119,15122,15128,15132,15132,15132,15135,15144,15145,15145,15150,15154,15156,15163,15165,15166,15170,15175,15176,15179,15182,15184,151
85,15194,15203,15206,15224,15224,15226,15227,15235,15237,15237,15239,15244,15244,15250,15252,15260,15261,15262,15275,15277,15277,15285,15286,15289,15289,15295,15298,15299,15308,15310,15311,15312,15316,15321,15326,15326,15331,15341,15343,15345,15346,15350,15354,15355,15356,15358,15363,15364,15365,15372,15376,15394,15395,15396,15402,15403,15404,15404,15405,15406,15411,15411,15416,15417,15418,15419,15420,15429,15429,15437,15440,15440,15442,15447,15451,15451,15451,15455,15456,15461,15464,15466,15469,15470,15472,15475,15478,15483,15489,15499,15507,15508,15509,15510,15514,15515,15516,15518,15525,15527,15533,15534,15538,15538,15539,15544,15546,15546,15548,15551,15553,15553,15556,15558,15558,15560,15561,15562,15562,15566,15572,15576,15581,15582,15585,15591,15591,15592,15592,15597,15599,15608,15610,15611,15615,15617,15619,15619,15622,15623,15628,15633,15633,15634,15637,15637,15637,15638,15645,15647,15649,15652,15653,15660,15661,15662,15664,15665,15665,15667,1567
4,15674,15675,15676,15677,15680,15689,15690,15691,15693,15696,15697,15699,15705,15707,15707,15707,15708,15713,15715,15717,15718,15723,15727,15728,15728,15728,15731,15731,15732,15733,15735,15738,15738,15738,15738,15740,15744,15745,15748,15749,15752,15753,15759,15759,15761,15775,15777,15779,15783,15785,15791,15794,15794,15796,15799,15802,15803,15805,15806,15806,15808,15809,15810,15812,15812,15813,15820,15821,15832,15832,15832,15833,15834,15835,15837,15838,15842,15843,15847,15847,15848,15849,15851,15851,15853,15855,15858,15859,15860,15863,15864,15865,15869,15869,15871,15874,15875,15877,15879,15881,15883,15888,15890,15891,15892,15894,15897,15897,15901,15906,15907,15909,15909,15912,15912,15912,15914,15917,15920,15921,15922,15925,15929,15933,15934,15934,15935,15936,15939,15939,15940,15940,15942,15945,15947,15947,15948,15950,15952,15956,15961,15963,15964,15965,15965,15971,15972,15977,15977,15978,15979,15984,15985,15985,15988,15990,15993,15994,15996,15996,15996
,15997,15999,16000,16000,16001,16002,16002,16003,16010,16010,16015,16016,16017,16019,16020,16022,16023,16024,16024,16024,16024,16024,16026,16026,16028,16031,16032,16036,16038,16043,16046,16047,16053,16055,16056,16056,16061,16061,16061,16065,16065,16067,16069,16069,16070,16072,16077,16080,16080,16082,16085,16085,16086,16087,16089,16090,16095,16096,16096,16097,16098,16098,16098,16099,16100,16100,16100,16101,16103,16105,16112,16113,16113,16115,16116,16117,16119,16122,16125,16126,16129,16130,16130,16131,16132,16136,16137,16144,16145,16145,16146,16147,16150,16151,16152,16154,16155,16160,16163,16163,16163,16163,16166,16169,16171,16173,16175,16176,16178,16179,16180,16181,16181,16183,16187,16188,16190,16194,16196,16197,16198,16199,16201,16203,16204,16206,16207,16207,16207,16208,16210,16211,16217,16218,16219,16220,16220,16222,16224,16225,16225,16225,16226,16228,16231,16237,16240,16240,16241,16241,16243,16244,16245,16245,16249,16250,16251,16252,16255,16257,16257,
16259,16260,16264,16266,16268,16269,16272,16273,16276,16278,16279,16281,16283,16284,16288,16294,16297,16297,16298,16300,16301,16305,16305,16307,16308,16309,16309,16309,16310,16313,16315,16317,16322,16324,16324,16326,16328,16329,16331,16333,16333,16334,16336,16343,16343,16345,16345,16347,16348,16350,16351,16353,16357,16360,16361,16362,16365,16365,16366,16368,16369,16369,16374,16374,16377,16377,16377,16378,16379,16382,16384,16384,16384,16385,16388,16390,16392,16395,16395,16395,16396,16397,16399,16401,16401,16402,16402,16403,16404,16406,16407,16411,16412,16416,16424,16424,16426,16431,16433,16437,16439,16439,16442,16445,16449,16451,16453,16455,16457,16460,16460,16461,16462,16463,16463,16464,16465,16466,16468,16475,16475,16483,16483,16485,16485,16488,16492,16494,16495,16497,16498,16500,16501,16504,16507,16514,16515,16517,16517,16522,16523,16524,16524,16524,16525,16526,16526,16528,16528,16528,16529,16529,16531,16532,16533,16539,16539,16540,16542,16542,16543,1
6544,16546,16546,16547,16547,16551,16551,16556,16558,16562,16562,16567,16569,16571,16582,16583,16584,16585,16587,16588,16590,16592,16593,16594,16597,16597,16600,16604,16604,16605,16605,16605,16614,16615,16615,16616,16616,16617,16617,16618,16619,16622,16626,16627,16628,16631,16631,16634,16636,16638,16639,16640,16642,16642,16643,16643,16644,16649,16649,16650,16653,16655,16659,16660,16664,16666,16667,16668,16671,16671,16674,16674,16678,16679,16679,16681,16681,16685,16686,16691,16695,16695,16703,16708,16708,16714,16715,16716,16717,16719,16720,16720,16721,16724,16725,16731,16733,16733,16733,16735,16736,16737,16740,16742,16742,16744,16745,16745,16746,16748,16749,16749,16750,16751,16752,16752,16753,16757,16762,16763,16766,16767,16768,16769,16779,16781,16782,16782,16787,16789,16795,16802,16803,16804,16805,16811,16812,16812,16814,16814,16816,16817,16817,16819,16820,16821,16823,16828,16829,16830,16830,16830,16831,16836,16836,16842,16844,16844,16845,16845,16846,16
848,16848,16849,16849,16851,16855,16856,16862,16865,16866,16866,16867,16868,16870,16871,16872,16875,16876,16877,16877,16878,16879,16882,16882,16883,16884,16887,16887,16888,16889,16889,16891,16891,16891,16892,16894,16902,16906,16908,16909,16911,16913,16916,16917,16920,16920,16922,16923,16923,16930,16930,16931,16938,16939,16939,16941,16943,16945,16945,16947,16947,16949,16951,16955,16956,16961,16962,16963,16966,16969,16971,16971,16972,16974,16975,16977,16979,16979,16983,16983,16983,16985,16987,16988,16996,16998,16998,17001,17001,17002,17003,17008,17010,17012,17013,17013,17014,17018,17022,17024,17026,17026,17027,17029,17032,17032,17034,17038,17040,17040,17042,17043,17043,17046,17047,17048,17049,17049,17049,17050,17051,17056,17056,17056,17056,17060,17064,17069,17069,17074,17075,17076,17079,17083,17083,17086,17087,17087,17088,17093,17093,17095,17098,17099,17101,17102,17105,17105,17109,17109,17112,17117,17118,17119,17119,17119,17126,17126,17129,17130,17137,171
37,17137,17138,17139,17140,17140,17141,17144,17144,17144,17147,17149,17150,17152,17155,17156,17157,17158,17160,17161,17161,17161,17165,17165,17165,17168,17172,17172,17173,17175,17179,17180,17181,17183,17185,17185,17186,17186,17187,17188,17189,17190,17191,17196,17197,17199,17199,17202,17202,17202,17206,17210,17212,17215,17217,17220,17221,17227,17227,17230,17231,17232,17234,17235,17235,17238,17239,17240,17241,17243,17245,17246,17246,17247,17249,17252,17254,17254,17258,17259,17260,17262,17264,17272,17273,17280,17282,17283,17283,17283,17285,17287,17287,17288,17289,17289,17290,17296,17298,17299,17299,17301,17302,17303,17303,17309,17309,17312,17313,17318,17327,17330,17334,17334,17338,17341,17342,17342,17342,17343,17347,17347,17349,17350,17350,17352,17355,17357,17357,17358,17359,17360,17362,17362,17365,17365,17368,17370,17371,17372,17374,17375,17377,17377,17379,17381,17381,17382,17382,17386,17391,17394,17395,17396,17397,17397,17399,17403,17404,17408,17408,1741
4,17417,17417,17418,17422,17426,17431,17433,17434,17439,17440,17442,17446,17447,17448,17448,17449,17449,17452,17453,17454,17455,17456,17457,17460,17463,17463,17463,17464,17465,17465,17466,17466,17468,17470,17473,17478,17479,17483,17486,17491,17493,17496,17505,17506,17506,17507,17508,17512,17513,17516,17516,17517,17519,17520,17521,17522,17522,17524,17525,17525,17530,17530,17535,17535,17537,17540,17543,17544,17547,17550,17556,17567,17567,17568,17573,17576,17579,17580,17580,17582,17582,17582,17582,17583,17585,17591,17592,17593,17594,17598,17598,17601,17602,17605,17606,17606,17609,17612,17622,17624,17625,17626,17627,17627,17628,17635,17635,17636,17639,17640,17642,17643,17645,17649,17651,17653,17655,17656,17660,17663,17666,17668,17672,17675,17676,17680,17680,17686,17687,17687,17688,17689,17693,17694,17696,17697,17699,17700,17701,17704,17704,17711,17712,17717,17719,17720,17724,17724,17725,17727,17731,17732,17737,17738,17738,17738,17748,17752,17753,17754,17756
,17757,17759,17759,17761,17761,17762,17766,17766,17767,17771,17771,17772,17773,17773,17775,17781,17784,17785,17788,17789,17792,17793,17794,17799,17800,17800,17801,17801,17801,17804,17805,17806,17806,17812,17812,17812,17813,17815,17818,17819,17822,17822,17825,17832,17833,17834,17836,17837,17838,17838,17840,17841,17854,17855,17856,17860,17861,17866,17868,17869,17873,17880,17884,17888,17889,17889,17892,17895,17898,17898,17902,17906,17908,17909,17910,17912,17913,17915,17916,17917,17918,17920,17923,17925,17928,17936,17936,17937,17946,17946,17946,17952,17952,17958,17958,17962,17963,17963,17964,17966,17969,17970,17972,17974,17975,17975,17977,17983,17985,17987,17988,17988,17988,17990,18003,18005,18007,18009,18011,18013,18014,18016,18019,18021,18022,18024,18026,18026,18028,18029,18029,18031,18035,18035,18036,18037,18041,18041,18042,18045,18052,18053,18053,18055,18059,18061,18062,18063,18066,18066,18070,18070,18075,18076,18081,18083,18084,18084,18086,18093,18093,
18100,18100,18101,18103,18107,18112,18113,18119,18120,18120,18121,18124,18124,18125,18126,18132,18133,18134,18135,18140,18147,18150,18150,18153,18153,18159,18159,18160,18174,18176,18177,18179,18182,18185,18187,18189,18192,18192,18202,18211,18213,18215,18217,18218,18219,18220,18221,18221,18225,18226,18229,18231,18234,18237,18237,18239,18241,18241,18247,18249,18249,18256,18260,18260,18262,18262,18262,18264,18265,18265,18270,18271,18271,18277,18280,18280,18300,18300,18307,18312,18313,18317,18321,18321,18322,18323,18323,18325,18326,18327,18336,18337,18339,18339,18343,18344,18344,18347,18349,18360,18368,18371,18372,18375,18375,18377,18378,18379,18384,18385,18390,18392,18393,18395,18397,18405,18406,18407,18407,18411,18414,18421,18421,18423,18426,18427,18428,18428,18429,18430,18435,18436,18436,18439,18444,18448,18451,18453,18454,18457,18463,18464,18468,18469,18471,18474,18477,18478,18481,18484,18488,18490,18495,18499,18501,18512,18516,18519,18520,18531,18533,1
8534,18534,18542,18544,18545,18546,18547,18548,18555,18556,18557,18559,18561,18563,18564,18565,18565,18570,18572,18573,18575,18577,18585,18591,18593,18594,18594,18599,18599,18600,18602,18604,18606,18606,18607,18607,18612,18614,18615,18616,18617,18618,18619,18624,18626,18628,18629,18629,18632,18633,18634,18641,18641,18643,18645,18647,18648,18650,18651,18655,18659,18660,18661,18661,18677,18677,18682,18684,18687,18699,18703,18713,18716,18717,18721,18721,18723,18725,18727,18743,18745,18745,18746,18749,18749,18751,18756,18760,18763,18766,18770,18770,18770,18777,18779,18791,18796,18805,18805,18814,18816,18822,18829,18831,18834,18838,18840,18841,18841,18842,18843,18853,18862,18866,18868,18872,18873,18881,18884,18890,18891,18891,18897,18900,18901,18904,18908,18913,18917,18918,18919,18923,18924,18925,18928,18930,18938,18940,18944,18947,18948,18954,18969,18973,18973,18974,18977,18978,18978,18982,18985,18986,18988,18990,18992,18994,18995,18998,18999,19000,19002,19
004,19013,19014,19016,19020,19021,19027,19034,19038,19046,19050,19051,19055,19057,19058,19060,19065,19066,19066,19067,19070,19071,19073,19075,19083,19088,19088,19095,19097,19103,19105,19106,19110,19113,19113,19118,19118,19122,19127,19132,19133,19141,19143,19149,19151,19159,19161,19162,19163,19163,19173,19179,19179,19180,19182,19189,19211,19216,19218,19224,19227,19227,19237,19240,19242,19246,19250,19255,19262,19263,19263,19273,19275,19279,19281,19283,19283,19290,19291,19296,19297,19301,19304,19306,19308,19308,19311,19314,19315,19316,19323,19324,19327,19330,19334,19337,19339,19339,19349,19360,19363,19366,19367,19369,19385,19386,19387,19393,19398,19403,19404,19413,19417,19418,19432,19439,19440,19440,19441,19446,19450,19457,19459,19460,19464,19472,19477,19478,19490,19491,19491,19491,19495,19496,19504,19508,19510,19515,19520,19527,19537,19554,19556,19559,19561,19564,19566,19572,19576,19581,19582,19590,19595,19596,19597,19599,19611,19611,19617,19619,19619,196
26,19627,19630,19633,19634,19647,19651,19655,19655,19658,19664,19665,19671,19671,19675,19683,19697,19700,19712,19716,19718,19732,19734,19745,19751,19766,19767,19769,19779,19786,19786,19788,19790,19797,19798,19802,19805,19817,19823,19824,19841,19847,19859,19860,19863,19864,19866,19871,19871,19874,19877,19885,19888,19896,19899,19902,19904,19915,19920,19925,19928,19929,19931,19934,19938,19939,19940,19942,19942,19943,19947,19953,19956,19956,19959,19967,19971,19978,19986,19986,20001,20002,20008,20026,20044,20051,20057,20060,20064,20071,20080,20091,20114,20115,20125,20126,20134,20135,20138,20138,20145,20148,20150,20150,20152,20154,20155,20160,20162,20167,20167,20174,20175,20175,20194,20197,20200,20202,20203,20211,20215,20215,20218,20220,20222,20224,20226,20230,20236,20256,20258,20260,20270,20271,20276,20277,20284,20288,20306,20316,20320,20321,20325,20332,20333,20334,20335,20343,20343,20347,20354,20356,20359,20368,20371,20384,20387,20416,20417,20425,20427,2043
6,20446,20457,20469,20473,20475,20476,20478,20483,20483,20490,20501,20502,20506,20509,20511,20515,20536,20543,20546,20546,20550,20559,20580,20581,20589,20592,20595,20596,20598,20616,20621,20626,20627,20630,20631,20637,20639,20647,20648,20648,20650,20652,20659,20667,20674,20683,20684,20688,20692,20693,20709,20711,20720,20741,20785,20794,20796,20797,20804,20812,20815,20841,20842,20878,20894,20897,20904,20905,20905,20911,20921,20932,20946,20962,20964,20965,20976,20977,20988,20989,20992,20995,20998,21001,21010,21019,21029,21042,21064,21065,21066,21078,21088,21092,21093,21108,21113,21115,21118,21120,21123,21124,21147,21149,21156,21168,21169,21178,21179,21185,21197,21206,21227,21230,21235,21236,21242,21244,21245,21253,21255,21256,21257,21258,21262,21266,21268,21271,21276,21288,21304,21307,21319,21322,21342,21369,21370,21375,21385,21396,21420,21420,21420,21421,21430,21431,21431,21432,21442,21442,21453,21471,21481,21491,21491,21492,21495,21497,21504,21523,21531
,21536,21538,21544,21552,21554,21561,21563,21564,21564,21568,21570,21570,21570,21574,21580,21583,21585,21588,21589,21595,21596,21605,21616,21620,21626,21628,21630,21637,21638,21639,21640,21640,21648,21650,21657,21660,21664,21666,21671,21683,21693,21705,21714,21719,21720,21726,21728,21732,21740,21741,21754,21755,21777,21779,21782,21785,21797,21808,21808,21820,21835,21860,21860,21867,21869,21882,21883,21891,21893,21905,21907,21925,21936,21950,21961,21974,21981,21984,21986,21988,21993,21995,22000,22010,22027,22036,22053,22055,22055,22059,22064,22074,22084,22086,22087,22102,22102,22113,22115,22122,22125,22142,22174,22177,22177,22214,22216,22219,22225,22235,22246,22256,22259,22294,22295,22303,22304,22308,22310,22318,22325,22332,22355,22368,22369,22378,22396,22405,22420,22425,22427,22454,22456,22467,22471,22478,22495,22496,22514,22514,22515,22530,22531,22531,22536,22554,22555,22557,22569,22571,22575,22583,22617,22618,22629,22635,22638,22642,22645,22654,22673,
22679,22686,22687,22687,22693,22696,22706,22711,22723,22751,22769,22783,22785,22786,22792,22794,22800,22807,22817,22827,22836,22861,22866,22868,22876,22896,22902,22920,22929,22938,22952,22962,22975,22976,22989,22992,23000,23012,23016,23021,23041,23047,23049,23061,23062,23065,23084,23086,23099,23101,23108,23114,23119,23126,23132,23163,23181,23189,23194,23210,23213,23213,23226,23240,23245,23259,23275,23288,23288,23294,23295,23297,23304,23315,23316,23335,23342,23347,23350,23361,23362,23367,23371,23381,23385,23398,23409,23415,23418,23425,23429,23430,23438,23439,23465,23472,23481,23484,23485,23488,23497,23512,23522,23530,23544,23558,23570,23570,23581,23583,23604,23614,23616,23618,23621,23623,23636,23650,23659,23661,23689,23690,23695,23698,23721,23722,23725,23740,23744,23746,23748,23759,23761,23762,23762,23774,23779,23790,23791,23797,23804,23806,23822,23824,23826,23826,23834,23836,23844,23849,23860,23880,23881,23881,23886,23899,23910,23911,23917,23931,23955,2
3974,23988,23990,23991,23993,24001,24008,24022,24022,24025,24032,24033,24037,24041,24041,24047,24066,24068,24069,24074,24075,24081,24083,24085,24094,24096,24111,24112,24120,24121,24124,24125,24126,24131,24138,24138,24144,24147,24149,24154,24156,24162,24175,24196,24201,24207,24207,24220,24230,24236,24248,24268,24282,24287,24300,24317,24320,24325,24348,24360,24392,24397,24398,24430,24431,24443,24448,24454,24459,24462,24472,24473,24476,24489,24512,24516,24519,24535,24542,24543,24546,24554,24556,24572,24584,24591,24595,24595,24610,24615,24651,24651,24677,24711,24720,24731,24732,24749,24749,24751,24752,24755,24756,24757,24758,24762,24774,24785,24789,24815,24833,24834,24834,24845,24856,24859,24863,24886,24889,24889,24893,24897,24902,24907,24908,24915,24926,24944,24957,24977,24987,24988,25015,25028,25051,25063,25082,25086,25101,25103,25107,25122,25131,25147,25148,25158,25180,25184,25185,25190,25197,25209,25211,25213,25217,25217,25219,25231,25232,25233,25243,25
244,25244,25248,25264,25272,25281,25305,25317,25330,25336,25362,25367,25371,25391,25394,25404,25405,25406,25417,25428,25452,25456,25460,25467,25467,25467,25490,25496,25532,25536,25539,25542,25542,25554,25577,25578,25580,25581,25594,25596,25607,25614,25619,25632,25634,25635,25635,25647,25652,25654,25666,25671,25723,25725,25726,25741,25749,25749,25767,25783,25803,25812,25817,25826,25829,25839,25870,25877,25885,25917,25921,25926,25940,25946,25948,25950,25963,25964,25977,25982,25987,26006,26014,26017,26049,26056,26064,26065,26088,26094,26117,26132,26145,26170,26191,26205,26236,26239,26240,26257,26269,26269,26273,26274,26281,26281,26288,26295,26299,26311,26312,26329,26358,26375,26381,26384,26393,26397,26423,26427,26429,26435,26443,26447,26458,26473,26479,26480,26482,26486,26538,26557,26575,26576,26589,26595,26596,26606,26615,26637,26638,26643,26648,26663,26691,26694,26694,26695,26699,26712,26722,26732,26733,26743,26763,26765,26776,26804,26822,26831,26835,268
36,26840,26850,26858,26863,26888,26924,26939,26945,26947,26953,26955,26956,26964,26968,26982,27002,27007,27007,27007,27023,27031,27032,27034,27061,27093,27097,27107,27115,27130,27142,27148,27162,27172,27185,27191,27191,27198,27207,27207,27234,27271,27310,27314,27322,27333,27339,27346,27354,27359,27373,27395,27397,27419,27421,27454,27461,27487,27510,27519,27566,27569,27571,27575,27577,27578,27580,27588,27594,27596,27598,27614,27620,27623,27633,27645,27664,27682,27688,27698,27715,27717,27719,27727,27760,27773,27781,27793,27794,27808,27841,27858,27858,27872,27920,27921,27924,27925,27926,27965,27972,27982,27995,27996,28004,28017,28026,28037,28052,28101,28139,28150,28168,28194,28200,28217,28224,28241,28244,28251,28260,28263,28263,28269,28274,28348,28351,28363,28366,28367,28372,28406,28428,28431,28433,28441,28447,28448,28453,28466,28466,28467,28477,28494,28569,28574,28579,28580,28581,28624,28655,28657,28667,28671,28711,28712,28713,28730,28733,28734,28759,2877
5,28805,28811,28818,28858,28868,28881,28899,28915,28915,28932,28940,28943,28949,28967,28984,28997,29001,29001,29009,29014,29044,29045,29050,29065,29073,29075,29082,29084,29104,29116,29120,29128,29133,29133,29137,29142,29145,29152,29153,29158,29168,29185,29185,29191,29196,29200,29204,29209,29210,29213,29214,29217,29219,29256,29267,29271,29279,29289,29289,29299,29304,29311,29318,29322,29328,29328,29346,29350,29360,29374,29376,29383,29396,29409,29415,29420,29440,29441,29446,29459,29496,29502,29524,29579,29598,29600,29608,29623,29638,29644,29665,29673,29676,29677,29686,29716,29776,29783,29792,29800,29811,29812,29837,29844,29859,29863,29865,29874,29900,29902,29915,29933,29935,29949,29957,29959,29961,29984,30002,30028,30030,30033,30042,30043,30065,30078,30081,30091,30096,30142,30161,30171,30195,30197,30197,30201,30204,30216,30261,30262,30274,30305,30317,30317,30341,30345,30381,30390,30409,30413,30414,30418,30420,30449,30449,30500,30511,30517,30532,30539,30544
,30570,30589,30594,30601,30610,30611,30612,30617,30622,30632,30633,30642,30644,30647,30650,30699,30701,30702,30702,30718,30723,30739,30745,30757,30766,30781,30783,30783,30790,30790,30792,30793,30811,30814,30843,30844,30881,30882,30888,30889,30900,30913,30927,30933,30934,30987,31002,31014,31047,31068,31076,31109,31121,31123,31123,31146,31235,31252,31261,31274,31299,31300,31301,31317,31319,31323,31324,31344,31348,31353,31355,31370,31389,31415,31416,31417,31428,31444,31462,31465,31467,31469,31487,31500,31505,31518,31521,31525,31542,31550,31552,31555,31560,31608,31611,31634,31647,31674,31690,31698,31699,31725,31759,31834,31920,31934,31937,31945,31953,31979,31982,31987,31995,32013,32044,32081,32091,32098,32158,32161,32165,32201,32233,32241,32247,32249,32285,32306,32318,32319,32319,32326,32360,32368,32428,32438,32480,32516,32517,32532,32548,32573,32593,32608,32611,32619,32643,32650,32657,32689,32700,32710,32738,32761,32770,32805,32808,32829,32831,32886,32910,
32913,32916,32925,32930,32932,32947,32983,32992,32999,32999,33090,33102,33103,33149,33156,33161,33207,33247,33251,33286,33315,33370,33371,33379,33394,33442,33454,33472,33489,33507,33507,33523,33524,33525,33530,33530,33573,33605,33609,33642,33648,33659,33669,33698,33707,33768,33772,33777,33801,33812,33886,33908,33928,33959,33962,33970,33979,33981,33984,34039,34045,34098,34098,34101,34110,34117,34161,34162,34199,34201,34228,34239,34245,34266,34269,34274,34295,34362,34375,34385,34410,34428,34443,34448,34457,34465,34507,34571,34582,34592,34638,34656,34726,34728,34830,34889,34916,34969,34972,34982,34992,35049,35060,35097,35102,35120,35164,35172,35198,35207,35232,35269,35295,35307,35331,35333,35340,35345,35375,35376,35403,35405,35425,35436,35441,35457,35483,35503,35508,35530,35534,35543,35573,35580,35625,35635,35695,35722,35732,35740,35743,35771,35804,35806,35825,35860,35867,35880,35930,35934,35983,36056,36098,36109,36178,36181,36223,36229,36273,36286,36290,3
6296,36369,36388,36406,36421,36457,36482,36485,36551,36596,36639,36640,36643,36652,36657,36696,36720,36741,36766,36780,36867,36876,36907,36947,36967,37040,37061,37079,37082,37100,37104,37175,37178,37185,37207,37240,37290,37315,37318,37318,37322,37334,37345,37352,37380,37393,37460,37471,37534,37557,37620,37630,37633,37649,37664,37665,37670,37683,37712,37722,37737,37745,37764,37783,37798,37800,37808,37809,37828,37863,37878,37913,37927,37932,37964,37981,38008,38022,38042,38136,38188,38195,38285,38289,38298,38354,38397,38398,38419,38425,38455,38471,38498,38515,38607,38650,38714,38756,38803,38941,39022,39081,39120,39145,39196,39218,39269,39327,39336,39385,39410,39431,39465,39551,39563,39586,39593,39633,39650,39654,39661,39761,39801,39915,39972,39996,40000,40043,40122,40210,40223,40226,40304,40341,40361,40478,40493,40502,40521,40585,40597,40672,40681,40693,40719,40722,40800,40923,40940,41072,41107,41118,41173,41176,41202,41207,41255,41272,41279,41420,41424,41
438,41442,41461,41484,41493,41497,41503,41620,41652,41675,41736,41747,41991,42032,42071,42075,42165,42198,42220,42306,42309,42448,42520,42564,42802,42976,42989,42994,43018,43033,43036,43142,43180,43261,43331,43343,43658,43753,43824,43879,43942,43955,44069,44137,44176,44232,44234,44257,44269,44297,44371,44574,44648,44665,44732,44777,44891,44946,44976,45067,45083,45164,45178,45189,45190,45246,45266,45377,45470,45626,45629,45662,45690,45796,45821,45955,46034,46055,46066,46180,46183,46186,46198,46418,46517,46617,46618,46686,46722,46839,46856,46875,46961,46980,46999,47088,47143,47189,47256,47315,47348,47503,47521,47645,47902,47922,47956,47989,48014,48112,48293,48400,48487,48558,48628,48743,48759,48934,48954,48996,49130,49183,49194,49228,49330,49420,49620,49730,49762,49867,49883,49921,50016,50020,50139,50177,50197,50292,50351,50478,50579,50605,50648,50762,50834,50847,50848,50903,50932,50951,50961,51015,51024,51045,51134,51150,51319,51487,51644,51682,51754,517
81,51860,51862,52187,52236,52539,52670,52802,52962,53041,53071,53359,53626,53673,53684,53711,53774,53815,53945,54132,54207,54230,54353,54404,54553,54655,54661,54787,55076,55123,55216,55317,55424,55435,55777,55864,56073,56110,56526,56645,57050,57073,57396,57439,57536,57737,57772,57781,57931,57969,57994,58025,58028,58205,58214,58221,58412,58969,59100,59373,59710,59781,59836,60313,60318,60368,60375,61038,61077,61185,61724,61937,61953,62055,62411,62994,63076,63184,63345,63359,63415,63593,63679,63802,64092,64275,64620,65093,65108,65298,65363,65477,65550,66040,66071,66130,66316,66363,66980,67100,67467,67795,67999,68178,68366,68381,69157,69288,69551,69969,70069,70094,70101,70350,70632,70887,71011,71188,72564,72972,73325,74545,75132,75787,75808,76434,76834,77738,78411,78993,81683,82245,82465,83761,85753,86194,87245,90203,90249,99215,101584,102654,106640,130054) 
drg_470 

I receive error messages concerning: "unexpected numeric 
constant" & "unexpected ','".  Effort has been made to ensure that 
the input values are numeric & a check for commas.  A similar, but 
shorter, vector has been inputted with no problems.  This vector is 
length 4495.   

This is a basic problem, but I am unsure why this is occurring.   

Your help is most appreciated.



More information about the R-help mailing list