find_first_by_prefix: return the first index which contains a given prefix

Description Usage Arguments Value

Description

find_first_by_prefix does a prefix partial matching. ggbash tries to interpolate user's input by one of the following mechanism: prefix match, partial match, or precedence-based guessing.

Usage

1
2
find_first_by_prefix(prefix = "si", table = c("x", "y", "size", "shape"),
  show_warn = TRUE)

Arguments

prefix

A prefix to be searched

table

A character vector (typically aesthetic name list)

show_warn

Show warning if matched ambiguously. Default is TRUE.

Value

An integer representing index


caprice-j/ggbash documentation built on May 13, 2019, 12:11 p.m.