map_raw_to_ansi1: Map raw string positions to ANSI

Description Usage Arguments Value

View source: R/map.R

Description

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

Usage

1

Arguments

map

The map matrix, created with make_ansi_map1().

raw

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

Value

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


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