{"action":"created","issue":{"url":"https://api.github.com/repos/USGS-R/smwrBase/issues/9","labels_url":"https://api.github.com/repos/USGS-R/smwrBase/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/USGS-R/smwrBase/issues/9/comments","events_url":"https://api.github.com/repos/USGS-R/smwrBase/issues/9/events","html_url":"https://github.com/USGS-R/smwrBase/issues/9","id":120837184,"number":9,"title":"regularSeries, ","user":{"login":"jharcum","id":13320765,"avatar_url":"https://avatars.githubusercontent.com/u/13320765?v=3","gravatar_id":"","url":"https://api.github.com/users/jharcum","html_url":"https://github.com/jharcum","followers_url":"https://api.github.com/users/jharcum/followers","following_url":"https://api.github.com/users/jharcum/following{/other_user}","gists_url":"https://api.github.com/users/jharcum/gists{/gist_id}","starred_url":"https://api.github.com/users/jharcum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharcum/subscriptions","organizations_url":"https://api.github.com/users/jharcum/orgs","repos_url":"https://api.github.com/users/jharcum/repos","events_url":"https://api.github.com/users/jharcum/events{/privacy}","received_events_url":"https://api.github.com/users/jharcum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T18:28:42Z","updated_at":"2015-12-07T22:01:38Z","closed_at":null,"body":"regularSeries seems to fail when times has a mixture of EDT and EST data and the variable tzone is computed internally as a vector rather than a single value. (\r\n\r\n\r\n> times <- as.POSIXlt(ct1$date)\r\n> times\r\n  [1] \"1999-03-17 EST\" \"1999-04-27 EDT\" \"1999-05-11 EDT\" \"1999-05-25 EDT\" \"1999-06-08 EDT\" \"1999-07-07 EDT\"\r\n  [7] \"1999-07-20 EDT\" \"1999-08-04 EDT\" \"1999-08-17 EDT\" \"1999-09-21 EDT\" \"1999-10-06 EDT\" \"2000-03-14 EST\"\r\n...[removed for brevity]...\r\n [43] \"2002-07-30 EDT\" \"2002-08-13 EDT\" \"2002-08-27 EDT\" \"2002-09-17 EDT\" \"2002-10-15 EDT\" \"2003-03-11 EST\"\r\n...[removed for brevity]...\r\n [73] \"2005-04-05 EDT\" \"2005-04-19 EDT\" \"2005-05-11 EDT\" \"2005-05-25 EDT\" \"2005-06-14 EDT\" \"2005-06-28 EDT\"\r\n [79] \"2005-07-12 EDT\" \"2005-07-26 EDT\" \"2005-08-09 EDT\" \"2005-08-24 EDT\" \"2005-09-13 EDT\" \"2006-03-08 EST\"\r\n [85] \"2006-04-06 EDT\" \"2006-04-18 EDT\" \"2006-05-09 EDT\" \"2006-05-23 EDT\" \"2006-06-06 EDT\" \"2006-06-20 EDT\"\r\n...[removed for brevity]...\r\n[169] \"2013-09-17 EDT\" \"2013-10-14 EDT\" \"2014-05-13 EDT\" \"2014-06-03 EDT\" \"2014-07-08 EDT\"\r\n\r\n> tzone <- attr(times, \"tzone\")\r\n> tzone\r\n[1] \"America/New_York\" \"EST\"              \"EDT\"  \r\n\r\nIn the above example if I throw in a \r\ntzone <- tzone[1]\r\nthe rest of the code works fine.\r\n\r\nJon\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/USGS-R/smwrBase/issues/comments/162679502","html_url":"https://github.com/USGS-R/smwrBase/issues/9#issuecomment-162679502","issue_url":"https://api.github.com/repos/USGS-R/smwrBase/issues/9","id":162679502,"user":{"login":"jharcum","id":13320765,"avatar_url":"https://avatars.githubusercontent.com/u/13320765?v=3","gravatar_id":"","url":"https://api.github.com/users/jharcum","html_url":"https://github.com/jharcum","followers_url":"https://api.github.com/users/jharcum/followers","following_url":"https://api.github.com/users/jharcum/following{/other_user}","gists_url":"https://api.github.com/users/jharcum/gists{/gist_id}","starred_url":"https://api.github.com/users/jharcum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharcum/subscriptions","organizations_url":"https://api.github.com/users/jharcum/orgs","repos_url":"https://api.github.com/users/jharcum/repos","events_url":"https://api.github.com/users/jharcum/events{/privacy}","received_events_url":"https://api.github.com/users/jharcum/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T22:01:38Z","updated_at":"2015-12-07T22:01:38Z","body":"\r\n... so the tzone <-attr(times, \"tzone\") is the culprit"}}