Skip to contents

Get the types of each column in a data frame

Usage

df_types(df)

Arguments

df

A data frame

Examples

dplyr::tibble(
   int = 1:10,
   chr = letters[1:10],
   date = rep(Sys.Date()), nrow(int)) |>
df_types()
#> # A tibble: 3 × 3
#>   col_name col_type  n_miss
#>   <chr>    <chr>      <int>
#> 1 int      integer        0
#> 2 chr      character      0
#> 3 date     date           0