powered by
Create schema query predicates
schema_where_path(pattern, fixed = FALSE)schema_where_check(kind = NULL)
schema_where_check(kind = NULL)
A predicate function with signature function(path, node).
function(path, node)
Pattern passed to grepl() for matching schema paths.
grepl()
Whether pattern should be matched literally.
pattern
Optional check kind to match, such as "list" or "int".
"list"
"int"
by_path <- schema_where_path("(^|\\$)`date-parts`\\$rest$") by_int <- schema_where_check("int") schema <- schema_infer(list(id = 1L)) schema schema_find(schema, by_int)
Run the code above in your browser using DataLab