sf_match {stringfish}R Documentation

sf_match

Description

Returns a vector of the positions of x in table

Usage

sf_match(x, table)

Arguments

x

A character vector to search for in table

table

A character vector to be matched against x

Details

Note: similarly to the base R function, long "table" vectors are not supported. This is due to the maximum integer value that can be returned ('.Machine$integer.max')

Value

An integer vector of the indicies of each x element's position in table

See Also

match

Examples

sf_match("c", letters)

[Package stringfish version 0.13.2 Index]