add_ids: Adds an id column to a given variable.

Description Usage Arguments

View source: R/add_ids.R

Description

Adds an id column to a given variable.

Usage

1
add_ids(df, idname = "id")

Arguments

df

dataframe. The data to add an id var to.

idname

character. The name of the variable in the dataframe you want to be the id column.


peterhurford/surveytools2 documentation built on Feb. 18, 2021, 9:13 p.m.