[R] read_csv() error I cannot find

Bill Dunlap w||||@mwdun|@p @end|ng |rom gm@||@com
Wed Nov 24 18:55:29 CET 2021


Did the 3 warnings come from three separate calls to read_csv?  If so, can
you identify which files caused the warnings?  E.g., change the likes of
   lapply(files, function(file) read_csv(file, ...))
to
   options(warn=1) # report warnings immediately
   lapply(files, function(file){ cat(file, "\n"); read_csv(file, ...)})
Then look at the first lines of those files and see if they have the
expected column names.

-Bill

On Wed, Nov 24, 2021 at 9:46 AM Rich Shepard <rshepard using appl-ecosys.com>
wrote:

> On Wed, 24 Nov 2021, Ivan Krylov wrote:
>
> > This typically happens when you leave a trailing comma at the end of a
> > list() call:
>
> Ivan,
>
> Yes. I figured that out yesterday but didn't change the draft message.
> There
> no longer are any extraneous commas in the script.
>
> Thanks,
>
> Rich
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list