View source: R/remove_from_vector.R
remove_from_vector | R Documentation |
Remove certain values from a vector
remove_from_vector(values = NULL, vector = NULL, silent = FALSE)
values |
a single value or a vector of values which will be removed from the target vector |
vector |
a character or numeric vector |
silent |
if |
the output will be a vector with the given values removed.
remove_from_vector(values = 1, vector = 1:3)
remove_from_vector(values = NA, vector = c(1:3, NA))
remove_from_vector(values = c(1, NA), vector = c(1:3, NA))
remove_from_vector(values = 1:5, vector = 1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.