position_of_string: Position of strings

Description Usage Arguments Value

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


HughParsonage/grattanReporter documentation built on May 7, 2019, 5:02 a.m.