You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find a easier way to read all columns as a character than this: header <- read_csv("file.csv", n_max = 1) read_csv("file.csv", col_types = paste0(rep("c", ncol(header)), collapse = "") )
I will be great to specify just one type for all columns like that: read_csv("file.csv", col_types = "c" )
Reacted by Jakub, Arvi Sreenivasan, Carl Boettiger, edwardlennonjr, amarchin, Mark Adamson, Vincent Brouté, nzbart, Nicholas Lewellen, Vojtech Huser and 16 more
Reacted by Brandon Hurr, thomasjwood, Andrew Martin, Carl Boettiger, Hedvig Skirgård, Calum You, S Daniel Zafar, YL and Justin Braaten
Error: not compatible with STRSXP
In addition: Warning message:
Unnamed `col_types` should have the same length as `col_names`. Using smaller of the two.
Activity
leoluyi commentedon Apr 30, 2015
Need one-for-all, auto recycled
col_typesargument setting, too!It would be very helpful when one doesn't want col type to be imputed, but to keep all the data information as character for following manipulations.
hadley commentedon Sep 22, 2015
You can now do
col_types = cols(.default = "c")leoluyi commentedon Oct 16, 2015
got this error message
(readr version 0.1.1.9000)
hadley commentedon Oct 16, 2015
@leoluyi please open a new issue