Skip to contents

Converts a character vector to an `sf_vec`-backed stringfish vector `convert_to_sf()` is a compatibility alias for `convert_to_sf_vector()`.

Usage

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

Arguments

x

A character vector

length.out

Optional output length used to recycle `x`

Value

The converted character vector

Details

Converts a character vector to a stringfish vector backed by `sf_vec`. If `length.out` is supplied, `x` is recycled to that length before conversion. The opposite of `materialize`.

Examples

x <- convert_to_sf_vector(letters)