Skip to content
Prev 2571 / 15274 Next

How to remove the error : Error in dimnames(x) <- dn : length of 'dimnames' [2] not equal to array extent

The issue lies in the data format, this time your time column has both
date _AND_ time in it.  So you need to adjust the xts conversion as
well:
Open    High     Low   Close Volume
2007-01-08 00:59:00 1.93025 1.93035 1.92930 1.92960    -60
2007-01-08 01:59:00 1.92960 1.93010 1.92625 1.92805    -60
2007-01-08 02:59:00 1.92805 1.92970 1.92770 1.92780    -60
2007-01-08 03:59:00 1.92780 1.92835 1.92720 1.92825    -60
2007-01-08 04:59:00 1.92825 1.92960 1.92825 1.92900    -60
2007-01-08 05:59:00 1.92900 1.92925 1.92865 1.92925    -60
2007-01-08 06:59:00 1.92925 1.93085 1.92870 1.93065    -60
2007-01-08 07:59:00 1.93065 1.93310 1.93025 1.93300    -60
2007-01-08 08:59:00 1.93300 1.93435 1.93105 1.93110    -60
2007-01-08 09:59:00 1.93110 1.93475 1.93035 1.93400    -60
2007-01-08 10:59:00 1.93400 1.93465 1.93230 1.93240    -60
2007-01-08 11:59:00 1.93240 1.93350 1.93120 1.93305    -60
2007-01-08 12:59:00 1.93305 1.93385 1.93210 1.93360    -60
2007-01-08 13:59:00 1.93360 1.93375 1.93240 1.93345    -60
2007-01-08 14:59:00 1.93345 1.93360 1.92865 1.92905    -60
2007-01-08 15:59:00 1.92905 1.93460 1.92825 1.93410    -60
2007-01-08 16:59:00 1.93410 1.93735 1.93400 1.93465    -60
2007-01-08 17:59:00 1.93465 1.93865 1.93405 1.93840    -60
2007-01-08 18:59:00 1.93840 1.94050 1.93715 1.93775    -60
2007-01-08 19:59:00 1.93775 1.93935 1.93730 1.93730    -60
2007-01-08 20:59:00 1.93730 1.93870 1.93615 1.93780    -60
2007-01-08 21:59:00 1.93780 1.93840 1.93770 1.93780    -60
2007-01-08 22:59:00 1.93780 1.93815 1.93740 1.93780    -60
2007-01-08 23:58:00 1.93815 1.93925 1.93815 1.93905    -44
Jeff
On Mon, Jun 23, 2008 at 4:38 PM, <pierre8r-list at yahoo.fr> wrote: