Professional Documents
Culture Documents
I. Students’ details
Author: “Individual work”
Subtitle: Practical assessment 1
Output:
pdf_document: default html_notebook:
default html_document: df_print: paged —
IV. Manipulation
IV.1 Dimension
Check dimension of data set titanic, using method dim in library : tidyverse
dim(ds_titanic)
## [1] 1309 21
It’s mean the data set titanic have total 21 columns and 1309 rows.
Show columns name of data set
IV.2 Columns
colnames(ds_titanic)
str(matrix_ds_titanic)
## PassengerId Age
## 1 1 22
## 2 2 38
## 3 3 26
## 4 4 35
## 5 5 35
## 6 6 NA
## 7 7 54
## 8 8 2
## 9 9 27
## 10 10 14
V. Reference
1. Data source :
https://github.com/datasciencedojo/datasets/blob/master/titanic.csv
2. http://campus.lakeforest.edu/frank/FILES/MLFfiles/Bio150/Titanic/
TitanicMETA.pdf