I'm trying to run CAPdiscrim on a dissimilarity matrix with a catagorical variable attached on the right with cbind

str(MD2.tyc.om)
 num [1:34, 1:35] 0 0.53 0.857 0.962 0.763 ...
 - attr(*, "dimnames")=List of 2
  ..$ : NULL
  ..$ : chr [1:35] "" "" "" "" ...

CAPdiscrim(MD.2.tyc.om~MD.2.tyc.om[,35], data=MD.2.tyc.om, axes=2)

I keep getting this error, even if I set m=10 (as in much smaller than 24).

Error in y[, group] : no 'dimnames' attribute for array
In addition: Warning message:
In cmdscale(distmatrix, k = nrow(x) - 1, eig = T, add = F) :
  only 24 of the first 33 eigenvalues are > 0

I can't find any examples using CAPdiscrim on previously calculated distance matrices even though that's an option in the manual.  Any guidance on this error would be appreciated.

Thanks, Kendra

Here is the full matrix

"","V1","V2","V3","V4","V5","V6","V7","V8","V9","V10","V11","V12","V13","V14","V15","V16","V17","V18","V19","V20","V21","V22","V23","V24","V25","V26","V27","V28","V29","V30","V31","V32","V33","V34","V35"
"1",0,0.530104,0.856862,0.962188,0.763469,0.847752,0.784871,0.981281,0.994992,0.852796,0.885253,0.892708,0.801034,0.896041,0.790542,0.905549,0.91111,0.89411,0.976961,0.997093,0.784175,0.903232,0.93154,0.801226,0.792943,0.647447,0.895218,0.943309,0.668771,0.764815,0.739676,0.882644,0.870289,0.944295,2
"2",0.530104,0,0.848909,0.96033,0.714506,0.800896,0.741563,0.980028,0.997491,0.846717,0.878128,0.857846,0.725213,0.870564,0.765767,0.877561,0.878336,0.852742,0.986353,0.999126,0.822573,0.897483,0.955899,0.828633,0.780688,0.745419,0.823416,0.943878,0.708038,0.723605,0.774255,0.873241,0.838629,0.944567,2
"3",0.856862,0.848909,0,0.982097,0.508784,0.92577,0.909307,0.973827,0.996873,0.942398,0.837959,0.964803,0.942049,0.970062,0.921683,0.965747,0.865674,0.96621,0.970599,0.998697,0.95216,0.857683,0.946018,0.930482,0.927475,0.913383,0.792996,0.982603,0.910284,0.917016,0.920965,0.962759,0.94806,0.981199,2
"4",0.962188,0.96033,0.982097,0,0.967646,0.887319,0.88916,0.992741,0.998424,0.949568,0.986832,0.969923,0.966289,0.952887,0.958222,0.914256,0.970642,0.949878,0.997484,0.99922,0.972913,0.987636,0.991347,0.970548,0.958918,0.969111,0.987843,0.991885,0.948502,0.950591,0.959468,0.972857,0.960665,0.984128,3
"5",0.763469,0.714506,0.508784,0.967646,0,0.830261,0.747783,0.962011,0.997433,0.86467,0.7221,0.926794,0.850157,0.898435,0.884836,0.914703,0.767928,0.895792,0.974094,0.998723,0.780709,0.75797,0.911907,0.887166,0.884969,0.845558,0.717217,0.951557,0.746902,0.729877,0.811324,0.893765,0.888216,0.949748,3
"6",0.847752,0.800896,0.92577,0.887319,0.830261,0,0.163985,0.97472,0.998901,0.725018,0.92645,0.87806,0.86715,0.780106,0.792507,0.490193,0.819201,0.651105,0.996154,0.998477,0.908053,0.934804,0.9861,0.866673,0.79856,0.857432,0.940762,0.930323,0.697156,0.752768,0.816972,0.894443,0.812859,0.838411,4
"7",0.784871,0.741563,0.909307,0.88916,0.747783,0.163985,0,0.970635,0.998712,0.743737,0.902507,0.895685,0.849876,0.794102,0.82606,0.572111,0.804792,0.704899,0.997323,0.999367,0.757292,0.912523,0.988927,0.849474,0.833946,0.84092,0.932403,0.908419,0.617524,0.643687,0.752857,0.873461,0.839341,0.806423,4
"8",0.981281,0.980028,0.973827,0.992741,0.962011,0.97472,0.970635,0,0.997652,0.963377,0.967037,0.987938,0.977347,0.990068,0.983188,0.987835,0.975008,0.987181,0.996529,0.999108,0.978355,0.970359,0.991946,0.98055,0.983813,0.985231,0.965446,0.995442,0.977301,0.975595,0.981167,0.987265,0.97235,0.983309,1
"9",0.994992,0.997491,0.996873,0.998424,0.997433,0.998901,0.998712,0.997652,0,0.997626,0.996517,0.995838,0.993279,0.998833,0.995305,0.998685,0.999235,0.999336,0.996906,0.509494,0.997247,0.998252,0.996533,0.9975,0.99536,0.996573,0.998077,0.999231,0.998941,0.998811,0.999415,0.998226,0.997303,0.999218,1
"10",0.852796,0.846717,0.942398,0.949568,0.86467,0.725018,0.743737,0.963377,0.997626,0,0.89808,0.848579,0.746469,0.805586,0.750345,0.847075,0.905,0.773444,0.994976,0.99613,0.824557,0.884519,0.964639,0.805678,0.735651,0.794916,0.928207,0.957893,0.78041,0.740277,0.787443,0.848252,0.707056,0.927436,1
"11",0.885253,0.878128,0.837959,0.986832,0.7221,0.92645,0.902507,0.967037,0.996517,0.89808,0,0.897717,0.831794,0.848827,0.890467,0.919391,0.624457,0.833627,0.958429,0.997872,0.858585,0.648805,0.954671,0.902101,0.880482,0.819793,0.769834,0.958542,0.821093,0.828221,0.8213,0.887611,0.86665,0.948375,2
"12",0.892708,0.857846,0.964803,0.969923,0.926794,0.87806,0.895685,0.987938,0.995838,0.848579,0.897717,0,0.696383,0.449336,0.753916,0.873609,0.915059,0.747178,0.990016,0.997983,0.894964,0.917055,0.971518,0.862614,0.745737,0.787584,0.92082,0.957279,0.837768,0.838932,0.806603,0.867847,0.773707,0.94201,2
"13",0.801034,0.725213,0.942049,0.966289,0.850157,0.86715,0.849876,0.977347,0.993279,0.746469,0.831794,0.696383,0,0.737609,0.659008,0.848877,0.852335,0.757383,0.982736,0.996557,0.655259,0.867918,0.91404,0.711859,0.620603,0.657876,0.751447,0.933596,0.701745,0.693941,0.72905,0.744661,0.66299,0.901174,2
"14",0.896041,0.870564,0.970062,0.952887,0.898435,0.780106,0.794102,0.990068,0.998833,0.805586,0.848827,0.449336,0.737609,0,0.757593,0.681598,0.815115,0.420796,0.988456,0.999433,0.81008,0.854343,0.978752,0.842183,0.720653,0.649232,0.895893,0.920209,0.685464,0.689573,0.579617,0.763143,0.658577,0.905485,3
"15",0.790542,0.765767,0.921683,0.958222,0.884836,0.792507,0.82606,0.983188,0.995305,0.750345,0.890467,0.753916,0.659008,0.757593,0,0.826689,0.873181,0.642655,0.989563,0.998322,0.861947,0.899871,0.949883,0.445683,0.040769,0.565352,0.867132,0.934416,0.64492,0.632297,0.609824,0.795227,0.498515,0.924442,3
"16",0.905549,0.877561,0.965747,0.914256,0.914703,0.490193,0.572111,0.987835,0.998685,0.847075,0.919391,0.873609,0.848877,0.681598,0.826689,0,0.798056,0.620021,0.988816,0.998962,0.903879,0.933739,0.985677,0.875208,0.824536,0.818329,0.940517,0.949869,0.716765,0.788392,0.78357,0.855355,0.802877,0.941102,3
"17",0.91111,0.878336,0.865674,0.970642,0.767928,0.819201,0.804792,0.975008,0.999235,0.905,0.624457,0.915059,0.852335,0.815115,0.873181,0.798056,0,0.7712,0.990297,0.999562,0.856043,0.75589,0.985678,0.86189,0.865602,0.829791,0.7582,0.955982,0.76228,0.791676,0.776135,0.873062,0.859092,0.943876,4
"18",0.89411,0.852742,0.96621,0.949878,0.895792,0.651105,0.704899,0.987181,0.999336,0.773444,0.833627,0.747178,0.757383,0.420796,0.642655,0.620021,0.7712,0,0.992988,0.999441,0.829653,0.848124,0.995715,0.754955,0.606968,0.584805,0.903398,0.882185,0.59874,0.624462,0.503697,0.736325,0.58863,0.793747,4
"19",0.976961,0.986353,0.970599,0.997484,0.974094,0.996154,0.997323,0.996529,0.996906,0.994976,0.958429,0.990016,0.982736,0.988456,0.989563,0.988816,0.990297,0.992988,0,0.998649,0.988867,0.979585,0.957237,0.99242,0.989853,0.983864,0.99005,0.996718,0.991281,0.990061,0.992383,0.990933,0.987206,0.99723,4
"20",0.997093,0.999126,0.998697,0.99922,0.998723,0.998477,0.999367,0.999108,0.509494,0.99613,0.997872,0.997983,0.996557,0.999433,0.998322,0.998962,0.999562,0.999441,0.998649,0,0.999075,0.999247,0.997395,0.999052,0.998487,0.99804,0.999145,0.999725,0.99957,0.999534,0.999693,0.999424,0.998965,0.999566,1
"21",0.784175,0.822573,0.95216,0.972913,0.780709,0.908053,0.757292,0.978355,0.997247,0.824557,0.858585,0.894964,0.655259,0.81008,0.861947,0.903879,0.856043,0.829653,0.988867,0.999075,0,0.856517,0.960289,0.750404,0.838999,0.696738,0.891203,0.899058,0.47569,0.516966,0.618473,0.733062,0.822884,0.843149,1
"22",0.903232,0.897483,0.857683,0.987636,0.75797,0.934804,0.912523,0.970359,0.998252,0.884519,0.648805,0.917055,0.867918,0.854343,0.899871,0.933739,0.75589,0.848124,0.979585,0.999247,0.856517,0,0.954535,0.889698,0.883625,0.838877,0.780406,0.958845,0.831865,0.830672,0.819342,0.881014,0.864899,0.943907,1
"23",0.93154,0.955899,0.946018,0.991347,0.911907,0.9861,0.988927,0.991946,0.996533,0.964639,0.954671,0.971518,0.91404,0.978752,0.949883,0.985677,0.985678,0.995715,0.957237,0.997395,0.960289,0.954535,0,0.957146,0.934858,0.951871,0.949761,0.993348,0.983026,0.962962,0.982212,0.963042,0.93416,0.989472,2
"24",0.801226,0.828633,0.930482,0.970548,0.887166,0.866673,0.849474,0.98055,0.9975,0.805678,0.902101,0.862614,0.711859,0.842183,0.445683,0.875208,0.86189,0.754955,0.99242,0.999052,0.750404,0.889698,0.957146,0,0.433885,0.49908,0.824472,0.913046,0.576643,0.503168,0.455107,0.661285,0.634186,0.859977,2
"25",0.792943,0.780688,0.927475,0.958918,0.884969,0.79856,0.833946,0.983813,0.99536,0.735651,0.880482,0.745737,0.620603,0.720653,0.040769,0.824536,0.865602,0.606968,0.989853,0.998487,0.838999,0.883625,0.934858,0.433885,0,0.540768,0.858399,0.929136,0.631118,0.608543,0.59167,0.760623,0.439831,0.914263,2
"26",0.647447,0.745419,0.913383,0.969111,0.845558,0.857432,0.84092,0.985231,0.996573,0.794916,0.819793,0.787584,0.657876,0.649232,0.565352,0.818329,0.829791,0.584805,0.983864,0.99804,0.696738,0.838877,0.951871,0.49908,0.540768,0,0.83757,0.880395,0.439041,0.520271,0.295918,0.609658,0.615631,0.795808,3
"27",0.895218,0.823416,0.792996,0.987843,0.717217,0.940762,0.932403,0.965446,0.998077,0.928207,0.769834,0.92082,0.751447,0.895893,0.867132,0.940517,0.7582,0.903398,0.99005,0.999145,0.891203,0.780406,0.949761,0.824472,0.858399,0.83757,0,0.956328,0.840251,0.853711,0.842117,0.863831,0.875323,0.93327,3
"28",0.943309,0.943878,0.982603,0.991885,0.951557,0.930323,0.908419,0.995442,0.999231,0.957893,0.958542,0.957279,0.933596,0.920209,0.934416,0.949869,0.955982,0.882185,0.996718,0.999725,0.899058,0.958845,0.993348,0.913046,0.929136,0.880395,0.956328,0,0.896541,0.896806,0.892812,0.90976,0.925998,0.812763,3
"29",0.668771,0.708038,0.910284,0.948502,0.746902,0.697156,0.617524,0.977301,0.998941,0.78041,0.821093,0.837768,0.701745,0.685464,0.64492,0.716765,0.76228,0.59874,0.991281,0.99957,0.47569,0.831865,0.983026,0.576643,0.631118,0.439041,0.840251,0.896541,0,0.332259,0.366013,0.670988,0.660053,0.865374,4
"30",0.764815,0.723605,0.917016,0.950591,0.729877,0.752768,0.643687,0.975595,0.998811,0.740277,0.828221,0.838932,0.693941,0.689573,0.632297,0.788392,0.791676,0.624462,0.990061,0.999534,0.516966,0.830672,0.962962,0.503168,0.608543,0.520271,0.853711,0.896806,0.332259,0,0.344601,0.620052,0.597656,0.851265,4
"31",0.739676,0.774255,0.920965,0.959468,0.811324,0.816972,0.752857,0.981167,0.999415,0.787443,0.8213,0.806603,0.72905,0.579617,0.609824,0.78357,0.776135,0.503697,0.992383,0.999693,0.618473,0.819342,0.982212,0.455107,0.59167,0.295918,0.842117,0.892812,0.366013,0.344601,0,0.627952,0.635738,0.839837,4
"32",0.882644,0.873241,0.962759,0.972857,0.893765,0.894443,0.873461,0.987265,0.998226,0.848252,0.887611,0.867847,0.744661,0.763143,0.795227,0.855355,0.873062,0.736325,0.990933,0.999424,0.733062,0.881014,0.963042,0.661285,0.760623,0.609658,0.863831,0.90976,0.670988,0.620052,0.627952,0,0.715052,0.780646,1
"33",0.870289,0.838629,0.94806,0.960665,0.888216,0.812859,0.839341,0.97235,0.997303,0.707056,0.86665,0.773707,0.66299,0.658577,0.498515,0.802877,0.859092,0.58863,0.987206,0.998965,0.822884,0.864899,0.93416,0.634186,0.439831,0.615631,0.875323,0.925998,0.660053,0.597656,0.635738,0.715052,0,0.868732,1
"34",0.944295,0.944567,0.981199,0.984128,0.949748,0.838411,0.806423,0.983309,0.999218,0.927436,0.948375,0.94201,0.901174,0.905485,0.924442,0.941102,0.943876,0.793747,0.99723,0.999566,0.843149,0.943907,0.989472,0.859977,0.914263,0.795808,0.93327,0.812763,0.865374,0.851265,0.839837,0.780646,0.868732,0,1

	[[alternative HTML version deleted]]

