overlap: Flags a row as overlapping with the previous row or not.

View source: R/overlap.R

overlapR Documentation

Flags a row as overlapping with the previous row or not.

Description

overlap creates a flag indicating this row matches the previous one.

Usage

overlap(df, ...)

Arguments

df

A data frame OR data table

...

Arguments used to identify elements to check for matches

Details

This function checks to see whether elements of this row match the previous row's elements. Its output is a new variable in the data frame. The main purpose is for use in the los function.

Examples

## Not run: 
overlap(pha_longitudinal, pid, agency_new)

## End(Not run)


PHSKC-APDE/Housing documentation built on Feb. 6, 2024, 3:27 a.m.