Skip to contents

add_point_type_counts() will add columns to the input dataframe with the counts of every point_type for each hy_id/cs_id in the input dataframe of classified cross section points (output of classify_pts())

Usage

add_point_type_counts(classified_pts, crosswalk_id = NULL)

Arguments

classified_pts

dataframe or sf dataframe, cross section points with a "hy_id", and "cs_id" columns as well as a 'point_type' column containing the values: "bottom", "left_bank", "right_bank", and "channel"

crosswalk_id

character, ID column

Value

dataframe or sf dataframe with "<point_type>_count" columns added