{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-R/mda.streams/pulls/comments/31566999","id":31566999,"diff_hunk":"@@ -0,0 +1,36 @@\n+#' Pull the latitude and longitude of a site from ScienceBase\n+#' \n+#' @import dplyr\n+#' @importFrom dataRetrieval readNWISsite\n+#' @param site_names a list of site names such as those returned from \n+#'   make_site_name()\n+#' @param format character specifying the desired output format. normal is a \n+#'   human-readable, dplyr-friendly format. geoknife works well for geoknife and\n+#'   excludes sites with incomplete coordinate data.\n+#' @return a data.frame of\n+#' @export\n+#' @examples \n+#' # middle site has missing coords:\n+#' find_site_coords(c(\"nwis_01467200\",\"nwis_09327000\",\"nwis_351111089512501\")) \n+#' find_site_coords(c(\"nwis_01467200\",\"nwis_09327000\",\"nwis_351111089512501\"), format=\"geoknife\")\n+find_site_coords <- function(site_names, format=c(\"normal\",\"geoknife\")) {","path":"R/find_site_coords.R","position":16,"original_position":16,"commit_id":"f05f4eaf49db6bb031925f0a74d6505a09a4072e","original_commit_id":"ea8ec30c55e45d3c5c7bd83364bb94135abf5cf6","user":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"body":"you sure did miss something! gotta stay on your toes around here - things happen fast =)","created_at":"2015-06-02T20:26:25Z","updated_at":"2015-06-02T20:26:25Z","html_url":"https://github.com/USGS-R/mda.streams/pull/91#discussion_r31566999","pull_request_url":"https://api.github.com/repos/USGS-R/mda.streams/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/USGS-R/mda.streams/pulls/comments/31566999"},"html":{"href":"https://github.com/USGS-R/mda.streams/pull/91#discussion_r31566999"},"pull_request":{"href":"https://api.github.com/repos/USGS-R/mda.streams/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-R/mda.streams/pulls/91","id":36765597,"html_url":"https://github.com/USGS-R/mda.streams/pull/91","diff_url":"https://github.com/USGS-R/mda.streams/pull/91.diff","patch_url":"https://github.com/USGS-R/mda.streams/pull/91.patch","issue_url":"https://api.github.com/repos/USGS-R/mda.streams/issues/91","number":91,"state":"closed","locked":false,"title":"find_ functions for sites, coords","user":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-02T19:35:45Z","updated_at":"2015-06-02T20:26:25Z","closed_at":"2015-06-02T20:10:27Z","merged_at":"2015-06-02T20:10:27Z","merge_commit_sha":"e12e1f0786da8bf0306540c280d9accf07d250ad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/USGS-R/mda.streams/pulls/91/commits","review_comments_url":"https://api.github.com/repos/USGS-R/mda.streams/pulls/91/comments","review_comment_url":"https://api.github.com/repos/USGS-R/mda.streams/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-R/mda.streams/issues/91/comments","statuses_url":"https://api.github.com/repos/USGS-R/mda.streams/statuses/f05f4eaf49db6bb031925f0a74d6505a09a4072e","head":{"label":"aappling-usgs:master","ref":"master","sha":"f05f4eaf49db6bb031925f0a74d6505a09a4072e","user":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"repo":{"id":34286355,"name":"mda.streams","full_name":"aappling-usgs/mda.streams","owner":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aappling-usgs/mda.streams","description":"backend tools for powstreams","fork":true,"url":"https://api.github.com/repos/aappling-usgs/mda.streams","forks_url":"https://api.github.com/repos/aappling-usgs/mda.streams/forks","keys_url":"https://api.github.com/repos/aappling-usgs/mda.streams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aappling-usgs/mda.streams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aappling-usgs/mda.streams/teams","hooks_url":"https://api.github.com/repos/aappling-usgs/mda.streams/hooks","issue_events_url":"https://api.github.com/repos/aappling-usgs/mda.streams/issues/events{/number}","events_url":"https://api.github.com/repos/aappling-usgs/mda.streams/events","assignees_url":"https://api.github.com/repos/aappling-usgs/mda.streams/assignees{/user}","branches_url":"https://api.github.com/repos/aappling-usgs/mda.streams/branches{/branch}","tags_url":"https://api.github.com/repos/aappling-usgs/mda.streams/tags","blobs_url":"https://api.github.com/repos/aappling-usgs/mda.streams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aappling-usgs/mda.streams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aappling-usgs/mda.streams/git/refs{/sha}","trees_url":"https://api.github.com/repos/aappling-usgs/mda.streams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aappling-usgs/mda.streams/statuses/{sha}","languages_url":"https://api.github.com/repos/aappling-usgs/mda.streams/languages","stargazers_url":"https://api.github.com/repos/aappling-usgs/mda.streams/stargazers","contributors_url":"https://api.github.com/repos/aappling-usgs/mda.streams/contributors","subscribers_url":"https://api.github.com/repos/aappling-usgs/mda.streams/subscribers","subscription_url":"https://api.github.com/repos/aappling-usgs/mda.streams/subscription","commits_url":"https://api.github.com/repos/aappling-usgs/mda.streams/commits{/sha}","git_commits_url":"https://api.github.com/repos/aappling-usgs/mda.streams/git/commits{/sha}","comments_url":"https://api.github.com/repos/aappling-usgs/mda.streams/comments{/number}","issue_comment_url":"https://api.github.com/repos/aappling-usgs/mda.streams/issues/comments{/number}","contents_url":"https://api.github.com/repos/aappling-usgs/mda.streams/contents/{+path}","compare_url":"https://api.github.com/repos/aappling-usgs/mda.streams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aappling-usgs/mda.streams/merges","archive_url":"https://api.github.com/repos/aappling-usgs/mda.streams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aappling-usgs/mda.streams/downloads","issues_url":"https://api.github.com/repos/aappling-usgs/mda.streams/issues{/number}","pulls_url":"https://api.github.com/repos/aappling-usgs/mda.streams/pulls{/number}","milestones_url":"https://api.github.com/repos/aappling-usgs/mda.streams/milestones{/number}","notifications_url":"https://api.github.com/repos/aappling-usgs/mda.streams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aappling-usgs/mda.streams/labels{/name}","releases_url":"https://api.github.com/repos/aappling-usgs/mda.streams/releases{/id}","created_at":"2015-04-20T21:03:55Z","updated_at":"2015-04-28T20:54:13Z","pushed_at":"2015-06-02T20:02:39Z","git_url":"git://github.com/aappling-usgs/mda.streams.git","ssh_url":"git@github.com:aappling-usgs/mda.streams.git","clone_url":"https://github.com/aappling-usgs/mda.streams.git","svn_url":"https://github.com/aappling-usgs/mda.streams","homepage":null,"size":350,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"USGS-R:master","ref":"master","sha":"caf19dbbbb58b3a31adf137f47223002b56b5a01","user":{"login":"USGS-R","id":3188813,"avatar_url":"https://avatars.githubusercontent.com/u/3188813?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-R","html_url":"https://github.com/USGS-R","followers_url":"https://api.github.com/users/USGS-R/followers","following_url":"https://api.github.com/users/USGS-R/following{/other_user}","gists_url":"https://api.github.com/users/USGS-R/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-R/subscriptions","organizations_url":"https://api.github.com/users/USGS-R/orgs","repos_url":"https://api.github.com/users/USGS-R/repos","events_url":"https://api.github.com/users/USGS-R/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-R/received_events","type":"Organization","site_admin":false},"repo":{"id":27729134,"name":"mda.streams","full_name":"USGS-R/mda.streams","owner":{"login":"USGS-R","id":3188813,"avatar_url":"https://avatars.githubusercontent.com/u/3188813?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-R","html_url":"https://github.com/USGS-R","followers_url":"https://api.github.com/users/USGS-R/followers","following_url":"https://api.github.com/users/USGS-R/following{/other_user}","gists_url":"https://api.github.com/users/USGS-R/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-R/subscriptions","organizations_url":"https://api.github.com/users/USGS-R/orgs","repos_url":"https://api.github.com/users/USGS-R/repos","events_url":"https://api.github.com/users/USGS-R/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-R/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-R/mda.streams","description":"backend tools for powstreams","fork":false,"url":"https://api.github.com/repos/USGS-R/mda.streams","forks_url":"https://api.github.com/repos/USGS-R/mda.streams/forks","keys_url":"https://api.github.com/repos/USGS-R/mda.streams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-R/mda.streams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-R/mda.streams/teams","hooks_url":"https://api.github.com/repos/USGS-R/mda.streams/hooks","issue_events_url":"https://api.github.com/repos/USGS-R/mda.streams/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-R/mda.streams/events","assignees_url":"https://api.github.com/repos/USGS-R/mda.streams/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-R/mda.streams/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-R/mda.streams/tags","blobs_url":"https://api.github.com/repos/USGS-R/mda.streams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-R/mda.streams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-R/mda.streams/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-R/mda.streams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-R/mda.streams/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-R/mda.streams/languages","stargazers_url":"https://api.github.com/repos/USGS-R/mda.streams/stargazers","contributors_url":"https://api.github.com/repos/USGS-R/mda.streams/contributors","subscribers_url":"https://api.github.com/repos/USGS-R/mda.streams/subscribers","subscription_url":"https://api.github.com/repos/USGS-R/mda.streams/subscription","commits_url":"https://api.github.com/repos/USGS-R/mda.streams/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-R/mda.streams/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-R/mda.streams/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-R/mda.streams/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-R/mda.streams/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-R/mda.streams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-R/mda.streams/merges","archive_url":"https://api.github.com/repos/USGS-R/mda.streams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-R/mda.streams/downloads","issues_url":"https://api.github.com/repos/USGS-R/mda.streams/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-R/mda.streams/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-R/mda.streams/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-R/mda.streams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-R/mda.streams/labels{/name}","releases_url":"https://api.github.com/repos/USGS-R/mda.streams/releases{/id}","created_at":"2014-12-08T18:40:49Z","updated_at":"2015-04-28T20:49:48Z","pushed_at":"2015-06-02T20:10:27Z","git_url":"git://github.com/USGS-R/mda.streams.git","ssh_url":"git@github.com:USGS-R/mda.streams.git","clone_url":"https://github.com/USGS-R/mda.streams.git","svn_url":"https://github.com/USGS-R/mda.streams","homepage":null,"size":966,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":15,"forks":6,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-R/mda.streams/pulls/91"},"html":{"href":"https://github.com/USGS-R/mda.streams/pull/91"},"issue":{"href":"https://api.github.com/repos/USGS-R/mda.streams/issues/91"},"comments":{"href":"https://api.github.com/repos/USGS-R/mda.streams/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-R/mda.streams/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-R/mda.streams/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-R/mda.streams/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-R/mda.streams/statuses/f05f4eaf49db6bb031925f0a74d6505a09a4072e"}}}}