same_mode: Same Mode

View source: R/same-mode.r

same_modeR Documentation

Same Mode

Description

same_mode() tests if two objects have the same mode
different_mode() tests if two objects have different mode

Usage

  same_mode(x, y)

Arguments

x

an R object

y

an R object

Examples

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

tester documentation built on May 29, 2024, 7:33 a.m.