R: Extract several single elements from a string.

str_elems {filesstrings} | R Documentation

## Extract several single elements from a string.

### Description

See `strex::str_elems()`.

### Usage

    str_elems(string, indices, byrow = TRUE)

    elems(string, indices, byrow = TRUE)

### Arguments

`string` | A character vector.
`indices` | A vector of integerish values. Negative indexing is allowed as in `stringr::str_sub()`.
`byrow` | Should the elements be organised in the matrix with one row per string (`byrow = TRUE`, the default) or one column per string (`byrow = FALSE`). See examples if you don't understand.

[Package filesstrings version 3.1.0 Index]