Solution of Assignment @ http://mbaskills.in/mlm2019-session-2/

Task 2: Read the dataset in memory

cc.df = read.csv("DefaultData.csv", header = TRUE)

Task 3: Display the name of the columns in the dataframe

colnames(cc.df)
## [1] "default" "student" "balance" "income"

Task 4: Dimensions of data frame

dim(cc.df)
## [1] 10000     4

Task 5: Descriptive Statistics

# Mean of income
mean(cc.df$income)
## [1] 33516.98
# Standard Deviation of income
sd(cc.df$income)
## [1] 13336.64
# Mean of balance
mean(cc.df$balance)
## [1] 835.3749
# Standard Deviation of balance
sd(cc.df$balance)
## [1] 483.715

Task 6: Final Comments