Skip to main content

R Basics

  • Chapter
  • First Online:
Text Analysis with R

Abstract

This chapter explains how to download and install R and RStudio. Readers are introduced to the R console, to R Projects, and shown how to execute basic commands.

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.

    See, for example, Wickham and Grolemund (2017); Venables and Smith (2009); Braun (2016); or any of the books in Springer’s Use R Series: http://www.springer.com/series/6991?detailsPage=titles.

  2. 2.

    To find what OS you are running, choose “About this Mac” from the Apple menu.

  3. 3.

    The first time you launch RStudio you will be able to see only three of the panes. The R scripting or Source pane will likely be collapsed so you will see only the word Source until you either create a new script (File > New > R Script) or un-collapse the Source window pane.

  4. 4.

    This is not entirely true. RStudio does save your command history and, at least while your session is active, you can access that history and even save it to a file. Once you quit a session, however, that history may or may not be saved.

  5. 5.

    The Console is a command line window where you enter commands. Sometimes this is called a Terminal or Shell.

  6. 6.

    Throughout this book, we will show output from the console proceeded by two hash marks (##). These hash marks will not appear in your console output.

References

  • Braun W (2016) A First Course in Statistical Programming with R, 2nd edn. Cambridge University Press, New York, NY, USA

    Book  Google Scholar 

  • Venables WN, Smith DM (2009) An Introduction to R, 2nd edn. Network Theory Ltd.

    Google Scholar 

  • Wickham H, Grolemund G (2017) R for Data Science: Import, Tidy, Transform, Visualize, and Model Data, 1st edn. O’Reilly Media, Sebastopol, CA

    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). R Basics. 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_1

Download citation

Publish with us

Policies and ethics