{"action":"created","issue":{"url":"https://api.github.com/repos/Ironholds/triebeard/issues/5","repository_url":"https://api.github.com/repos/Ironholds/triebeard","labels_url":"https://api.github.com/repos/Ironholds/triebeard/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Ironholds/triebeard/issues/5/comments","events_url":"https://api.github.com/repos/Ironholds/triebeard/issues/5/events","html_url":"https://github.com/Ironholds/triebeard/pull/5","id":164633723,"number":5,"title":"Add str()","user":{"login":"wrathematics","id":2561297,"avatar_url":"https://avatars.githubusercontent.com/u/2561297?v=3","gravatar_id":"","url":"https://api.github.com/users/wrathematics","html_url":"https://github.com/wrathematics","followers_url":"https://api.github.com/users/wrathematics/followers","following_url":"https://api.github.com/users/wrathematics/following{/other_user}","gists_url":"https://api.github.com/users/wrathematics/gists{/gist_id}","starred_url":"https://api.github.com/users/wrathematics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrathematics/subscriptions","organizations_url":"https://api.github.com/users/wrathematics/orgs","repos_url":"https://api.github.com/users/wrathematics/repos","events_url":"https://api.github.com/users/wrathematics/events{/privacy}","received_events_url":"https://api.github.com/users/wrathematics/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-08T23:16:11Z","updated_at":"2016-07-08T23:33:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Ironholds/triebeard/pulls/5","html_url":"https://github.com/Ironholds/triebeard/pull/5","diff_url":"https://github.com/Ironholds/triebeard/pull/5.diff","patch_url":"https://github.com/Ironholds/triebeard/pull/5.patch"},"body":"`NA`'s are still a little funny for `bool`'s (not sure how to fix this without changing it to int...) and in strings, which I have no idea how to handle; `NA_STRING` doesn't want to play nice, and I haven't looked up its internal representation to figure out what it is yet.\r\n\r\nAnyway, here's some examples:\r\n```r\r\nlibrary(triebeard)\r\ntrie <- create_trie(keys = c(\"AO\", \"AEO\", \"AAI\", \"AFT\", \"QZ\", \"RF\"),\r\n                    values = c(\"Audobon\", \"alasjkdflkasjdflkasjdflkjasldkfjalskdjflaksjdflkasjdlfkjasldkfj\", \"Ann Arbor\", \"Austin\", \"Queensland\", \"Raleigh\"))\r\n \r\nstr(trie)\r\n## string_trie\r\n##   Keys:   chr [1:6] \"AAI\" \"AEO\" \"AFT\" \"AO\" \"QZ\" \"RF\" \r\n##   Values: str [1:6] \"Ann Arbor\"  ...\r\n \r\ntrie <- create_trie(keys = c(\"AO\", \"AEO\", \"AAI\", \"AFT\", \"QZ\", \"RF\"),\r\n values = c(\"Audobon\", \"Atlanta\", \"Ann Arbor\", \"Austin\", \"Queensland\", \"Raleigh\"))\r\n \r\nstr(trie)\r\n## string_trie\r\n##   Keys:   chr [1:6] \"AAI\" \"AEO\" \"AFT\" \"AO\" \"QZ\" \"RF\" \r\n##   Values: str [1:6] \"Ann Arbor\"  \"Atlanta\"  \"Austin\"  \"Audobon\"  \"Queensland\"  ...\r\n \r\n \r\ntrie <- create_trie(keys=letters[1:4], values=c(TRUE, TRUE, FALSE, NA))\r\nstr(trie)\r\n## logical_trie\r\n##   Keys:   chr [1:4] \"a\" \"b\" \"c\" \"d\" \r\n##   Values: logi [1:4] TRUE TRUE FALSE TRUE \r\n \r\ntrie <- create_trie(keys=letters[1:4], values=c(pi, NA, NA, -pi))\r\nstr(trie)\r\n## numeric_trie\r\n##   Keys:   chr [1:4] \"a\" \"b\" \"c\" \"d\" \r\n##   Values: num [1:4] 3.14159 NA NA -3.14159 \r\n \r\ntrie <- create_trie(keys=letters[1:4], values=c(1L, NA_integer_, 2L, NA_integer_))\r\nstr(trie)\r\n## integer_trie\r\n##   Keys:   chr [1:4] \"a\" \"b\" \"c\" \"d\" \r\n##   Values: int [1:4] 1 NA 2 NA \r\n \r\ntrie <- create_trie(keys=letters[1:4], values=c(\"x\", \"y\", NA_character_, \"z\"))\r\nstr(trie)\r\n## string_trie\r\n##   Keys:   chr [1:4] \"a\" \"b\" \"c\" \"d\" \r\n##   Values: str [1:4] \"x\"  \"y\"  \"NA\"  \"z\"  \r\n```"},"comment":{"url":"https://api.github.com/repos/Ironholds/triebeard/issues/comments/231496676","html_url":"https://github.com/Ironholds/triebeard/pull/5#issuecomment-231496676","issue_url":"https://api.github.com/repos/Ironholds/triebeard/issues/5","id":231496676,"user":{"login":"Ironholds","id":2487262,"avatar_url":"https://avatars.githubusercontent.com/u/2487262?v=3","gravatar_id":"","url":"https://api.github.com/users/Ironholds","html_url":"https://github.com/Ironholds","followers_url":"https://api.github.com/users/Ironholds/followers","following_url":"https://api.github.com/users/Ironholds/following{/other_user}","gists_url":"https://api.github.com/users/Ironholds/gists{/gist_id}","starred_url":"https://api.github.com/users/Ironholds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ironholds/subscriptions","organizations_url":"https://api.github.com/users/Ironholds/orgs","repos_url":"https://api.github.com/users/Ironholds/repos","events_url":"https://api.github.com/users/Ironholds/events{/privacy}","received_events_url":"https://api.github.com/users/Ironholds/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T23:33:54Z","updated_at":"2016-07-08T23:33:54Z","body":"Makes sense!"}}
{"actor":{"display_login":"Ironholds"}}