<div dir="ltr"><div dir="ltr">Hi everyone,<div><br></div><div>Wondering if anyone has any ideas with this problem I'm having in R.</div><div><br></div><div>I have a list of 50 .csv files in a folder, all with the same structure.  I'm trying to create a loop (or use lapply) to clean each file, but I keep getting this error message: </div><div><font color="#ff0000">Error during wrapup: 'file' must be a character string or connection</font><br><div><br></div><div>Thoughts?</div><div><br></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Chris</p></div></div></div></div></div></div></div>