Returns the column names of a string in a delimiter-separated-value format like CSV or TSV.
See also
Other string functions:
as_chr()
,
as_comment_str()
,
as_env_var_name()
,
as_line_feed_chr()
,
as_str()
,
capitalize_first()
,
enum_str()
,
escape_lf()
,
fuse_regex()
,
prettify_nr()
,
sentenceify()
,
wrap_chr()
Examples
"https://raw.githubusercontent.com/tidyverse/readr/master/inst/extdata/mtcars.csv" |>
httr2::request() |>
httr2::req_perform() |>
httr2::resp_body_string() |>
pal::dsv_colnames()
#> [1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear" "carb"