ADAPTED FROM GCAMREPORT (https://github.com/bc3LC/gcamreport) A restrictive version of left_join that ensures that all keys in the left dataset have corresponding matches in the right dataset. If any rows in the left dataset do not have matching keys in the right dataset, the function will throw an error.

left_join_strict(left_df, right_df, by = NULL)

Arguments

left_df

A data frame. The left dataset in the join.

right_df

A data frame. The right dataset in the join.

by

A character vector of variables to join by. If `NULL`, the function will use all common variables.

Value

A data frame resulting from the left join. If any rows in `left_df` do not have matching keys in `right_df`, an error is thrown.