Skip to main content

Clustering

  • Chapter
  • First Online:
Text Analysis with R

Abstract

This chapter moves readers from the analysis of one or two texts to a larger corpus. Machine clustering is introduced in the context of an authorship attribution problem, and we reuse some functions developed in previous chapters.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 89.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Enter ?regex at the prompt to learn more about regex in R.

  2. 2.

    For a brief overview of how this work is conducted, see Jockers (2013), pp. 63–67.

  3. 3.

    Using this formula, the file names become the first column in the resulting matrix and the tokens become the column headers. If, instead, we wanted to “transpose the matrix” and have the file names as the column headers, we would just change the formula to read token + file instead of file + token.

  4. 4.

    All these books are by Irish or Irish-American authors. They were digitized and encoded into TEI by Matthew Jockers as part of his work on the Irish-American West project at Stanford back in the early 2000s.

References

  • Jockers ML (2013) Macroanalysis: Digital Methods and Literary History, 1st edn. University of Illinois Press, Urbana

    Book  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

L. Jockers, M., Thalken, R. (2020). Clustering. In: Text Analysis with R. Quantitative Methods in the Humanities and Social Sciences. Springer, Cham. https://doi.org/10.1007/978-3-030-39643-5_15

Download citation

Publish with us

Policies and ethics