Following is legit, because consolidating data frames in R has not the answer, nor has How to make a great R reproducible example? .
I have a dataset splitted in multiple csv files without headers. For a single import, I use:
X <- read_delim( ... ,
... ,
col_types = col( X1 = "c" ,
... ,
X100 = "i" )
)
To import all, I simply repeat the above.
I'd like to shorten the code, though.
Is it possible to supply the column definitions for col() to the read_delim by only defining it once? I've tried to supply a c=() list, but it doesn't work.