Quote of the Day
Rome wasn’t built in a day, but they were laying bricks every hour. You don’t have to do it all today. Just lay a brick.
I was watching a documentary about the Battle Off Samar on my favorite Youtube naval channel called Drachinifel. During this show, Drachinifel stated that the battleship Yamato displaced more tonnage than the entire Task Group 77.4.3 (call sign Taffy 3) that it was attacking. I found this a remarkable statement and one that I could verify using a little bit of web scraping. Because one of the students I tutor use R, I thought this would be a good exercise to implement using R and Rmarkdown (a great report generation tool).
Background
Battle Details
On 25-Oct-1944, a large Japanese surface fleet consisting of four battleships and six heavy cruisers, two light cruisers, and eleven destroyers attacked a greatly overmatched US force that was protecting a Philippine beachhead. Remarkably, the US force was able to turn back the attack with a defense no less remarkable than David versus Goliath. For example, you cannot read about the USS Johnston and fail to be in awe of the actions of that ship.
The best way to learn about the Battle off Samar is to watch the Drachinifel video shown below. His research coupled with a dry sense of humor makes the viewing enjoyable.
Figure 2: Drachinifel Video on the Battle of Samar. |
Web Scraping
Here is the process I used to sum the displacements of the Taffy 3 ships:
- Gather the list of Taffy 3 ships from US Naval History and Heritage Command
- Create Wikipedia links from the ship names.
Wikipedia has a standard format for converting a ship name to a hyperlink, so this involved just concatenating the correct prefix. - Using the rvest package with R, grab the ship class and displacement data from Wikipedia.
- Correct some obvious Wikipedia errors.
As a person who has authored a number of Wikipedia pages, I know how hard it is to get all the details correct, especially for WW2 ships because sources often differ. In this case, the problems had to do with different authors using different ship displacement definitions. For those interested, Wikipedia normally uses standard displacement. Unfortunately, the editors do not always enforce that convention. I manually corrected the error. The errors were obvious because different ships of the same class had radically different displacements. For the corrections, I used data from the US Navy's History and Heritage Command. - Using the kable package, create a table of Taffy 3 ships, their individual displacements, and their total displacement.
I am including my R file and a figure in this zip file for those who like to follow along. I include a PDF of my Rmarkdown file here.
Analysis
Table 2 shows a screenshot of the key result from this web scraping exercise. The total displacement of Taffy 3 is just under 61K long tons, which is well under Yamato's 64K long tons displacement.
Taffy 3 at Samar took very heavy casualties with five ships being sunk:
- Gambier Bay (Escort Carrier)
- St. Lo (Escort Carrier)
- Johnston (Destroyer)
- Hoel (Destroyer)
- Roberts (Destroyer Escort)
The Japanese Center Force also took heavy casualties with three heavy cruisers sunk.
Most excellent bit of work. I too was doubtful of Drachinifel’s assertion of Yamato outweighing Taffy 3. Thanks so much for your effort.
Drach's channel has become a source of much enjoyment for me. I often get ideas for investigation from the many tidbits he drops during his presentations. Simply a great video channel!
Thanks for the comment.