Description Usage Arguments Details Value Examples
Shortcut-loaded convenience wrapper around cols
.
1 |
... |
All arguments are passed to |
The following list of shortcuts can be supplied as character strings
in place of readr col_*
or parse_*
functions:
l, lgl, logical
i, int, integer
d, dbl, double
c, chr, character
D, date
T, dt, dttm, datetime, POSIXct
f, fct, factor
n, num, number
?, gss, guess
_, -, skip
Column specification
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## readr package must be installed
if (requireNamespace("readr"), quietly = TRUE) {
## create column specification
readr_cols(
.default = "?",
id = "chr",
is_good = "lgl",
day = "date",
timestamp = readr::col_datetime(format = "%m-%y-%d %H:%M:%S"),
count = "integer",
misc = "_"
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.