str_split_fixed {stringstatic} | R Documentation |
Split up a string into pieces
Description
Dependency-free drop-in alternative for stringr::str_split_fixed()
.
Usage
str_split_fixed(string, pattern, n)
Arguments
string |
Input vector. Either a character vector, or something coercible to one. |
pattern |
Pattern to look for. The default interpretation is a regular expression,
as described in base::regex.
Control options with Match a fixed string (i.e. by comparing only bytes), using |
n |
Maximum number of pieces to return.
This determines the number of columns in the output;
if an input is too short, the result will be padded with |
Value
A character matrix with n
columns and
the same number of rows as the length of string
/pattern
.
Author(s)
Eli Pousson eli.pousson@gmail.com (ORCID)
Alexander Rossell Hayes alexander@rossellhayes.com (ORCID)
Source
Adapted from the stringr package.
[Package stringstatic version 0.1.2 Index]