Useful stype predicates

is_constant(x)

is_not_constant(x)

is_tagged(x)

# S4 method for purpose
is_tagged(x)

# S4 method for context
is_tagged(x)

# S4 method for stype
is_tagged(x)

# S4 method for ANY
is_tagged(x)

is_not_tagged(x)

# S4 method for ANY
is_not_tagged(x)

has_tag(x, tag)

# S4 method for purpose
has_tag(x, tag)

# S4 method for context
has_tag(x, tag)

# S4 method for stype
has_tag(x, tag)

# S4 method for ANY
has_tag(x, tag)

has_any_tags(x, tags)

# S4 method for ANY
has_any_tags(x, tags)

has_all_tags(x, tags)

# S4 method for ANY
has_all_tags(x, tags)

has_only_tags(x, tags)

# S4 method for purpose
has_only_tags(x, tags)

# S4 method for context
has_only_tags(x, tags)

# S4 method for stype
has_only_tags(x, tags)

# S4 method for ANY
has_only_tags(x, tags)

Arguments

x

a stype or other object

tag

a length 1 character vector

tags

a character vector

Functions

  • is_constant: is this vector constant?

  • is_not_constant: is this vector not constant?

  • is_tagged: Is this object tagged?

  • is_tagged,purpose-method: Is this purpose tagged?

  • is_tagged,context-method: Is this context tagged?

  • is_tagged,stype-method: Is this stype tagged?

  • is_tagged,ANY-method: Is this non-stype tagged? FALSE

  • is_not_tagged: Is this object not tagged?

  • is_not_tagged,ANY-method: Is this non-stype tagged? FALSE

  • has_tag: Does x have the tag?

  • has_tag,purpose-method: Does purpose have tag?

  • has_tag,context-method: Does context have tag?

  • has_tag,stype-method: Does stype have tag?

  • has_tag,ANY-method: Does this non-stype have tag?

  • has_any_tags: Does x have any of the tags?

  • has_any_tags,ANY-method: Does x have any of the tags?

  • has_all_tags: Does x have all of the tags?

  • has_all_tags,ANY-method: Does x have all of the tags?

  • has_only_tags: Does x have only the tags?

  • has_only_tags,purpose-method: Does x have only the tags?

  • has_only_tags,context-method: Does x have only the tags?

  • has_only_tags,stype-method: Does x have only the tags?

  • has_only_tags,ANY-method: Does x have only the tags?