How to Apply the identical() Function in R (Example Code)
In this R tutorial you’ll learn how to test objects for exact equality by applying the identical function.
Example: Applying identical() Function to Numerical Data
identical(1, 1) # Using identical() # [1] TRUE |
identical(1, 1) # Using identical() # [1] TRUE
identical(1, 2) # Using identical() # [1] FALSE |
identical(1, 2) # Using identical() # [1] FALSE