has_name | R Documentation |
Check for Name
has_name(x, name)
## S3 method for class 'Container'
has_name(x, name)
## S3 method for class 'dict.table'
has_name(x, name)
x |
any |
name |
|
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
.
has()
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.