removeFromList | R Documentation |
Removes all occurrences of the entry from the list. If the entry is not in the list nothing is removed.
removeFromList(entry, listArg)
entry |
The entry to be removed |
listArg |
The list from which the entry will be removed |
The list without the entry. If the input is a vector, it is converted to a list.
myList <- list("one", "two", "one", "three")
myList <- removeFromList("one", myList)
print(myList)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.