> On Jul 20, 2018, at 11:58 AM, Rich Shepard <rshep...@appl-ecosys.com> wrote: > > On Fri, 20 Jul 2018, William Dunlap wrote: > >> The problem occurs because no commonly used format works on all your date >> strings. If you give as.POSIXlt the format you want to use then items that >> don't match the format will be treated as NA's. Use is.na() to find them. > > Bill, > > No NAs found using both is.na() and scrolling through the source file. > That's why I asked for help: I saw nothing different in the dates or times. > > Regards, > > Rich
I don't think you read Bill's message properly. He was not saying that there were NA's; he was telling you to use a format specification in your as.POSIXct call and the the result of that call would have NA's. wy2016$dt_time <- with( wy2016, as.POSIXct( paste( date, time ) , format= "%Y-%m-%d %H:%M") ) David. > > ______________________________________________ > R-help@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. David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.' -Gehm's Corollary to Clarke's Third Law ______________________________________________ R-help@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.