

{"id":9372,"date":"2018-03-29T06:53:30","date_gmt":"2018-03-29T11:53:30","guid":{"rendered":"https:\/\/rud.is\/b\/?p=9372"},"modified":"2018-03-29T07:37:20","modified_gmt":"2018-03-29T12:37:20","slug":"r%e2%81%b6-capturing-youtube-captions","status":"publish","type":"post","link":"https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/","title":{"rendered":"R\u2076 \u2014 Capturing [YouTube] Captions"},"content":{"rendered":"<p>(R\u2076 == brief, low-expository posts)<\/p>\n<p>@yoniceedee suggested I look at the Cambridge Analytics &#8220;whistleblower&#8221; testimony proceedings:<\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p lang=\"en\" dir=\"ltr\"><a href=\"https:\/\/twitter.com\/hrbrmstr?ref_src=twsrc%5Etfw\">@hrbrmstr<\/a> giving the term &quot;improving r&amp;d&quot; a whole new meaning &#8230; <a href=\"https:\/\/t.co\/f1KA8U3htT\">https:\/\/t.co\/f1KA8U3htT<\/a><\/p>\n<p>&mdash; yoni sidi (@yoniceedee) <a href=\"https:\/\/twitter.com\/yoniceedee\/status\/979178126608658438?ref_src=twsrc%5Etfw\">March 29, 2018<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>I value the resources @yoniceedee tosses my way (they often end me down twisted paths like this one, though :-) but I really dislike spending any amount of time on youtube and can consume text context much faster than even accelerated video playback.<\/p>\n<p>Google auto-generated captions for that video and you can display them by clicking below the video on the right and enabling the transcript which <em>slowly<\/em> (well, in my frame of reference) loads into the upper-right. That&#8217;s still sub-optimal since we need to be on the youtube page to read\/scroll. There&#8217;s no &#8220;export&#8221; option and my initial instinct was to go to Developer Tools and look for the <code>https:\/\/www.youtube.com\/service_ajax?name=getTranscriptEndpoint<\/code> URL and &#8220;Copy the Response&#8221; to the clipboard and save it to a file then do some JSON\/list wrangling (the transcript JSON URL is in the snippet below):<\/p>\n<pre id=\"wbtrans01\"><code class=\"language-r\">library(tidyverse)\r\n\r\ntrscrpt &lt;- jsonlite::fromJSON(&quot;https:\/\/rud.is\/dl\/ca-transcript.json&quot;)\r\n\r\nruns &lt;- trscrpt$data$actions$openTranscriptAction$transcriptRenderer$transcriptRenderer$body$transcriptBodyRenderer$cueGroups[[1]]$transcriptCueGroupRenderer$formattedStartOffset$runs\r\ncues &lt;- trscrpt$data$actions$openTranscriptAction$transcriptRenderer$transcriptRenderer$body$transcriptBodyRenderer$cueGroups[[1]]$transcriptCueGroupRenderer$cues\r\n\r\ndata_frame(\r\n  mark = map_chr(runs, ~.x$text),\r\n  text = map_chr(cues, ~.x$transcriptCueRenderer$cue$runs[[1]]$text)  \r\n) %&gt;% \r\n  separate(mark, c(&quot;minute&quot;, &quot;second&quot;), sep=&quot;:&quot;, remove = FALSE, convert = TRUE) \r\n## # A tibble: 3,247 x 4\r\n##    mark  minute second text                                    \r\n##    &lt;chr&gt;  &lt;int&gt;  &lt;int&gt; &lt;chr&gt;                                   \r\n##  1 00:00      0      0 all sort of yeah web of things if it&#039;s a\r\n##  2 00:02      0      2 franchise then there&#039;s a kind of        \r\n##  3 00:03      0      3 ultimately there&#039;s a there&#039;s a there&#039;s a\r\n##  4 00:05      0      5 coordinator of that franchise or someone\r\n##  5 00:07      0      7 who&#039;s a you got a that franchise is well\r\n##  6 00:09      0      9 well when I was there that was Alexander\r\n##  7 00:13      0     13 Nixon Steve banning but that&#039;s that&#039;s a \r\n##  8 00:16      0     16 question you should be asking aiq yeah  \r\n##  9 00:18      0     18 yeah and just got to a IQ and the GSR   \r\n## 10 00:24      0     24 state from gts-r that&#039;s other Hogan data\r\n## # ... with 3,237 more rows<\/code><\/pre>\n<p>But, then I remembered YouTube <a href=\"https:\/\/developers.google.com\/apis-explorer\/#p\/youtube\/v3\/\">has an API<\/a> for this and threw together a quick script to grab them that way as well:<\/p>\n<pre id=\"wbtrans02\"><code class=\"language-r\"># the API needs these scopes\r\n\r\nc(\r\n  &quot;https:\/\/www.googleapis.com\/auth\/youtube.force-ssl&quot;,\r\n  &quot;https:\/\/www.googleapis.com\/auth\/youtubepartner&quot;\r\n) -&gt; scope_list\r\n\r\n# oauth dance\r\n\r\nhttr::oauth_app(\r\n  appname = &quot;google&quot;,\r\n  key = Sys.getenv(&quot;GOOGLE_APP_SECRET&quot;),\r\n  secret = Sys.getenv(&quot;GOOGLE_APP_KEY&quot;)\r\n) -&gt; captions_app\r\n\r\nhttr::oauth2.0_token(\r\n  endpoint = httr::oauth_endpoints(&quot;google&quot;),\r\n  app = captions_app,\r\n  scope = scope_list,\r\n  cache = TRUE\r\n) -&gt; google_token\r\n\r\n# list the available captions for this video\r\n# (captions can be in one or more languages)\r\n\r\nhttr::GET(\r\n  url = &quot;https:\/\/www.googleapis.com\/youtube\/v3\/captions&quot;,\r\n  query = list(\r\n    part = &quot;snippet&quot;,\r\n    videoId = &quot;f2Sxob3fl0k&quot; # the v=string in the YouTube URL\r\n  ),\r\n  httr::config(token = google_token)\r\n) -&gt; caps_list\r\n\r\n# I&#039;m cheating since I know there&#039;s only one but you&#039;d want\r\n# to introspect `caps_list` before blindly doing this for \r\n# other videos.\r\n\r\nhttr::GET(\r\n  url = sprintf(\r\n    &quot;https:\/\/www.googleapis.com\/youtube\/v3\/captions\/%s&quot;,\r\n    httr::content(caps_list)$items[[1]]$id\r\n  ),\r\n  httr::config(token = google_token)\r\n) -&gt; caps\r\n\r\n# strangely enough, the JSON response &quot;feels&quot; better than this\r\n# one, though this is a standard format that&#039;s parseable quite well.\r\n\r\ncat(rawToChar(httr::content(caps)))\r\n## 0:00:00.000,0:00:03.659\r\n## all sort of yeah web of things if it&#039;s a\r\n## \r\n## 0:00:02.490,0:00:05.819\r\n## franchise then there&#039;s a kind of\r\n## \r\n## 0:00:03.659,0:00:07.589\r\n## ultimately there&#039;s a there&#039;s a there&#039;s a\r\n## \r\n## 0:00:05.819,0:00:09.660\r\n## coordinator of that franchise or someone\r\n## \r\n## 0:00:07.589,0:00:13.139\r\n## who&#039;s a you got a that franchise is well\r\n## \r\n## 0:00:09.660,0:00:16.230\r\n## well when I was there that was Alexander\r\n## ...<\/code><\/pre>\n<p>Neither a reflection on active memory nor a quick Duck Duck Go search (I try not to use Google Search anymore) seemed to point to an existing R resource for this, hence the quick post in the event the snippet is helpful to anyone else.<\/p>\n<p>If you do know of an R package\/snippet that does this already, please shoot a note into the comments so others can find it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(R\u2076 == brief, low-expository posts) @yoniceedee suggested I look at the Cambridge Analytics &#8220;whistleblower&#8221; testimony proceedings: @hrbrmstr giving the term &quot;improving r&amp;d&quot; a whole new meaning &#8230; https:\/\/t.co\/f1KA8U3htT &mdash; yoni sidi (@yoniceedee) March 29, 2018 I value the resources @yoniceedee tosses my way (they often end me down twisted paths like this one, though :-) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[91],"tags":[],"class_list":["post-9372","post","type-post","status-publish","format-standard","hentry","category-r"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>R\u2076 \u2014 Capturing [YouTube] Captions - rud.is<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rud.is\/b\/2018\/03\/29\/r\u2076-capturing-youtube-captions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R\u2076 \u2014 Capturing [YouTube] Captions - rud.is\" \/>\n<meta property=\"og:description\" content=\"(R\u2076 == brief, low-expository posts) @yoniceedee suggested I look at the Cambridge Analytics &#8220;whistleblower&#8221; testimony proceedings: @hrbrmstr giving the term &quot;improving r&amp;d&quot; a whole new meaning &#8230; https:\/\/t.co\/f1KA8U3htT &mdash; yoni sidi (@yoniceedee) March 29, 2018 I value the resources @yoniceedee tosses my way (they often end me down twisted paths like this one, though :-) [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rud.is\/b\/2018\/03\/29\/r\u2076-capturing-youtube-captions\/\" \/>\n<meta property=\"og:site_name\" content=\"rud.is\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-29T11:53:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-29T12:37:20+00:00\" \/>\n<meta name=\"author\" content=\"hrbrmstr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"hrbrmstr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/\"},\"author\":{\"name\":\"hrbrmstr\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"headline\":\"R\u2076 \u2014 Capturing [YouTube] Captions\",\"datePublished\":\"2018-03-29T11:53:30+00:00\",\"dateModified\":\"2018-03-29T12:37:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/\"},\"wordCount\":290,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"articleSection\":[\"R\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/\",\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/\",\"name\":\"R\u2076 \u2014 Capturing [YouTube] Captions - rud.is\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#website\"},\"datePublished\":\"2018-03-29T11:53:30+00:00\",\"dateModified\":\"2018-03-29T12:37:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/03\\\/29\\\/r%e2%81%b6-capturing-youtube-captions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rud.is\\\/b\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R\u2076 \u2014 Capturing [YouTube] Captions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#website\",\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/\",\"name\":\"rud.is\",\"description\":\"&quot;In God we trust. All others must bring data&quot;\",\"publisher\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rud.is\\\/b\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\",\"name\":\"hrbrmstr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"width\":460,\"height\":460,\"caption\":\"hrbrmstr\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\"},\"description\":\"Don't look at me\u2026I do what he does \u2014 just slower. #rstats avuncular \u2022 ?Resistance Fighter \u2022 Cook \u2022 Christian \u2022 [Master] Chef des Donn\u00e9es de S\u00e9curit\u00e9 @ @rapid7\",\"sameAs\":[\"http:\\\/\\\/rud.is\"],\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/author\\\/hrbrmstr\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"R\u2076 \u2014 Capturing [YouTube] Captions - rud.is","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rud.is\/b\/2018\/03\/29\/r\u2076-capturing-youtube-captions\/","og_locale":"en_US","og_type":"article","og_title":"R\u2076 \u2014 Capturing [YouTube] Captions - rud.is","og_description":"(R\u2076 == brief, low-expository posts) @yoniceedee suggested I look at the Cambridge Analytics &#8220;whistleblower&#8221; testimony proceedings: @hrbrmstr giving the term &quot;improving r&amp;d&quot; a whole new meaning &#8230; https:\/\/t.co\/f1KA8U3htT &mdash; yoni sidi (@yoniceedee) March 29, 2018 I value the resources @yoniceedee tosses my way (they often end me down twisted paths like this one, though :-) [&hellip;]","og_url":"https:\/\/rud.is\/b\/2018\/03\/29\/r\u2076-capturing-youtube-captions\/","og_site_name":"rud.is","article_published_time":"2018-03-29T11:53:30+00:00","article_modified_time":"2018-03-29T12:37:20+00:00","author":"hrbrmstr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hrbrmstr","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/#article","isPartOf":{"@id":"https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/"},"author":{"name":"hrbrmstr","@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"headline":"R\u2076 \u2014 Capturing [YouTube] Captions","datePublished":"2018-03-29T11:53:30+00:00","dateModified":"2018-03-29T12:37:20+00:00","mainEntityOfPage":{"@id":"https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/"},"wordCount":290,"commentCount":5,"publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"articleSection":["R"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/","url":"https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/","name":"R\u2076 \u2014 Capturing [YouTube] Captions - rud.is","isPartOf":{"@id":"https:\/\/rud.is\/b\/#website"},"datePublished":"2018-03-29T11:53:30+00:00","dateModified":"2018-03-29T12:37:20+00:00","breadcrumb":{"@id":"https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rud.is\/b\/2018\/03\/29\/r%e2%81%b6-capturing-youtube-captions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rud.is\/b\/"},{"@type":"ListItem","position":2,"name":"R\u2076 \u2014 Capturing [YouTube] Captions"}]},{"@type":"WebSite","@id":"https:\/\/rud.is\/b\/#website","url":"https:\/\/rud.is\/b\/","name":"rud.is","description":"&quot;In God we trust. All others must bring data&quot;","publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rud.is\/b\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886","name":"hrbrmstr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","contentUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","width":460,"height":460,"caption":"hrbrmstr"},"logo":{"@id":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1"},"description":"Don't look at me\u2026I do what he does \u2014 just slower. #rstats avuncular \u2022 ?Resistance Fighter \u2022 Cook \u2022 Christian \u2022 [Master] Chef des Donn\u00e9es de S\u00e9curit\u00e9 @ @rapid7","sameAs":["http:\/\/rud.is"],"url":"https:\/\/rud.is\/b\/author\/hrbrmstr\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p23idr-2ra","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":4674,"url":"https:\/\/rud.is\/b\/2016\/11\/22\/the-devil-is-in-the-details\/","url_meta":{"origin":9372,"position":0},"title":"The Devil is in the Details","author":"hrbrmstr","date":"2016-11-22","format":false,"excerpt":"The [first public informational video](https:\/\/www.greatagain.gov\/news\/message-president-elect-donald-j-trump.html) from the PEOTUS didn't add a full transcript of the video to the web site and did not provide (at least as of 0700 EST on 2016-11-22) their own text annotations\/captions to the video. Google's (YouTube's) auto-captioning (for the most part) worked and it's most\u2026","rel":"","context":"In &quot;Commentary&quot;","block_context":{"text":"Commentary","link":"https:\/\/rud.is\/b\/category\/commentary\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4217,"url":"https:\/\/rud.is\/b\/2016\/03\/29\/easier-composite-u-s-choropleths-with-albersusa\/","url_meta":{"origin":9372,"position":1},"title":"Easier Composite U.S. Choropleths with albersusa","author":"hrbrmstr","date":"2016-03-29","format":false,"excerpt":"Folks who've been tracking this blog on R-bloggers probably remember [this post](https:\/\/rud.is\/b\/2014\/11\/16\/moving-the-earth-well-alaska-hawaii-with-r\/) where I showed how to create a composite U.S. map with an Albers projection (which is commonly referred to as AlbersUSA these days thanks to D3). I'm not sure why I didn't think of this earlier, but you\u2026","rel":"","context":"In &quot;cartography&quot;","block_context":{"text":"cartography","link":"https:\/\/rud.is\/b\/category\/cartography\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/Fullscreen_3_29_16__9_06_AM.png?fit=1200%2C747&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/Fullscreen_3_29_16__9_06_AM.png?fit=1200%2C747&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/Fullscreen_3_29_16__9_06_AM.png?fit=1200%2C747&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/Fullscreen_3_29_16__9_06_AM.png?fit=1200%2C747&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/Fullscreen_3_29_16__9_06_AM.png?fit=1200%2C747&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":4133,"url":"https:\/\/rud.is\/b\/2016\/03\/16\/supreme-annotations\/","url_meta":{"origin":9372,"position":2},"title":"Supreme Annotations","author":"hrbrmstr","date":"2016-03-16","format":false,"excerpt":"This is a follow up to a twitter-gist post & to the annotation party we're having this week I had not intended this to be \"Annotation Week\" but there was a large, positive response to my annotation \"hack\" post. This reaction surprised me, then someone pointed me to this link\u2026","rel":"","context":"In &quot;Charts &amp; Graphs&quot;","block_context":{"text":"Charts &amp; Graphs","link":"https:\/\/rud.is\/b\/category\/charts-graphs\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/supremes.png?fit=1200%2C987&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/supremes.png?fit=1200%2C987&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/supremes.png?fit=1200%2C987&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/supremes.png?fit=1200%2C987&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/supremes.png?fit=1200%2C987&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":4203,"url":"https:\/\/rud.is\/b\/2016\/03\/26\/nuclear-animations-in-r\/","url_meta":{"origin":9372,"position":3},"title":"Nuclear Animations in R","author":"hrbrmstr","date":"2016-03-26","format":false,"excerpt":"> UPDATE: For #rstats folks interested in what this might look like in D3, [take a gander](https:\/\/rud.is\/b\/2016\/03\/27\/nuclear-animations-in-d3\/) @jsvine (Data Editor at BuzzFeed) cleaned up and posted a [data sets of historical nuclear explosions](https:\/\/github.com\/data-is-plural\/nuclear-explosions) earlier this week. I used it to show a few plotting examples in class, but it's also\u2026","rel":"","context":"In &quot;Charts &amp; Graphs&quot;","block_context":{"text":"Charts &amp; Graphs","link":"https:\/\/rud.is\/b\/category\/charts-graphs\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/ogimg.png?fit=1200%2C946&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/ogimg.png?fit=1200%2C946&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/ogimg.png?fit=1200%2C946&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/ogimg.png?fit=1200%2C946&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/ogimg.png?fit=1200%2C946&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":12120,"url":"https:\/\/rud.is\/b\/2019\/04\/03\/wicked-fast-accurate-quantiles-using-t-digests-in-r-with-the-tdigest-package\/","url_meta":{"origin":9372,"position":4},"title":"Wicked Fast, Accurate Quantiles Using \u2018t-Digests\u2019 in R with the {tdigest} Package","author":"hrbrmstr","date":"2019-04-03","format":false,"excerpt":"@ted_dunning recently updated the t-Digest algorithm he created back in 2013. What is this \"t-digest\"? Fundamentally, it is a probabilistic data structure for estimating any percentile of distributed\/streaming data. Ted explains it quite elegantly in this short video: Said video has a full transcript as well. T-digests have been baked\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4225,"url":"https:\/\/rud.is\/b\/2016\/03\/30\/introducing-a-weekly-r-python-js-etc-vis-challenge\/","url_meta":{"origin":9372,"position":5},"title":"Introducing a Weekly R \/ Python \/ JS \/ etc Vis Challenge!","author":"hrbrmstr","date":"2016-03-30","format":false,"excerpt":">UPDATE: Deadline is now 2016-04-05 23:59 EDT; next vis challenge is 2016-04-06! Per a suggestion, I'm going to try to find a neat data set (prbly one from @jsvine) to feature each week and toss up some sample code (99% of the time prbly in R) and offer up a\u2026","rel":"","context":"In &quot;Charts &amp; Graphs&quot;","block_context":{"text":"Charts &amp; Graphs","link":"https:\/\/rud.is\/b\/category\/charts-graphs\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/RStudioScreenSnapz024.png?fit=1200%2C605&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/RStudioScreenSnapz024.png?fit=1200%2C605&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/RStudioScreenSnapz024.png?fit=1200%2C605&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/RStudioScreenSnapz024.png?fit=1200%2C605&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2016\/03\/RStudioScreenSnapz024.png?fit=1200%2C605&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/9372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/comments?post=9372"}],"version-history":[{"count":0,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/9372\/revisions"}],"wp:attachment":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media?parent=9372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/categories?post=9372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/tags?post=9372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}