ucla_f18 | R Documentation |
List of all courses at UCLA during Fall 2018.
ucla_f18
A data frame with 3950 observations on the following 14 variables.
Year the course was offered
Term the course was offered
Subject
Subject abbreviation, if any
Course name
Course number, complete
Course number, numeric only
Boolean for if this is a seminar course
Boolean for if this is some form of independent study
Boolean for if this is an apprenticeship
Boolean for if this is an internship
Boolean for if this is an honors contracts course
Boolean for if this is a lab
Boolean for if this is any of the special types of courses listed
https://sa.ucla.edu/ro/public/soc, retrieved 2018-11-22.
nrow(ucla_f18)
table(ucla_f18$special_topic)
subset(ucla_f18, is.na(course_numeric))
table(subset(ucla_f18, !special_topic)$course_numeric < 100)
elig_courses <-
subset(ucla_f18, !special_topic & course_numeric < 100)
set.seed(1)
ucla_textbooks_f18 <-
elig_courses[sample(nrow(elig_courses), 100), ]
tmp <- order(
ucla_textbooks_f18$subject,
ucla_textbooks_f18$course_numeric
)
ucla_textbooks_f18 <- ucla_textbooks_f18[tmp, ]
rownames(ucla_textbooks_f18) <- NULL
head(ucla_textbooks_f18)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.