R libraries
This presentation is the property of its rightful owner.
Sponsored Links
1 / 5

R libraries PowerPoint PPT Presentation


  • 61 Views
  • Uploaded on
  • Presentation posted in: General

R libraries. How to download, install, and attach. Download & Install. Click “Packages > Install package(s)... Choose CRAN mirror site closer is better USA (NC) or USA(PA1) recommended Scroll through to find package e.g., Design (useful package for ROC curves, etc.)

Download Presentation

R libraries

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


R libraries

R libraries

How to

download, install, and attach


Download install

Download & Install

  • Click “Packages > Install package(s)...

  • Choose CRAN mirror site

    • closer is better

    • USA (NC) or USA(PA1) recommended

  • Scroll through to find package

    • e.g., Design (useful package for ROC curves, etc.)

    • e.g., MPV (datasets for the MPV homeworks)

  • Double-click on package to install


Other options

Other options

  • You can save library as zip file and then install

    • Why?

      • you have a copy of it for later use

      • it will be on your computer if/when you upgrade your R to a new version

  • Update packages already installed

    • you can have R update all of your packages that are currently installed


Attaching library

Attaching library

  • Just because the library is installed does not mean you can use it.

  • You must “attach” it in every session that you want to use it.

  • Example:

    • lrm is in Design library

    • try typing lrm. R can’t find it.

    • need to attach library


Attaching library1

Attaching library

  • library(Design)

  • lrm

  • library(help=Design)

  • library(MPV)

  • library(help=MPV)

  • data <- table.b1


  • Login