position_of_string: Position of strings

Description Usage Arguments Value

View source: R/positions_of_strings.R

Description

Position of strings

Usage

1
2
3
position_of_string(tex_line_split, command_split, end = TRUE)

positions_of_all_strings(tex_line, command_name, end = TRUE)

Arguments

tex_line_split

A split line (via strsplit(x, split = "")).

command_split

The string the position of which is desired, split (via strsplit(x, split = "")).

end

(logical) Should the position of the end of the string. By default, TRUE; otherwise, the start of the string is chosen.

tex_line

A line of text.

command_name

The string the position of which is desired.

Value

The end (or start if end = FALSE) of the location of command


TeXCheckR documentation built on Nov. 17, 2020, 9:08 a.m.