R libraries
Download
1 / 5

R libraries - PowerPoint PPT Presentation


  • 75 Views
  • Uploaded on

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.)

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' R libraries' - rigel-pennington


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


ad