ezr.make_ids: Title Create RowID by variables or for each row

Description Usage Arguments Value

Description

Get an ID for each row or for each combination of values across columns.

Usage

1
2
ezr.make_ids(dataset, unique_by_row = TRUE, grouping_fields = NULL,
  id_field_name = "myid")

Arguments

dataset

dataset

unique_by_row

TRUE by default. Each record will be numbered 1...nrow(dataset)

grouping_fields

Set unique_by_row to FALSE. This creates a group-by-variable ID

id_field_name

What should the new column be called. Default is 'myid'

Value

Returns a dataframe with ID added.


jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.