map_ansi_to_raw1: Map ANSI string positions to raw positions

Description Usage Arguments Value

View source: R/map.R

Description

map_raw_to_ansi1() does the opposite convertion, from raw positions to ANSI positions.

Usage

1
map_ansi_to_raw1(map, ansi)

Arguments

map

The map matrix, created with make_ansi_map1().

ansi

An integer or numeric scalar, the ANSI position to convert.

Value

A numeric scalar, the raw position corresponding to the ANSI position ansi.


r-lib/ansistrings documentation built on March 7, 2020, 10:13 p.m.