View source: R/test_if_equal.R
test_if_equal | R Documentation |
Compares all elements of a vector of numbers or character strings and returns TRUE if they are all the same, FALSE otherwise.
test_if_equal(test_vector)
test_vector |
vector of strings or numbers to be tested. |
TRUE if all elements of the vector are the same; FALSE otherwise.
Eike Luedeling
test_if_equal(c(1,3,1))
test_if_equal(c("a","a","a"))
test_if_equal(c("a","b","a"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.