Learn R Programming

visdat (version 0.0.7.9000)

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

Description

guess_type is used by vis_guess to guess cell elements, like fingerprint.

Usage

guess_type(x)

Arguments

x

is a vector of values you want to guess

Value

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

Examples

Run this code
# NOT RUN {
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