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

Reading multivariate data using read.table

Reading multivariate data from a file or an external URL can generally be done using the read.table() or read.csv() commands, depending on the type of data source. In this exercise you will read the wine dataset from the UCI machine learning website. A full description of the dataset can be found here.

For more details on reading data in R, you can consult the Introduction to Importing Data in R and Intermediate Importing Data in R courses. After this exercise, the wine dataset will be preloaded for you.

Bu egzersiz

Multivariate Probability Distributions in R

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

Egzersiz talimatları

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Read in the wine dataset
wine <- read.table("___", sep = ",")

# Print the first four entries
head(___)

# Find the dimensions of the data
dim(___)

# Check the names of the wine dataset 
___
Kodu Düzenle ve Çalıştır