{"action":"closed","issue":{"url":"https://api.github.com/repos/r-quantities/units/issues/176","repository_url":"https://api.github.com/repos/r-quantities/units","labels_url":"https://api.github.com/repos/r-quantities/units/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/r-quantities/units/issues/176/comments","events_url":"https://api.github.com/repos/r-quantities/units/issues/176/events","html_url":"https://github.com/r-quantities/units/issues/176","id":364091553,"node_id":"MDU6SXNzdWUzNjQwOTE1NTM=","number":176,"title":"support for decibels?","user":{"login":"t-kalinowski","id":8462255,"node_id":"MDQ6VXNlcjg0NjIyNTU=","avatar_url":"https://avatars1.githubusercontent.com/u/8462255?v=4","gravatar_id":"","url":"https://api.github.com/users/t-kalinowski","html_url":"https://github.com/t-kalinowski","followers_url":"https://api.github.com/users/t-kalinowski/followers","following_url":"https://api.github.com/users/t-kalinowski/following{/other_user}","gists_url":"https://api.github.com/users/t-kalinowski/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kalinowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kalinowski/subscriptions","organizations_url":"https://api.github.com/users/t-kalinowski/orgs","repos_url":"https://api.github.com/users/t-kalinowski/repos","events_url":"https://api.github.com/users/t-kalinowski/events{/privacy}","received_events_url":"https://api.github.com/users/t-kalinowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-26T15:34:01Z","updated_at":"2018-10-03T16:39:42Z","closed_at":"2018-10-03T16:39:42Z","author_association":"CONTRIBUTOR","body":"I'm not entirely sure how this should work. \r\n\r\nShort of a holistic solution, a first step might be sensible printing if you recreate the unit manually (so the `lg(1)` below might instead be `dB`\r\n``` r\r\nlibrary(units)\r\n#> udunits system database from /usr/share/udunits\r\nsignal_power <- set_units(10, W)\r\nnoise_power <- set_units(2, W)\r\n\r\nsnr <- 10 * log(signal_power / noise_power, base = 10)\r\nsnr\r\n#> 6.9897 [lg(1)]\r\n```\r\n\r\n(as a side note, it would also be good to add support for `log10` and `log2` at some point, so the above `log(..., base = 10)` wouldn't be necessary.\r\n\r\n<sup>Created on 2018-09-26 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1)</sup>"}}
{"actor":{"display_login":"Enchufa2"}}