{"action":"closed","issue":{"url":"https://api.github.com/repos/joey711/phyloseq/issues/370","labels_url":"https://api.github.com/repos/joey711/phyloseq/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/joey711/phyloseq/issues/370/comments","events_url":"https://api.github.com/repos/joey711/phyloseq/issues/370/events","html_url":"https://github.com/joey711/phyloseq/issues/370","id":39629361,"number":370,"title":"function to get lowest rank in tax_table","user":{"login":"audy","id":115904,"avatar_url":"https://avatars.githubusercontent.com/u/115904?v=3","gravatar_id":"","url":"https://api.github.com/users/audy","html_url":"https://github.com/audy","followers_url":"https://api.github.com/users/audy/followers","following_url":"https://api.github.com/users/audy/following{/other_user}","gists_url":"https://api.github.com/users/audy/gists{/gist_id}","starred_url":"https://api.github.com/users/audy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audy/subscriptions","organizations_url":"https://api.github.com/users/audy/orgs","repos_url":"https://api.github.com/users/audy/repos","events_url":"https://api.github.com/users/audy/events{/privacy}","received_events_url":"https://api.github.com/users/audy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joey711/phyloseq/labels/Feature","name":"Feature","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-08-06T14:57:46Z","updated_at":"2015-03-06T17:45:53Z","closed_at":"2015-03-06T17:45:53Z","body":"After doing a `tax_glom` on a phyloseq object the taxonomy table still contains columns for the now agglomerated ranks with `NA`s to fill in the names.\r\n\r\nIs there a function that returns the rank name of the lowest rank in a taxonomy table?\r\n\r\nFor example:\r\n\r\n```S\r\nlowest_rank(phy)\r\n[1] \"OTU\"\r\nglom <- tax_glom(phy, taxrank='Phylum')\r\nlowest_rank(glom)\r\n[1] \"Phylum\"\r\n```"}}