I have csv files with over 10000 variables in them. I want to use vroom to read them in, and want to identify column 1 as a date, column 2 as character, columns 3 and 4 as integer, and all the rest of the columns as double. How do I do this?
My code looks like this, but fails.
data81 <- vroom(fname_1981_2010, col_types = c(Date = col_date(), MonthDay = col_character(), doy = col_integer(), (.) = col_double()))
What is the syntax to tell vroom to read in the rest of the columns as double (replacing the (.) in my code? Thank you.
The could be achieved via the
.default
argument ofcols()
: