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, 2)                     # Using identical()
# [1] FALSE

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top