same_class: Same Class

Description Usage Arguments Examples

View source: R/same-class.r

Description

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

Usage

1
  same_class(x, y)

Arguments

x

an R object

y

an R object

Examples

1
2
same_class(letters[1:3], "class") # TRUE
same_class(1:3, "class") # FALSE

tester documentation built on May 20, 2017, 2:04 a.m.

Search within the tester package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.