same: Test if All Vecter Elements are Equal

Description Usage Arguments Examples

View source: R/hello.R View source: R/misc_functions.R

Description

same(x) is a simple function to check if all of the elements of a vector are equal. NA's are ignored using na.omit().

Usage

1
same(x)

Arguments

x

Vector to be tested.

Examples

1
2
3
4
x <- rep(3, times = 10)
same(x) # returns TRUE
y <- 1:10
same (y) # returns FALSE

bouzidnm/tinker documentation built on May 25, 2019, 11:31 p.m.