I have a list of csv files in a specific path. I am hoping to upload all of them into one dataframe. This is the code I use:
d <-
list.files(path,pattern="*.csv", full.names = T) %>%
map_dfr(read_csv)
Trouble is that some of these columns (for example the column array_values) are strings that are then converted into numbers. I tried all sorts of ways to convert the variables but can't get it to work unless I have a much more complicated code in which I upload the files one by one, convert and then add to the larger dataframe. Would love to learn if there is a simple way to add it to the code here.
Thanks!