September 2018
Beginner
206 pages
4h 27m
English
The following is the code we need to execute to accomplish the activity:
library(readr)students <- read_csv("https://github.com/TrainingByPackt/R-Programming-Fundamentals/blob/master/lesson1/students.csv")students$StudentID <- seq(1:nrow(students))students2 <- data.frame("ID" = seq(1:25), "Gender" = sample(c("M","F"), size = 25, replace = TRUE), "Grade" = sample(c(9,10,11,12), size = 25, replace = TRUE), "Sport" = sample(c("Basketball", "Tennis", "Track", "None"), size = 25, replace = TRUE))str(students2)
Read now
Unlock full access