{"action":"opened","issue":{"url":"https://api.github.com/repos/leppott/BCGcalc/issues/13","repository_url":"https://api.github.com/repos/leppott/BCGcalc","labels_url":"https://api.github.com/repos/leppott/BCGcalc/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/leppott/BCGcalc/issues/13/comments","events_url":"https://api.github.com/repos/leppott/BCGcalc/issues/13/events","html_url":"https://github.com/leppott/BCGcalc/issues/13","id":349204852,"node_id":"MDU6SXNzdWUzNDkyMDQ4NTI=","number":13,"title":"metric.values - required fields (more than described in help)","user":{"login":"leppott","id":24276278,"node_id":"MDQ6VXNlcjI0Mjc2Mjc4","avatar_url":"https://avatars2.githubusercontent.com/u/24276278?v=4","gravatar_id":"","url":"https://api.github.com/users/leppott","html_url":"https://github.com/leppott","followers_url":"https://api.github.com/users/leppott/followers","following_url":"https://api.github.com/users/leppott/following{/other_user}","gists_url":"https://api.github.com/users/leppott/gists{/gist_id}","starred_url":"https://api.github.com/users/leppott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leppott/subscriptions","organizations_url":"https://api.github.com/users/leppott/orgs","repos_url":"https://api.github.com/users/leppott/repos","events_url":"https://api.github.com/users/leppott/events{/privacy}","received_events_url":"https://api.github.com/users/leppott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-09T16:39:28Z","updated_at":"2018-08-09T16:39:28Z","closed_at":null,"author_association":"OWNER","body":"**Describe the bug**\r\nThe function metric.values doesn't work unless have more fields than specified in help file.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Use only the columns specified in the help file as your data input for metric.values.\r\n\r\ncol.help <- c(\"SAMPLEID, \"TAXAID\", \"N_TAXA\", \"EXCLUDE\", \"SITE_TYPE\", \"NONTARGET\", \"PHYLUM\", \"CLASS\", \"ORDER\", \"FAMILY\", \"SUBFAMILY\", \"GENUS\", \"FFG\", \"HABIT\", \"LIFE_CYCLE\", \"TOLVAL\", \"BCG_ATTR\")\r\n\r\n2. Will keep getting errors about missing fields until add the following.\r\n\r\ncol.needed <- c(\"INDEX_NAME\", \"SITE_TYPE\", \"THERMAL_INDICATOR\",  \"SUBPHYLUM\", \"TRIBE\").\r\n\r\n\r\n**Expected behavior**\r\nWould be beneficial to:\r\n\r\n1. check for all required fields in the function and return an error code if missing.\r\n\r\n2. Have all required fields stated in the help file.\r\n\r\n**Screenshots**\r\n![image](https://user-images.githubusercontent.com/24276278/43912736-1b10bf40-9bd1-11e8-8719-e7d52bed3d67.png)\r\n\r\n\r\n**Desktop (please complete the following information):**\r\n![image](https://user-images.githubusercontent.com/24276278/43912775-38503edc-9bd1-11e8-92fd-186a37b3889c.png)\r\n\r\n"}}
{"actor":{"display_login":"leppott"}}