Learn R Programming

stringfish (version 0.19.2)

convert_to_slice_store: convert_to_slice_store

Description

Converts a character vector to a slice-store-backed stringfish vector

Usage

convert_to_slice_store(x, length.out = length(x))

Value

The converted character vector

Arguments

x

A character vector

length.out

Optional output length used to recycle `x`

Details

Converts a character vector to a stringfish vector backed by `slice_store`. If `length.out` is supplied, `x` is recycled to that length before conversion. The converter pre-sizes the first `slice_store` slice from the normalized string bytes when possible. The opposite of `materialize`.

Examples

Run this code
x <- convert_to_slice_store(letters)

Run the code above in your browser using DataLab