Learn R Programming

tester (version 0.2.0)

same_class: Same Class

Description

same_class() tests if two objects have the same class
different_class() tests if two objects have different class

Usage

same_class(x, y)

Arguments

x

an R object

y

an R object

Examples

Run this code
same_class(letters[1:3], "class") # TRUE
same_class(1:3, "class") # FALSE

Run the code above in your browser using DataLab