Skip to content

Instantly share code, notes, and snippets.

@theyesils
Created May 25, 2020 17:45
Show Gist options
  • Save theyesils/b98d2187c5d5e53c34ce97633aa35e99 to your computer and use it in GitHub Desktop.
Save theyesils/b98d2187c5d5e53c34ce97633aa35e99 to your computer and use it in GitHub Desktop.
#import library we need
library(readr)
library(modeest)
#download the dataset
mafs<-read_csv("C:/Users/Asus/Desktop/mafs.csv")
View(mafs)
# To view structure of dataset
str(mafs)
age=mafs$Age
#mean
mean(age)
#median
median(age)
#Mode
mfv(age)
#Quartiles
quantile(age)
#Summary
summary(age)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment