str_split: Split a Vector of Strings Following a Regular Structure

Description Usage Arguments See Also

Description

This function takes a vector of strings following a regular structure, and converts that vector into a data.frame, split on that delimiter. A nice wrapper to strsplit, essentially - the primary bonus is the automatic coersion to a data.frame.

Usage

1
2
  str_split(x, sep, fixed = FALSE, perl = TRUE,
    useBytes = FALSE, names = NULL)

Arguments

x

a vector of strings.

sep

the delimiter / regex you wish to split your strings on.

fixed

logical. If TRUE, we match sep exactly; otherwise, we use regular expressions. Has priority over perl.

perl

logical. Should perl-compatible regexps be used?

useBytes

logical. If TRUE, matching is done byte-by-byte rather than character-by-character.

names

optional: a vector of names to pass to the returned data.frame.

See Also

strsplit


kevinushey/SNAPR documentation built on May 20, 2019, 9:09 a.m.