grep_json_list: grep but for json list

View source: R/inspect_apsimx_json.R

grep_json_listR Documentation

grep but for json list

Description

recursive grep adapted for a json list

Usage

grep_json_list(
  pattern,
  x,
  ignore.case = FALSE,
  search.depth = 10,
  how = c("unlist", "replace", "list")
)

Arguments

pattern

as in grep

x

object (a list)

ignore.case

as in grep

search.depth

search depth for the list (to prevent endless search)

how

argument passed to rapply

Value

It returns a list with the found object, the json path and the positions in the list.


femiguez/apsimx documentation built on April 13, 2024, 12:04 a.m.