Description Usage Arguments Value Examples
missValVec takes as input two vectors (vec1
and vec2
) and returns a vector containing the values present in the first vector but not in the second vector.
1 | missValVec(vec1, vec2)
|
vec1 |
a vector to be compared |
vec2 |
a vector to be compared |
missValVec returns a vector containing the values of vec1
missing in vec2
i.e. the values present in vec1
but not in vec2
. If the missing values are all numeric then the output vector is of class numeric. If at least one of the missing values is a character, then the output vector is of class character.
1 2 | missValVec(c(1,2,"a"),c(2,"a",3,4,5))
missValVec(c(1,2,"dog",10,"apple"),c(11,22,"dog",2,"orange"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.