camr_make_index: Create Numerical Index for Variable

View source: R/R04-Data_wrangling.R

camr_make_indexR Documentation

Create Numerical Index for Variable

Description

Creates a numerical index starting from 1 going to the total number of distinct entries for a variable.

Usage

camr_make_index(x, ...)

Arguments

x

A vector.

...

Additional arguments for the camr_missing function.

Value

A vector of integers starting from 1 indexing the distinct entries in the vector x.

Author(s)

Kevin Potter

Examples

camr_make_index( rep( LETTERS[1:3], each = 2 ) )


rettopnivek/camrprojects documentation built on March 26, 2024, 9:17 a.m.