This is the R Markdown file for the HW2 of DACS-601 Summer 2022. Iām using the australian marriage tidy csv file from the Sample Datasets.
print("Loading data...")
## [1] "Loading data..."
australian_marriage_tidy <- read.csv("C:/Users/apoor/Desktop/UMass/Summer 2022/DACS 601 - R Programming/datasets/australian_marriage_tidy.csv")
print("Data loaded!")
## [1] "Data loaded!"
head(australian_marriage_tidy)
## territory resp count percent
## 1 New South Wales yes 2374362 57.8
## 2 New South Wales no 1736838 42.2
## 3 Victoria yes 2145629 64.9
## 4 Victoria no 1161098 35.1
## 5 Queensland yes 1487060 60.7
## 6 Queensland no 961015 39.3
print("Dimensions: ")
## [1] "Dimensions: "
dim(australian_marriage_tidy)
## [1] 16 4
print("Column names: ")
## [1] "Column names: "
colnames(australian_marriage_tidy)
## [1] "territory" "resp" "count" "percent"
print("Data types: ")
## [1] "Data types: "
sapply(australian_marriage_tidy, class)
## territory resp count percent
## "character" "character" "integer" "numeric"