combine_parent_and_child_resultsets: Bind the records from nested parent-to-child queries

View source: R/utils-query.R

combine_parent_and_child_resultsetsR Documentation

Bind the records from nested parent-to-child queries

Description

This function accepts a data.frame with one row representing each parent record returned by a query with a corresponding list element in the list of child record results stored as tbl_df in a list.

Usage

combine_parent_and_child_resultsets(parents_df, child_df_list)

Arguments

parents_df

tbl_df; a dataset with 1 row per parent record from the query recordset, that can be joined with its corresponding child records.

child_df_list

list of tbl_df; a list of child records that is the same length as the number of rows in the parent_df.

Value

tbl_df; a data frame of parent data replicated for each child record in the corresponding list.

Note

This function is meant to be used internally. Only use when debugging.


salesforcer documentation built on March 18, 2022, 6:26 p.m.