View source: R/S03_Utilities.R
strip_value | R Documentation |
Removes a specified value from a vector.
strip_value(x, value = NA)
x |
A vector of values. |
value |
The value to remove (defaults
to |
A vector of values sans the one removed.
x <- c( 1, 2, NA, 3 )
print( strip_value(x) )
x <- c( 'Hello', '', 'world' )
print( strip_value(x, '') )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.