Displays a glimpse-like summary of a WRDS table showing column names,
types, and human-readable labels, similar to dplyr::glimpse().
Arguments
- wrds
A
DBIConnectionobject returned bywrds_connect().- library
Character. The name of the library (schema).
- table
Character. The name of the table.
- n
Integer. Number of sample rows to fetch for value preview. Default is 20.
- max_cols
Integer. Maximum number of columns to display. Default is 25.
Value
Invisibly returns a list with components:
- columns
A data frame with
column_name,data_type, andlabel- description
Table description, or
NAif unavailable- nrow
Row count
- sample
A data frame with sample rows (if
n > 0)
Examples
if (FALSE) { # \dontrun{
wrds <- wrds_connect()
describe_table(wrds, "comp", "funda")
wrds_disconnect(wrds)
} # }