Gender is an R package which takes names and associated dates or ranges of dates and predicts the gender of the name. The gender package is now on CRAN for the first time; you can also see the package README at GitHub. This is the package description:
Encodes gender based on names and dates of birth, using either the Social Security Administration’s data set of first names by year of birth or Census Bureau data from 1789 to 1940, both from the United States of America. By using these data sets instead of lists of male and female names, this package is able to more accurately guess the gender of a name, and it is able to report the probability that a name was male or female.
The package was based on an idea by Cameron Blevins, with whom I’m collaborating on a related article, and it includes significant contributions from Ben Schmidt.
In making maps in R, the biggest point of pain for me has been reading in shapefiles. D3 has been far better for making maps because TopoJSON’s topological format for representing geometries is so much better than the format of shapefiles. Bob Rudis’s post “Overcoming D3 Cartographic Envy With R + ggplot” taught me that the most recent version of GDAL/OGR can read in TopoJSON, and thus that the R package rgdal can as well. This will make mapping in R much easier.
The First Draft is relatively new in the small world of digital humanities podcasts. It’s hosted by some of my favorite DH people: Elijah Meeks, Jason Heppler, and Paul Zenke. I haven’t made it through the entire back catalog, but I’ve enjoyed their close-to-the-metal discussions of building in the digital humanities. With their most recent episode titled “Tableau is Excel for 2014,” it seems like they are trolling me personally.
Most of the time when I’m working in R I’m using Mac OS X and I have a bunch of packages installed. But often I want to run my R code in a clean environment, and when I’m developing a package I want to test it on a Linux instance. The combination of Vagrant and VirtualBox makes it easy to write a script which spools up a virtual machine for this purpose. I’ve created a set of files for Vagrant that created an Ubuntu 14.04 virtual machine, provision it with all the development tools I need, then install commonly used R packages. Creating a new development environment is as simple as cloning the repository and running
vagrant up. You can get these scripts at GitHub.
Every so often, I also want to spool up a server at Amazon EC2 with far more RAM and processing power than I have on my laptop. While the
Vagrantfile is unnecessary for this, the files
install-r-packages.R can be adapted with just a little modification to provision an EC2 instance.
Nils Weidmann has put together cshapes, a useful package for R that gives you country boundaries and capitals for the years 1946 to 2008. This package is based on his cshapes shapefile. (Via Elijah Meeks.)
This is a nice model for packaging historical geographic information for R. I’m hoping to do something similar for the Newberry Library’s Atlas of Historical County Boundaries.
This spring I’ll be teaching two new courses. This first is a graduate course on “Religion and Capitalism in the United States.” The new history of capitalism is bringing tremendous energy to American history generally, and historians of American religions have been producing lots of great books on the connection between religion and capitalism recently. Here is my first take at a course description:
Religion and Capitalism in the US
It seems obvious that there is some relationship between religion and capitalism, but what is that relationship? Historians of the United States have tried to answer this question in many ways; even more, it was a problem that perplexed the people whom historians study. In this class, you will meet many people whose religion led them to interact with capitalism in incredibly diverse ways. You will meet the Puritans whose work ethic supposedly created capitalism, but who insisted on resting on the Sabbath; Moravian missionaries who made converts and money; slaves, slaveowners, and abolitionists who all claimed the Bible when reckoning with the capitalist system of slavery; a Protestant writer who insisted that Jesus was a businessman, and Catholics who believed Jesus called them to a kind of socialism; Jews who mass-manufactured matzah and who were prosecuted for breaking Sunday “blue laws”; an industrialist who wrote The Gospel of Wealth, and laborers who created churches for the working class; nineteenth-century consumers who turned gift-giving into a ritual, and a twenty-first-century television personality who turned consumption into therapy; converts who thought religion required poverty, and Prosperity Gospelers who thought it promised wealth. You will read primary sources from American history, secondary works in both religious history and the new history of capitalism, and excerpts from theorists of religion and capitalism. Through these readings and your own research project, you are invited make sense of this perpetual historical puzzle.
The second class is called “The Digital Past.” It is a course taught by many people in my department. The class is both a history class, focusing on digital history methods, and a course which meets the university’s IT requirement. Here is the course description for my version of the class (heavily indebted to both Sharon Leon’s version and Stephen Robertson’s):
The Digital Past
In this class, you will to learn to do history using digital tools. The course—which satisfies the university’s IT requirement—teaches the fundamentals of information technology by applying them to a practical problem in history. Throughout the semester, you will work individually and with classmates on a research project about American religious history. You will learn how to do research online, but also how to put those sources in the context of other scholarly work. You will gather data, learn how to question it, analyze it, summarize it, and interpret it. You will create visualizations of datasets, especially maps. But you will also learn how to integrate data with narratives from individual lives. You will learn how to present visual and textual sources online in web exhibits, and you will learn how to write and publish effectively online. Through learning by doing, you will gain many digital skills which are broadly applicable; even more important, you will learn how to use these skills to create arguments and stories. This combination will be useful to you throughout your university career and in your professional life.
I have an article in the most recent issue of the U.S. Catholic Historian titled “The Contours of Conversion to Catholicism in the Nineteenth Century” (paywalled at Project Muse, but PDF here). One of the things I like about that journal is their theme issues, and this issue has a nice lineup from Erin Bartram on Jane Minot Sedgwick II, Stephanie A. T. Jacobe on Thomas Fortune Ryan, Charles Gallagher on Jacques Maritain, Tim Lacy on Mortimer Adler, and Justin Poché on John Howard Griffin.
My article has some maps and charts of Paulists missions, which I’ve made dynamic here. The abstract:
The chronological and theological contours of conversion to Catholicism in the nineteenth-century United States evidence three waves. Beginning with John Thayer’s 1783 conversion from Congregationalism and continuing through the 1830s, conversions were scattered, and often from Reformed Protestantism. The 1840s through 1860s, the critical period for Catholic conversion, included converts from American Episcopalianism, riven by the Oxford movement, and from Transcendentalist and liberal Christian reformers dissatisfied with reform’s theological underpinnings. These converts became the agents of a new movement to convert Protestants. From 1870 through the early twentieth century, missionary priests, especially members of the Missionary Society of St. Paul the Apostle (Paulists), won thousands of converts, making conversion to Catholicism a viable choice for many more Americans.
Over at Books and Culture, Timothy Larsen has an entertaining review of David Gange’s Dialogues with the Dead: Egyptology in British Culture and Religion, 1822–1922.
And what the Victorians wanted to know was what those who had dwelt beside the Nile long ago had to say about the Bible. A lazy assumption of secularization has infused accounts of modern history, making people imagine that a religious focus was decreasing as the 19th century progressed. Like the plagues of Egypt, however, it actually intensified at the end. Thus the Egyptology of the 1880s and 1890s was significantly more preoccupied with scriptural connections than was that of mid-century.
Larsen captures many fascinating details from the book, including these:
Even the most gifted scholars were so immersed in the scriptures that they often saw the Bible everywhere they looked. There was a serious theory that the Great Sphinx at Giza was a monument to Noah. It was decided that the pharaoh Akhenaten wrote the original version of Psalm 104. Petrie [an archaeologist] visited an orphanage and his trained eye could not fail to notice that two of the children were Hittites.
Enthusiastic amateurs set off to see the sites in such numbers that Petrie eventually took to excavating in just his pink underpants as a polite hint that he was not currently taking social calls.
There are many kinds of book reviews, but Larsen’s review is a good model of the kind that gives the full flavor of a book.
Over at Books & Culture, I review Peter Watson, The Age of Atheists: How We Have Sought to Live Since the Death of God (Simon & Schuster, 2014).
Here is the syllabus for the course.