title: Determine Cause of `identical()` returning FALSE
body: <p>I have two data.frames that I <em>expect</em> to be the same, but identical() returns false.</p>
  
  <p>As a background, one DF comes from the Iris data ARFF file, while the other a .rdata file, if that changes anything</p>
  
  <p>All the elements in x == y are TRUE, the class is the same for both variables, the rownames are the same for both, as are the colnames.</p>
  
  <p>How do I determine what triggered the FALSE output?</p>
  
  <p>EDIT: output of all.equal as stated below</p>
  
  <pre><code>[1] "Component 1: Attributes: &lt; Modes: list, NULL &gt;"                                
  [2] "Component 1: Attributes: &lt; names for target but not for current &gt;"             
  [3] "Component 1: Attributes: &lt; Length mismatch: comparison on first 0 components &gt;"
  </code></pre>
  
  <p>EDIT: output of attributes of both</p>
  
  <pre><code>&gt; attributes(dataset)
  $names
  [1] "Class"        "petal-length" "petal-width"  "sepal-length" "sepal-width" 
  $row.names
  [1]   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32
  [33]  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64
  [65]  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96
  [97]  97  98  99 100
  $class
  [1] "data.frame"
  
  &gt; attributes(dataset2)
  $names
  [1] "Class"        "petal-length" "petal-width"  "sepal-length" "sepal-width" 
  $row.names
  [1]   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32
  [33]  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64
  [65]  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96
  [97]  97  98  99 100
  $class    
  [1] "data.frame"
  `
  </code></pre>
  
  <p>output from str(x):</p>
  
  <pre><code>&gt; str(dataset)
  'data.frame':   100 obs. of  5 variables:
  $ Class       : atomic  1 0 1 0 1 0 0 0 1 1 ...
  ..- attr(*, "feature.type")= chr "Numeric"
  $ petal-length: atomic  6.3 4.8 7.2 5.2 6.7 4.9 5.5 5.3 6.4 6.1 ...
  ..- attr(*, "feature.type")= chr "Numeric"
  $ petal-width : atomic  2.9 3.4 3.2 3.4 3.1 3.6 3.5 3.7 3.1 2.6 ...
  ..- attr(*, "feature.type")= chr "Numeric"
  $ sepal-length: atomic  5.6 1.6 6 1.4 5.6 1.4 1.3 1.5 5.5 5.6 ...
  ..- attr(*, "feature.type")= chr "Numeric"
  $ sepal-width : atomic  1.8 0.2 1.8 0.2 2.4 0.1 0.2 0.2 1.8 1.4 ...
  ..- attr(*, "feature.type")= chr "Numeric"
  &gt; str(dataset2)
  'data.frame':   100 obs. of  5 variables:
  $ Class       : num  1 0 1 0 1 0 0 0 1 1 ...
  $ petal-length: num  6.3 4.8 7.2 5.2 6.7 4.9 5.5 5.3 6.4 6.1 ...
  $ petal-width : num  2.9 3.4 3.2 3.4 3.1 3.6 3.5 3.7 3.1 2.6 ...
  $ sepal-length: num  5.6 1.6 6 1.4 5.6 1.4 1.3 1.5 5.5 5.6 ...
  $ sepal-width : num  1.8 0.2 1.8 0.2 2.4 0.1 0.2 0.2 1.8 1.4 ...
  &gt; 
  </code></pre>