powered by
Provide a method for this generic to control how your vector type is printed. The default method uses the first element of the class vector. Override this method if your class has parameters that should be prominently displayed.
vec_type_string(x)
A vector.
A string.
# NOT RUN { cat(vec_type_string(1:10)) cat(vec_type_string(iris)) # }
Run the code above in your browser using DataLab