[R] identical applied to data frames
r.turner at auckland.ac.nz
Sun Apr 6 22:56:48 CEST 2014
On 07/04/14 02:00, Rguy wrote:
> I have two data frames that I believe are identical, yet checking them with
> identical() fails.
> Each data frame has two columns named 'pk' and 'newv_f13__bool'. As shown
> below, the columns of the data frames are identical, according to the
> identical() function, yet the data frames themselves are not. How can this
> Browse> identical(shft$pk, shft_mat$pk)
>  TRUE
> Browse> identical(shft$newv_f13__bool, shft_mat$newv_f13__bool)
>  TRUE
> Browse> identical(shft, shft_mat)
>  FALSE
> I have attached a file in which the two data frames are saved (using the
> save() function).
Attachment did not come through.
What does all.equal() say about your two data frames?
More information about the R-help