{"action":"closed","issue":{"url":"https://api.github.com/repos/mplatzer/BTYDplus/issues/58","repository_url":"https://api.github.com/repos/mplatzer/BTYDplus","labels_url":"https://api.github.com/repos/mplatzer/BTYDplus/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/mplatzer/BTYDplus/issues/58/comments","events_url":"https://api.github.com/repos/mplatzer/BTYDplus/issues/58/events","html_url":"https://github.com/mplatzer/BTYDplus/issues/58","id":243053975,"number":58,"title":"Throw error for empty data frame?","user":{"login":"JakeRuss","id":777651,"avatar_url":"https://avatars3.githubusercontent.com/u/777651?v=4","gravatar_id":"","url":"https://api.github.com/users/JakeRuss","html_url":"https://github.com/JakeRuss","followers_url":"https://api.github.com/users/JakeRuss/followers","following_url":"https://api.github.com/users/JakeRuss/following{/other_user}","gists_url":"https://api.github.com/users/JakeRuss/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeRuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeRuss/subscriptions","organizations_url":"https://api.github.com/users/JakeRuss/orgs","repos_url":"https://api.github.com/users/JakeRuss/repos","events_url":"https://api.github.com/users/JakeRuss/events{/privacy}","received_events_url":"https://api.github.com/users/JakeRuss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-14T17:01:06Z","updated_at":"2018-03-18T08:09:02Z","closed_at":"2018-03-18T08:09:02Z","author_association":"CONTRIBUTOR","body":"I recently encountered the following error message, *Error:_ T.tot >= min(elog$date) is not TRUE*, which led me to investigate whether my dates were correct inside of a list of data frames. Finally, I made the connection that some of my data frames were empty, which prompted the message.\r\n\r\nIt might be worth adding a check for whether the supplied data frame is empty, and give a more informative error message. Do you agree? If so, I'll file a pull request.\r\n\r\n```\r\nlibrary(BTYDplus)\r\ndf <- data.frame(cust = character(), date = as.Date(character()))\r\nelog2cbs(df)\r\n```"}}
{"actor":{"display_login":"mplatzer"}}