text_snippet: retrieving text snippet

Description Usage Arguments Functions

View source: R/text_snippet.R

Description

function will give back snippets of text via using length, length and from, length and to, or from and to to specify the snippet

Usage

1
text_snippet(x, length = max(nchar(x)), from = NULL, to = NULL, coll = FALSE)

Arguments

x

character vector to be snipped

length

length of snippet

from

starting character

to

last character

coll

should a possible vector x with length > 1 collapsed with newline character as separator?

Functions


stringb documentation built on Jan. 26, 2021, 1:07 a.m.