View source: R/utils_file_io.R
col_types | R Documentation |
Given various inputs, provide a col_type specification in the format indicated by outtype
col_types(
x,
outtype = c("chr", "hud", "fun", "typ", "col")[1],
is_raw_column = TRUE
)
x |
|
outtype |
|
is_raw_column |
Is x a raw column input and the |
See outtype
Other file IO:
dep_read()
,
dep_write()
,
dir_fn()
,
dirs
,
ext()
,
file_fn()
,
is_filepath()
,
last_updated()
,
list.files2()
,
load_obj()
,
make_names()
,
mkpath()
,
move_files_to_folder()
,
needs_update()
,
object_fn()
,
object_write()
,
package_size()
,
write_dir_fn()
,
write_lines()
glue::glue_collapse(purrr::map_chr(iris, col_types))
## Not run:
# only run if readr is installed, otherwise will throw error
purrr::map(iris, col_types, outtype = "col")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.