visdat (version 0.5.3)

guess_type: (Internal) Guess the type of each individual cell in a dataframe

Description

vis_guess uses guess_type to guess cell elements, like fingerprint.

Usage

guess_type(x)

Value

a character vector that describes the suspected class. e.g., "10" is an integer, "20.11" is a double, "text" is character, etc.

Arguments

x

is a vector of values you want to guess

Examples

Run this code
if (FALSE) {
guess_type(1)

guess_type("x")

guess_type(c("1", "0L"))

purrr::map_df(iris, guess_type)
}

Run the code above in your browser using DataLab