structure_index_map: Set the structure of an index map

View source: R/named_triplet.R

structure_index_mapR Documentation

Set the structure of an index map

Description

Index maps must be a data frame with one integer column and one character string column. This function verifies the structure and ensures that the integer column is first.

Usage

structure_index_map(index_map)

Arguments

index_map

The index map data frame to be structured.

Details

This is a non-exported function meant only for internal use.

Value

A data frame with an integer column as the first column and a character string column as the second column.


MatthewHeun/matsbyname documentation built on Jan. 21, 2025, 9:51 p.m.