Learn R Programming

poldis (version 0.1.2)

split_text: Split texts

Description

Split texts into structured lists of lists according to a split sign.

Usage

split_text(v, splitsign = "\\.")

Value

A list of lists the same length as vector.

Arguments

v

Text vector or annotated data frame.

splitsign

Where do you want to split? By default sentences ("."). This can also be words, signals or other markers you want. For special characters, please use escape sign before (i.e. "\").

Examples

Run this code
# \donttest{
split_text("This is the first sentence. This is the second sentence.")
# }

Run the code above in your browser using DataLab