I have more than 70 CSV files and I am trying to merge them row-wise (they all have same columns). I tried to combine them using this code:
library(tidyverse)
library(plyr)
library(readr)
setwd("*\\data")
myfolder="test"
allfiles= list.files(path=myfolder, pattern="*.csv", full.names = T)
allfiles
combined_csv= ldply(allfiles, read.csv)
Once I run this code I get a warning message:
Warning message:
In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
EOF within quoted string
It looks like that I am losing some rows. How can I fix this?