strip_value: Strip Vector of a Value

View source: R/S03_Utilities.R

strip_valueR Documentation

Strip Vector of a Value

Description

Removes a specified value from a vector.

Usage

strip_value(x, value = NA)

Arguments

x

A vector of values.

value

The value to remove (defaults to NA)

Value

A vector of values sans the one removed.

Examples

x <- c( 1, 2, NA, 3 )
print( strip_value(x) )

x <- c( 'Hello', '', 'world' )
print( strip_value(x, '') )


rettopnivek/arfpam documentation built on Oct. 20, 2024, 7:24 p.m.