\begin{Schunk}
\begin{Sinput}
 authors
\end{Sinput}
\begin{Soutput}
   surname nationality deceased
1    Tukey          US      yes
2 Venables   Australia       no
3  Tierney          US       no
4   Ripley          UK       no
5   McNeil   Australia       no
\end{Soutput}
\begin{Sinput}
 books
\end{Sinput}
\begin{Soutput}
      name                     title     other_author
1    Tukey Exploratory Data Analysis             <NA>
2 Venables Modern Applied Statistics           Ripley
3  Tierney                 LISP-STAT             <NA>
4   Ripley        Spatial Statistics             <NA>
5   Ripley     Stochastic Simulation             <NA>
6   McNeil Interactive Data Analysis             <NA>
7   R Core      An Introduction to R Venables & Smith
\end{Soutput}
\begin{Sinput}
 merge(x = authors, y = books, by.x = "surname", by.y = "name")
\end{Sinput}
\begin{Soutput}
   surname nationality deceased                     title other_author
1   McNeil   Australia       no Interactive Data Analysis         <NA>
2   Ripley          UK       no        Spatial Statistics         <NA>
3   Ripley          UK       no     Stochastic Simulation         <NA>
4  Tierney          US       no                 LISP-STAT         <NA>
5    Tukey          US      yes Exploratory Data Analysis         <NA>
6 Venables   Australia       no Modern Applied Statistics       Ripley
\end{Soutput}
\end{Schunk}
