dstrace_chunks: A simplified dstrace which simply finds the chunks which are...

View source: R/dstrace.R

dstrace_chunksR Documentation

A simplified dstrace which simply finds the chunks which are precursors recursively.

Description

The algorithm is performing a depth first search where chunks are "nodes" and data objects are "verticies" connecting them.

Usage

dstrace_chunks(chunk_names, gcam_data_map, prev_trace_list = c())

Arguments

chunk_names

A list of chunks to find the precursors for.

gcam_data_map

A tibble of metadata information; normally a built-in package dataset.

prev_trace_list

The list of chunks already found.

Value

The unique list of chunk names which are precursors for chunk_names.


JGCRI/gcamdata documentation built on March 21, 2023, 2:19 a.m.