Skip to Content
R Programming By Example
book

R Programming By Example

by Omar Trejo Navarro
December 2017
Beginner to intermediate
470 pages
12h 29m
English
Packt Publishing
Content preview from R Programming By Example

Loading R packages

At this point, you should be able to load the R packages you need for this book, and you can do so using the library() or require() functions, both of which take the name of the package you want to load as an argument.

You may be wondering why you need to load packages into R to use them. If every package were loaded into R by default, you may think you were using one function but really be using another. Even worse, it's possible for there to be internal conflicts: two different packages may use the exact same functions names, resulting in strange and unexpected results. By only loading packages that you need, you can minimize the chance of these conflicts.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Efficient R Programming

Efficient R Programming

Colin Gillespie, Robin Lovelace
R Programming

R Programming

Jared P. Lander

Publisher Resources

ISBN: 9781788292542Supplemental Content