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

Tabulating using bigtable

The bigtabulate package provides optimized routines for creating tables and splitting the rows of big.matrix objects. Let's say you wanted to see the breakdown by ethnicity of mortgages in the housing data. The documentation from the website provides the mapping from the numerical value to ethnicity. In this exercise, you'll create a table using the bigtable() function, found in the bigtabulate package.

Bu egzersiz, kursun bir parçasıdır

Scalable Data Processing in R

Kursa Göz Atın

Egzersiz talimatları

The character vector race_cat is available in your workspace.

  • Load the bigtabulate package.
  • Call bigtable() create a variable called race_table.
  • Rename the elements of race_table to race_cat using the names() function.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Load the bigtabulate package
___

# Call bigtable to create a variable called race_table
___ <- ___(mort, "borrower_race")

# Rename the elements of race_table
___(race_table) <- ___
race_table
Kodu Düzenle ve Çalıştır