| sf_vector {stringfish} | R Documentation |
Creates a new stringfish vector
sf_vector(len)
len |
length of the new vector |
This function creates a new stringfish vector, an alt-rep character vector backed by a C++ "std::vector" as the internal memory representation. The vector type is "sfstring", which is a simple C++ class containing a "std::string" and a single byte (uint8_t) representing the encoding.
A new (empty) stringfish vector
x <- sf_vector(10) sf_assign(x, 1, "hello world") sf_assign(x, 2, "another string")