[R] Locating data source error in large file

Rich Shepard r@hep@rd @end|ng |rom @pp|-eco@y@@com
Fri Jul 20 22:51:58 CEST 2018


On Fri, 20 Jul 2018, William Dunlap wrote:

> You mean each line in the file, not row in data.frame, has the form
> "year-month-day,hour:min,numericValue". Try the following, where tfile
> names your file:

Bill,

   Yes, I was looking at the data file in one emacs buffer and my R session
in another one.

   The source file was what I posted, the data.frame is different:
  head(wy2016)
         date  time    elev
1 2015-10-01 00:00 90.6689
2 2015-10-01 01:00 90.6506
3 2015-10-01 02:00 90.6719
4 2015-10-01 03:00 90.6506
5 2015-10-01 04:00 90.6597
6 2015-10-01 05:00 90.6841

   It's all fixed now and I've learned how to handle future typos from all of
you.

Thanks,

Rich




More information about the R-help mailing list