Returns an lvec of the same type as x. When x is
already and lvec, x is returned. For character vectors the
maximum length of the lvec is set to the maximum length found
in x.
Arguments
x
the object to convert. This can be a vector of type
character, integer, numeric or logical.