ExpectHasKeys | R Documentation |
allowAdditional
is FALSE (default).Make sure that the object has all of the keys specified. Also tests that there
are not additional keys if allowAdditional
is FALSE (default).
ExpectHasKeys(obj, keys, allowAdditional = FALSE)
obj |
object. A list, vector, or data.frame to check names. |
keys |
character. A vector of names of keys to check. |
allowAdditional |
logical. Should we allow there to be more keys than specified? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.