<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/r-is-for-archaeology-a-report-on-the-2017-society-of-american-archaeology-meeting/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2017/04/r-is-for-archaeology.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p><em>by <a target="_blank" rel="nofollow" href="https://twitter.com/benmarwick/">Ben Marwick</a>, Associate Professor of Archaeology, University of Washington and Senior Research Scientist, University of Wollongong</em></p>
<p>The <a target="_blank" rel="nofollow" href="http://www.saa.org/">Society of American Archaeology (SAA)</a> is one of the largest professional organisations for archaeologists in the world, and just concluded its annual meeting in Vancouver, BC at the end of March. The R language has been a part of this meeting for more than a decade, with occasional citations of R Core in the posters, and more recently, the distinctive ggplot2 graphics appearing infrequently on posters and slides. However, among the few archaeologists that have heard of R, it has a reputation for being difficult to learn and use, idiosyncratic, and only suitable for highly specialized analyses. Generally, archaeology students are raised on Excel and SPSS. This year, a few of us thought it was time to administer some first aid to R's reputation among archaeologists and generally broaden awareness of this wonderful tool. We developed a plan for this year's SAA meeting to show our colleagues that R is not too hard to learn, it is useful for almost anything that involves numbers, and it has lots of fun and cool people that use it to get their research done quicker and easier. </p>
<p>Our plan had three main elements. The first element was the début of two new SAA Interest Groups. The <a target="_blank" rel="nofollow" href="https://osf.io/2dfhz/">Open Science Interest Group (OSIG)</a> was directly inspired by <a target="_blank" rel="nofollow" href="https://twitter.com/polesasunder">Andrew MacDonald's</a> work founding the <a target="_blank" rel="nofollow" href="http://esa.org/openscience/">ESA Open Science section</a>, with the OSIG being approved by the SAA Board this year. It aims to promote the use of preprints (e.g. <a target="_blank" rel="nofollow" href="https://osf.io/preprints/socarxiv">SocArXiv</a>), open data (e.g. <a target="_blank" rel="nofollow" href="https://www.tdar.org/about/">tDAR</a>, <a target="_blank" rel="nofollow" href="https://opencontext.org/">Open Context</a>), and open methods (e.g. R and <a target="_blank" rel="nofollow" href="https://github.com/">GitHub</a>). The OSIG recently released a <a target="_blank" rel="nofollow" href="https://osf.io/preprints/socarxiv/72n8g/">manifesto</a> describing these aims in more detail. At this SAA meeting we also saw the first appearance of the Quantitative Archaeology Interest Group, which has a strong focus on supporting the use R for archaeological research. The appearance of these two groups shows the rest of the archaeological community that there is now a substantial group of R users among academic and professional archaeologists, and they are keen to get organised so they can more effectively help others who are learning R. Some of us in these interest groups were also participants in fora and discussants in sessions throughout the conference, and so had opportunities to tell our colleagues, for example, that it would be ideal if R scripts were available for for certain interesting new analytical methods, or that R code should be submitted when manuscripts are submitted for publication. </p>
<p>The second element of our plan was a normal conference session titled 'Archaeological Science Using R'. This was a two hour session of nine presentations by academic and professional archaeologists that were live code demonstrations of innovative uses of R to solve archaeological research problems. We collected R markdown files and data files from the presenters before the conference, and tested them extensively to ensure they'd work perfectly during the presentations. We also made a few editorial changes to speed things up a bit, for example using <code>readr::read_csv</code> instead of <code>read.csv</code>. We were told in advance by the conference organisers that we couldn't count on good internet access, so we also had to ensure that the code demos worked offline. On the day, the live-coding presentations went very well, with no-one crashing and burning, and some presenters even doing some off-script code improvisation to answer questions from the audience. At the start of the session we announced the release of our online book containing the full text of all contributions, including code, data and narrative text, which is <a target="_blank" rel="nofollow" href="https://benmarwick.github.io/How-To-Do-Archaeological-Science-Using-R/">online here</a>. We could only do this thanks to the <a target="_blank" rel="nofollow" href="https://bookdown.org/yihui/bookdown/">bookdown package</a>, which allowed us to quickly combine the R markdown files into a single, easily readable website. I think this might be a new record for the time from an SAA conference session to a public release of an edited volume. The online book also uses Matthew Salganik's <a target="_blank" rel="nofollow" href="http://www.openreviewtoolkit.org/">Open Review Toolkit</a> to collect feedback while we're preparing this for publication as an edited volume by Springer (go ahead and leave us some feedback!). There was a lot of enthusiastic chatter later in the conference about a weird new kind of session where people were demoing R code instead of showing slides. We took this as an indicator of success, and received several requests for it to be a recurring event in future meetings. </p>
<p>The third element of our plan was a <a target="_blank" rel="nofollow" href="https://github.com/benmarwick/SAA_R_workshop_2017">three hour training workshop</a> during the conference to introduce archaeologists to R for data analysis and visualization. Using pedagogical techniques from <a target="_blank" rel="nofollow" href="https://software-carpentry.org/">Software Carpentry</a> (i.e. sticky notes, live coding and lots of exercises), <a target="_blank" rel="nofollow" href="https://twitter.com/Md_Harris">Matt Harris</a> and I got people using RStudio (and discovering the miracle of tab-complete) and modern R packages such as readxl, dplyr, tidyr, ggplot2. At the end of three hours we found that our room wasn't booked for anything, so the students requested a further hour of Q&amp;A, which lead to demonstrations of knitr, plotly, mapview, sf, some more advanced ggplot2, and a little git. Despite being located in the Vancouver Hilton, this was another low-bandwidth situation (which we were warned about in advance), so we loaded all the packages to the student's computers from USB sticks. In this case we downloaded package binaries for both Windows and OSX, put them on the USB sticks before the workshop, and had the students run a <a target="_blank" rel="nofollow" href="https://github.com/benmarwick/SAA_R_workshop_2017/blob/master/things_to_install/packages/windows-simple-install-of-pkgs.R">little bit of R code</a> that used <code>install.packages()</code> to install the binaries to the <code>.libpaths()</code> location (for Windows) or untar'd the binaries to that location (for OSX). That worked perfectly, and seemed to be a very quick and lightweight method to get packages and their dependencies to all our students without using the internet. Getting the students started by running this bit of code was also a nice way to orient them to the RStudio layout, since they were seeing that for the first time. </p>
<p>This workshop was a first for the SAA, and was a huge success. Much of this is due to our sponsors who helped us pay for the venue hire (which was surprisingly expensive!). We got some major support from Microsoft Data Science User Group program <em>(ed note: email <a target="_blank" rel="nofollow" href="mailto:msdsug@microsoft.com">msdsug@microsoft.com</a> for info about the program)</em> and <a target="_blank" rel="nofollow" href="https://opencontext.org/">Open Context</a>, as well as cool stickers and swag for the students from <a target="_blank" rel="nofollow" href="https://www.rstudio.com/">RStudio</a>, <a target="_blank" rel="nofollow" href="https://ropensci.org/">rOpenSci</a>, and the <a target="_blank" rel="nofollow" href="https://cos.io/">Centre for Open Science</a>. We used the stickers like tiny certificates of accomplishment, for example when our students produced their first plot, we handed out the ggplot2 stickers as a little reward.</p>
<p><a target="_blank" rel="nofollow" href="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb098f7fc9970d-pi"><img title="Marwick-swag" alt="Marwick-swag" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb098f7fc9970d-800wi" border="0"></a></p>
<p>Given the positive reception of our workshop, forum and interest groups, our feeling is that archaeologists are generally receptive to new tools for working with data, perhaps more so now than in the past (i.e. pre-tidyverse). Younger researchers seem especially motivated to learn R because they may have heard of it, but not had a chance to learn it because their degree program doesn't offer it. If you are a researcher in a field where R (or any programming language) is only rarely used by your colleagues, now might be a good time to organise a rehabilitation of R's reputation in your field. Our strategy of interest groups, code demos in a conference session, and a short training workshop during the meeting is one that we would recommend, and we imagine will transfer easily to many other disciplines. We're happy to share more details with anyone who wants to try! </p>
</div>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://blog.revolutionanalytics.com/2017/04/r-is-for-archaeology.html"> Revolutions</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/OLPHfFyJtOA"></a></div>