<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Stringr on rostrum.blog</title>
    <link>https://www.rostrum.blog/tags/stringr/</link>
    <description>Recent content in Stringr on rostrum.blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Sat, 16 May 2020 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.rostrum.blog/tags/stringr/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>#PostcodePandemonium with {data.table}</title>
      <link>https://www.rostrum.blog/2020/05/16/postcode-pandemonium/</link>
      <pubDate>Sat, 16 May 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2020/05/16/postcode-pandemonium/</guid>
      <description>Postcodes in Bath are unlikely to score highly (via Wikimedia)  tl;dr I used the R package {data.table} to find the highest- and lowest-scoring UK postcodes based on the sum of their numbers and letters (A = 1, B = 2, etc). You can jump to the results.
 The premise Yesterday I noticed that the hashtag #PostcodePandemonium was trending on Twitter.1 The premise was to sum the numbers and letters in your postcode, where the letters have been converted to their position in the alphabet (i.</description>
    </item>
    
    <item>
      <title>{altcheckr}: check image alt text from R</title>
      <link>https://www.rostrum.blog/2019/12/08/altcheckr/</link>
      <pubDate>Sun, 08 Dec 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2019/12/08/altcheckr/</guid>
      <description>tl;dr I’ve made a small R package called {altcheckr} that checks the accessibility of images on web pages. It has functions that (1) scrape attributes from HTML  elements on a web page and (2) apply simple rules to indicate the suitability of the alt text provided. To use:
remotes::install_github(&amp;quot;matt-dray/altcheckr&amp;quot;) images &amp;lt;- alt_get(&amp;quot;https://www.bbc.co.uk/news&amp;quot;) alt_check(images) I’m not an expert and the package has not been user tested.
 Accessibility A web site is accessible if everyone can engage with its content.</description>
    </item>
    
    <item>
      <title>Travel the NBA with {rvest}, {leaflet} and {osrm}</title>
      <link>https://www.rostrum.blog/2018/12/24/nba-travel/</link>
      <pubDate>Mon, 24 Dec 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/12/24/nba-travel/</guid>
      <description>Classic Jazz: Stockton to Malone for the dunk (via Giphy)   Note
The original version of this post (December 2018) used the {gmapsdistance} package. I updated it extensively in 2020 to use the {osrm} package, which doesn’t require an API key nor billing details.
 tl;dr The {osrm} R package can retrieve from the OSRM API the travel duration between points.</description>
    </item>
    
    <item>
      <title>TWO DOGS IN TOILET ELDERLY LADY INVOLVED</title>
      <link>https://www.rostrum.blog/2018/04/27/two-dogs-in-toilet-elderly-lady-involved/</link>
      <pubDate>Fri, 27 Apr 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/04/27/two-dogs-in-toilet-elderly-lady-involved/</guid>
      <description>Matt Dray (@mattdray)
Call the fire brigade. Oh wait, we’re fine.
 TL;DR Animals get stuck in weird places, just ask the London Fire Brigade. I used the sf package for handling some animal rescue spatial data prior to interactive mapping with leaflet. Scroll to the bottom to see the map.
 The problem Sometimes I work with eastings and northings coordinate data.</description>
    </item>
    
    <item>
      <title>R Trek: exploring stardates</title>
      <link>https://www.rostrum.blog/2018/04/14/r-trek-exploring-stardates/</link>
      <pubDate>Sat, 14 Apr 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/04/14/r-trek-exploring-stardates/</guid>
      <description>Captain’s log  Star date 71750.51. Our mission is to use R statistical software to extract star dates mentioned in the captain’s log from the scripts of Star Trek: The Next Generation and observe their progression over the course of the show’s seven seasons. There appears to be some mismatch in the frequency of digits after the decimal point – could this indicate poor ability to choose random numbers?</description>
    </item>
    
  </channel>
</rss>