Skip to contents

This function renumbers cross section IDs in a dataframe to ensure each crosswalk_id has cross sections numbered from 1 to the total number of cross sections on the crosswalk_id.

Usage

renumber_cs_ids(df, crosswalk_id = NULL)

Arguments

df

A dataframe containing crosswalk_id and cs_id columns.

crosswalk_id

crosswalk_id character, name of primary ID column

Value

The input dataframe with renumbered cs_id values.