1 / 5

R libraries

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. R libraries How to download, install, and attach

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

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

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

  5. Attaching library • library(Design) • lrm • library(help=Design) • library(MPV) • library(help=MPV) • data <- table.b1

More Related