Function analyses content of a factor vector and attempts to guess the correct type.

guess_vector_type(x)

Arguments

x

A vector of factor class.

Value

A scalar string with class name.

Acknowledgements

The initial version of this function was posted and discussed on StackOverflow.