infer_dtype | R Documentation |
infer variable data type
infer_dtype(x, gsub_pattern = "<|>", n_un_lim = 5, n_un_perc_lim = 10)
x |
variable of interest |
gsub_pattern |
regex for str to remove (e.g., '<|>') |
n_un_lim |
number of unique values in x to define numeric (see details) |
n_un_perc_lim |
fraction of unique values in x to define numeric (see details) |
dtype inferred is one of num, str, logic, x should be free of na or non-informative values (see fct .rm_na). Parameters n_un_lim and n_un_frac_lim define absolute and fraction of unique values, respectively, to define x as numeric. This is to exclude categorical values from being defined as numeric (e.g., x levels of low medium high).
data type as string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.