parsetools (version 0.1.1)

get_family_pd: Get family of nodes.

Description

Subset the pd to the family of id.

Usage

get_family_pd(id, pd, include.self = TRUE, ngenerations = Inf, ...,
  include.doc.comments = TRUE, include.regular.comments = FALSE)

Arguments

id

id of the expression of interest

pd

The parse-data information

include.self

Should the root node (id) be included?

ngenerations

Number of generations to go forwards or backwards.

...

currently ignored.

include.doc.comments

include associated documentation comments.

include.regular.comments

include associated regular comments.

Value

a subset of the parse-data pd.