missValVec: missValVec

Description Usage Arguments Value Examples

View source: R/missValVec.R

Description

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.

Usage

1
missValVec(vec1, vec2)

Arguments

vec1

a vector to be compared

vec2

a vector to be compared

Value

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.

Examples

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"))

lwTools/agriTrf documentation built on March 26, 2020, 12:09 a.m.