Skip to content

Instantly share code, notes, and snippets.

@karan19100
Created July 18, 2020 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karan19100/4c4fadd13f21185b9b1504399a66d71a to your computer and use it in GitHub Desktop.
Save karan19100/4c4fadd13f21185b9b1504399a66d71a to your computer and use it in GitHub Desktop.
datasetdetails_by_karan shah
library(e1071) # it includes function to compute skewness
library(plyr) # it allows to wrangle data
library(ggplot2) # it allows to create a number of different types of plots
ais2 <- subset(ais, sex=="m") # only male athletes
ais3 = ais2[,c(3,4)] # subset column number that correspond to "hg" and "hc"
newdata <- rename(ais3, c("hg"="HEMAGLOBIN", "hc"="HEMATOCRIT"))
str(newdata)
summary(newdata) # overview of the two selected variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment