get_parent: Get the parent node from a path

Description Usage Arguments Value Examples

View source: R/json_tree.R

Description

Get the parent node from a path

Usage

1
get_parent(l, path)

Arguments

l

the list of apsimx file

path

If numeric, the path returned by search_path or search_node. If character, the path supported by apsimx

Value

A new list for parent

Examples

1
2
3
wheat <- read_apsimx(system.file("Wheat.json", package = "rapsimng"))
a <- search_path(wheat, '[Structure].BranchingRate')
get_parent(wheat, a$path)

rapsimng documentation built on Sept. 9, 2021, 9:07 a.m.