Description Usage Arguments Value Examples
Solution to exercise 1.1 from Basics in Dalgaard P. Introductory statistics with R. New York : Springer; 2008.
“How would you check whether two vectors are the same if they may
contain missing (NA
) values? (Use of the identical
function is considered
cheating!)”
1 | exercise_1_1(vector_one, vector_two)
|
vector_one |
The first vector to be checked. |
vector_two |
The second vector to be checked. |
Returns TRUE
or FALSE
.
1 | exercise_1_1(c(1, 2, NA, 4), c(1, NA, 3, 4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.