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

Attaching a big.matrix object

Now that the big.matrix object is on the disk, we can use the information stored in the descriptor file to instantly make it available during an R session. This means that you don't have to reimport the data set, which takes more time for larger files. You can simply point the bigmemory package at the existing structures on the disk and begin accessing data without the wait.

Bu egzersiz

Scalable Data Processing in R

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

Egzersiz talimatları

The big.matrix object x is available in your workspace.

  • Create a new variable mort that points to x by attaching the "mortgage-sample.desc" file using the attach.big.matrix() function.
  • Verify that the dimensions of mort are the same as the last exercise.
  • Call head() on mort.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Attach mortgage-sample.desc
mort <- ___(___)

# Find the dimensions of mort
___

# Look at the first 6 rows of mort
___
Kodu Düzenle ve Çalıştır