Learn R Programming

stringfish (version 0.19.2)

get_string_type: get_string_type

Description

Returns the type of the character vector

Usage

get_string_type(x)

Value

The type of vector

Arguments

x

the vector

Details

A function that returns the type of character vector. Possible values are "normal vector", "stringfish vector", "stringfish vector (materialized)", "stringfish slice store", "stringfish slice store (materialized)" or "other alt-rep vector"

Examples

Run this code
x <- sf_vector(10)
get_string_type(x) # returns "stringfish vector"
x <- character(10)
get_string_type(x) # returns "normal vector"

Run the code above in your browser using DataLab