BaşlayınÜcretsiz Başlayın

Add functionality with packages

To add functionality to base R, you need to install and load packages. For this exercise, the dplyr package is already loaded. You can confirm that the dplyr package is loaded and available for use by running the sessionInfo() command to view your R session status including all loaded packages.

You will then use the library() function to load the package Hmisc and run sessionInfo() again to confirm that the Hmisc package was loaded as well.

Bu egzersiz

R For SAS Users

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Run sessionInfo() to confirm that the dplyr package is listed under "other attached packages".
  • Use the library() function to load the Hmisc package.
  • Run sessionInfo() again to see that the Hmisc package was added to your session functionality.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Run sessionInfo() see packages available to this session
___

# Load Hmisc package
library(___)

# Run sessionInfo() again to see updated package list
___
Kodu Düzenle ve Çalıştır