Learn R Programming

qtl2pleio (version 1.2.3)

check_identical: Check whether a vector, x, has all its entries equal to its first entry

Description

Check whether a vector, x, has all its entries equal to its first entry

Usage

check_identical(x)

Arguments

x

a vector

Value

a logical indicating whether all vector entries are the same

Examples

Run this code
# NOT RUN {
x <- 1:5
check_identical(x)
y <- rep(1, 5)
check_identical(y)
# }

Run the code above in your browser using DataLab