Guess the type of a vector
guess_type( x, na = c("", "NA"), locale = default_locale(), guess_integer = FALSE )
x | Character vector of values to parse. |
---|---|
na | Character vector of strings to interpret as missing values. Set this
option to |
locale | The locale controls defaults that vary from place to place.
The default locale is US-centric (like R), but you can use
|
guess_integer | If |
#> <collector_logical>#> <collector_double>#> <collector_double># Numbers containing grouping mark guess_type("1,234,566")#> <collector_number>#> <collector_date>#> <collector_datetime>#> <collector_time>