generate_preset_fieldtree: Generate Preset Fieldtree

View source: R/generate_preset_fieldtree.R

generate_preset_fieldtreeR Documentation

Generate Preset Fieldtree

Description

Initialize a fltquery object with available tree objects.

Usage

generate_preset_fieldtree(qry)

Arguments

qry

A fltquery object generated by flt_query

Details

This function will take the existing tree available in the object and attempt to generate a fieldtree based on the available root paths in the object. Typically this woule be the first call after initializing a fltquery object, as calls to update_fieldtree or select may not even work until a minimal fieldtree is available.

Value

A FltQuery object updated with fieldtree paths for use downstream.

Examples

## Not run: 
conn <- connect("joe.bloggs", "mypassword")
qry <- flt_query(conn, "my-ems", data_file = "metadata.db")
qry <- generate_preset_fieldtree(qry)

## End(Not run)


ge-flight-analytics/Rems documentation built on May 17, 2023, 8:02 a.m.