Skip to contents

The function assumes that x is a vector of predicate names, i.e., a character vector with elements compatible with pattern <varname>=<value>. The function returns the <value> part of these elements. If the string does not correspond to the pattern <varname>=<value>, i.e., if the equal sign (=) is missing in the string, an empty string is returned.

Usage

values(x)

Arguments

x

A character vector of predicate names.

Value

A <value> part of predicate names in x.

See also

Author

Michal Burda

Examples

values(c("a=1", "a=2", "b=x", "b=y")) # returns c("1", "2", "x", "y")
#> [1] "1" "2" "x" "y"