has {Gmisc} | R Documentation |
An R alternative to the lodash has
in JavaScript
Description
This is a handy function for checking if item exist in a nested structure
Usage
has(sourceList, path)
Arguments
sourceList |
The |
path |
A string that can be separated by [,] or ., the string |
Value
Returns a boolean.
See Also
Other lodash similar functions:
retrieve()
Examples
has(list(a = list(b = 1)), "a.b")
[Package Gmisc version 3.0.3 Index]