-
Notifications
You must be signed in to change notification settings - Fork 290
Closed
Labels
Description
I'm learning the hard way that readr::type_convert() no longer takes column specifications as a character string, like cccnnn. Apparently I do this in googlesheets examples, tests, etc. Is there a specific reason to require the long form in type_convert()? If I have to workaround this myself, is there a better way than what I've got here? This looks a bit nutty.
x <- "cccnnn"
do.call(readr::cols, as.list(strsplit(x, "")[[1]]))
#> cols(
#> = col_character(),
#> = col_character(),
#> = col_character(),
#> = col_number(),
#> = col_number(),
#> = col_number()
#> )Reactions are currently unavailable