
- 350 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
About this book
Learning a computer language like R can be either frustrating, fun, or boring. Having fun requires challenges that wake up the learner's curiosity but also provide an emotional reward on overcoming them. This book is designed so that it includes smaller and bigger challenges, in what I call playgrounds, in the hope that all readers will enjoy their path to R fluency. Fluency in the use of a language is a skill that is acquired through practice and exploration. Although rarely mentioned separately, fluency in a computer programming language involves both writing and reading. The parallels between natural and computer languages are many, but differences are also important. For students and professionals in the biological sciences, humanities, and many applied fields, recognizing the parallels between R and natural languages should help them feel at home with R. The approach I use is similar to that of a travel guide, encouraging exploration and describing the available alternatives and how to reach them. The intention is to guide the reader through the R landscape of 2020 and beyond.
Features
-
- R as it is currently used
-
- Few prescriptive rulesâmostly the author's preferences together with alternatives
-
- Explanation of the R grammar emphasizing the "R way of doing things"
-
- Tutoring for "programming in the small" using scripts
-
- The grammar of graphics and the grammar of data described as grammars
-
- Examples of data exchange between R and the foreign world using common file formats
-
- Coaching for becoming an independent R user, capable of both writing original code and solving future challenges
What makes this book different from others:
-
- Tries to break the ice and help readers from all disciplines feel at home with R
-
- Does not make assumptions about what the reader will use R for
-
- Attempts to do only one thing well: guide readers into becoming fluent in the R language
Pedro J. Aphalo is a PhD graduate from the University of Edinburgh, and is currently a lecturer at the University of Helsinki. A plant biologist and agriculture scientist with a passion for data, electronics, computers, and photography, in addition to plants, Dr. Aphalo has been a user of R for 25 years. He first organized an R course for MSc students 18 years ago, and is the author of 13 R packages currently in CRAN.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
1
R: The language and the program
1.1 Aims of this chapter
1.2 R
1.2.1 What is R?
1.2.2 R as a language

1.2.3 R as a computer program

The R console where the user can type textual commands one by one. Here the user has typed print(âHelloâ) and entered it by ending the line of text by pressing the âenterâ key. The result of running the command is displayed below the command. The character at the head of the input line, a â>â in this case, is called the command prompt, signaling where a command can be typed in. Commands entered by the user are displayed in red, while results returned by R are displayed in blue.
Table of contents
- Cover
- Half Title
- Title Page
- Copyright Page
- Table of Contents
- Preface
- 1 R: The language and the program
- 2 The R language: âWordsâ and âsentencesâ
- 3 The R language: âParagraphsâ and âessaysâ
- 4 The R language: Statistics
- 5 The R language: Adding new âwordsâ
- 6 New grammars of data
- 7 Grammar of graphics
- 8 Data import and export
- Bibliography
- General index
- Index of R names by category
- Alphabetic index of R names