has_name {container} | R Documentation |
Check for Name
Description
Check for Name
Usage
has_name(x, name)
## S3 method for class 'Container'
has_name(x, name)
## S3 method for class 'dict.table'
has_name(x, name)
Arguments
x |
any |
name |
|
Value
TRUE
if name is in x
and otherwise FALSE
.
For dict.table
TRUE
if the dict.table objects has the given
column name, otherwise FALSE
.
See Also
Examples
co = container(a = 1, 2, f = mean)
has_name(co, "a") # TRUE
has_name(co, "f") # TRUE
has_name(co, "2") # FALSE
dit = dict.table(a = 1:2, b = 3:4)
has_name(dit, "a") # TRUE
has_name(dit, "x") # FALSE
[Package container version 1.0.4 Index]