Examples for 'readr::parse_guess'


Parse using the "best" type

Aliases: parse_guess col_guess guess_parser

Keywords:

### ** Examples

# Logical vectors
parse_guess(c("FALSE", "TRUE", "F", "T"))
[1] FALSE  TRUE FALSE  TRUE
# Integers and doubles
parse_guess(c("1", "2", "3"))
[1] 1 2 3
parse_guess(c("1.6", "2.6", "3.4"))
[1] 1.6 2.6 3.4
# Numbers containing grouping mark
guess_parser("1,234,566")
[1] "number"
parse_guess("1,234,566")
[1] 1234566
# ISO 8601 date times
guess_parser(c("2010-10-10"))
[1] "date"
parse_guess(c("2010-10-10"))
[1] "2010-10-10"

[Package readr version 2.1.2 Index]