.matchesLangTemplate {rxode2} | R Documentation |
Check if a language object matches a template language object
Description
If
template == str2lang(".")
, it will match anything.If
template == str2lang(".name")
, it will match any name.If
template == str2lang(".call()")
, it will match any call.
Usage
.matchesLangTemplate(x, template)
Arguments
x |
The object to check |
template |
The template object it should match |
Value
TRUE if it matches, FALSE, otherwise
Examples
.matchesLangTemplate(str2lang("d/dt(foo)"), str2lang("d/dt(.name)"))
.matchesLangTemplate(str2lang("d/dt(foo)"), str2lang("d/foo(.name)"))
.matchesLangTemplate(str2lang("d/dt(foo)"), str2lang("d/."))
[Package rxode2 version 2.1.3 Index]