col_classes: Table column classes

Description Usage Examples

View source: R/misc.R

Description

Returns a tibble containing the class of each column in a given table. Works for in-memory and database tables.

Usage

1

Examples

1
2
3
4
5
6
col_classes(day_metrics())
#> # A tibble: 2 x 7
#> id      source_name source_id metric_type metric_date value   created_at
#> <chr>   <chr>       <chr>     <chr>       <chr>       <chr>   <chr>
#> 1 integer integer     character integer     POSIXct     numeric character
#> 2 integer integer     character integer     POSIXt      numeric character

gmega/playaxdata documentation built on April 4, 2021, 5:21 a.m.