Show R code
library(readr)
library(dplyr)
library(tidyr)
library(ggplot2)
li_data <- read_csv(
"LinkedIn Learning Course Data - CLEAN DATASET 76 Courses.csv",
skip = 1,
show_col_types = FALSE
)
dim(li_data)[1] 76 18
In this project, I wanted to understand how LinkedIn (LI) Learning courses include two kinds of instructional support: exercise files, which can help learners practice or apply a skill, and assessments, which can help learners check their understanding. Both support learning, but differently.
I examined 76 courses I was previously interested in and saved, looking for patterns that LinkedIn instructional designers might consider when reviewing or developing LI courses.
Main research question: How does the availability of exercise files and assessments vary across courses with different design characteristics?
I explored three related questions:
The intended audience is LI instructional designer responsible for LI courses.
Krumm, Means, and Bienkowski (2018) describe how educational data can be prepared, examined, and used to inform improvement decisions. Littlejohn (2022) discusses learning analytics in professional learning contexts. I used these perspectives to approach the dataset with a practical question in mind: What could these course features tell us about design choices worth investigating further?
My dataset contains publicly available information that I manually entered into a spreadsheet from 76 LinkedIn Learning courses I had saved. This is a convenience sample: I did not randomly select courses from the platform. I had already done some initial spreadsheet cleaning before importing the data into R.
The CSV has an extra descriptive first row, so I used skip = 1 to make R read the actual column headings.
library(readr)
library(dplyr)
library(tidyr)
library(ggplot2)
li_data <- read_csv(
"LinkedIn Learning Course Data - CLEAN DATASET 76 Courses.csv",
skip = 1,
show_col_types = FALSE
)
dim(li_data)[1] 76 18
Even though I had cleaned the spreadsheet, I checked it again in R. I looked for repeated course codes and missing values before using the data in my analysis.
data.frame(
Check = c("Number of courses", "Number of variables", "Repeated course codes", "Missing values"),
Result = c(nrow(li_data), ncol(li_data),
sum(duplicated(li_data$`Course Code`)),
sum(is.na(li_data)))
)There were 76 courses, 18 variables, no duplicate course codes, and no missing values.
One issue I found was that exercise files and assessments were marked with both uppercase and lowercase letters (Y/y and N/n). R treats those as different values, so I changed them to consistent Y and N responses.
li_data <- li_data %>%
mutate(
`Exercise Files Provided?` = toupper(trimws(`Exercise Files Provided?`)),
`Assessment Provided?` = toupper(trimws(`Assessment Provided?`))
)
stopifnot(
all(li_data$`Exercise Files Provided?` %in% c("Y", "N")),
all(li_data$`Assessment Provided?` %in% c("Y", "N"))
)
rbind(
`Exercise files` = table(factor(li_data$`Exercise Files Provided?`, levels = c("N", "Y"))),
Assessments = table(factor(li_data$`Assessment Provided?`, levels = c("N", "Y")))
) N Y
Exercise files 28 48
Assessments 22 54
First, I compared the availability of the two features across Beginner, Intermediate, Advanced, and General courses. Because the groups contain different numbers of courses, percentages are more helpful than counts alone.
level_names <- c(B = "Beginner", I = "Intermediate", A = "Advanced", G = "General")
support_by_level <- li_data %>%
select(Level, `Exercise Files Provided?`, `Assessment Provided?`) %>%
pivot_longer(-Level, names_to = "Feature", values_to = "Provided") %>%
group_by(Level, Feature) %>%
summarise(
Courses = n(),
Percent = mean(Provided == "Y") * 100,
.groups = "drop"
) %>%
mutate(
Level = factor(Level, levels = names(level_names), labels = unname(level_names)),
Feature = recode(Feature,
`Exercise Files Provided?` = "Exercise files",
`Assessment Provided?` = "Assessments"
)
)
ggplot(support_by_level, aes(x = Level, y = Percent, fill = Feature)) +
geom_col(position = position_dodge(width = 0.8), width = 0.7) +
scale_y_continuous(limits = c(0, 105), breaks = seq(0, 100, 20)) +
labs(
title = "Availability of Instructional Support by Difficulty",
subtitle = "Percentage within each course difficulty level",
x = "Course difficulty", y = "Courses providing feature (%)", fill = "Feature"
) +
theme_minimal()
What I noticed: Exercise files were more common in Intermediate courses (77.3%) and Advanced courses (80.0%) than in Beginner courses (52.9%). Assessments did not follow the same pattern. For example, 76.5% of Beginner courses included assessments, compared with 63.6% of Intermediate courses.
The Advanced group includes only five courses, so its percentages can be considered a bit skewed.
I first compared the typical length of courses with and without each support feature. I used both the mean (average) and the median (middle value) because a few unusually long courses could affect the average.
duration_summary <- li_data %>%
select(`Time (min)`, `Exercise Files Provided?`, `Assessment Provided?`) %>%
pivot_longer(-`Time (min)`, names_to = "Feature", values_to = "Provided") %>%
group_by(Feature, Provided) %>%
summarise(
Courses = n(),
Mean_minutes = round(mean(`Time (min)`), 1),
Median_minutes = median(`Time (min)`),
.groups = "drop"
) %>%
mutate(Feature = recode(Feature,
`Exercise Files Provided?` = "Exercise files",
`Assessment Provided?` = "Assessments"))
duration_summaryThe boxplots below help me see both the typical duration and the unusually long courses instead of looking only at averages.
duration_data <- li_data %>%
select(`Time (min)`, `Exercise Files Provided?`, `Assessment Provided?`) %>%
pivot_longer(-`Time (min)`, names_to = "Feature", values_to = "Provided") %>%
mutate(Feature = recode(Feature,
`Exercise Files Provided?` = "Exercise files",
`Assessment Provided?` = "Assessments"))
ggplot(duration_data, aes(x = Provided, y = `Time (min)`, fill = Provided)) +
geom_boxplot(alpha = 0.7) +
facet_wrap(~Feature) +
labs(
title = "Course Duration With and Without Instructional Support",
x = "Feature provided? (N = No, Y = Yes)",
y = "Duration (minutes)"
) +
theme_minimal() +
theme(legend.position = "none")
What I noticed: Courses with exercise files had a median duration of 62 minutes, compared with 45.5 minutes for those without. For assessments, the median durations were almost the same: 58.5 minutes with assessments and 60.5 minutes without.
The tables and charts showed a difference for exercise files. I wanted to check whether that difference was also supported by a statistical comparison.
I used a Wilcoxon rank-sum test because each comparison involves two separate groups (Yes and No), course duration is numerical, and the durations include unusually long courses. The test compares the relative ranks of course durations instead of simply comparing the two averages. It does not tell me why a difference exists or whether it matters for learning.
I ran the same test for assessments to see whether that feature showed a similar pattern.
exercise_test <- wilcox.test(
`Time (min)` ~ `Exercise Files Provided?`,
data = li_data, exact = FALSE
)
assessment_test <- wilcox.test(
`Time (min)` ~ `Assessment Provided?`,
data = li_data, exact = FALSE
)
data.frame(
Comparison = c("Exercise files", "Assessments"),
W = c(unname(exercise_test$statistic), unname(assessment_test$statistic)),
p_value = round(c(exercise_test$p.value, assessment_test$p.value), 3)
)What I learned: This test found evidence of a difference in course-duration distributions for exercise files (W = 429, p = .009), but not for assessments (W = 604.5, p = .909). In this sample, courses with exercise files tended to be longer. I did not find similar evidence for assessments.
I also wondered whether courses listing more skills were more likely to include these features. I compared the number of skills listed for courses with and without exercise files and assessments.
skills_summary <- li_data %>%
select(`#Skills listed to gain`, `Exercise Files Provided?`, `Assessment Provided?`) %>%
pivot_longer(-`#Skills listed to gain`, names_to = "Feature", values_to = "Provided") %>%
group_by(Feature, Provided) %>%
summarise(
Courses = n(),
Mean_skills = round(mean(`#Skills listed to gain`), 1),
Median_skills = median(`#Skills listed to gain`),
.groups = "drop"
) %>%
mutate(Feature = recode(Feature,
`Exercise Files Provided?` = "Exercise files",
`Assessment Provided?` = "Assessments"))
skills_summaryWhat I noticed: The average number of listed skills was similar across groups (about 1.5 to 1.8 skills). I did not see a particularly useful pattern here. The number of skills listed on a course page may also be too limited a measure to capture everything a course teaches.
Because exercise files and assessments serve different purposes, I looked at them together. A course might include both, only one, or neither.
profile_data <- li_data %>%
mutate(Support_Profile = case_when(
`Exercise Files Provided?` == "Y" & `Assessment Provided?` == "Y" ~ "Both",
`Exercise Files Provided?` == "N" & `Assessment Provided?` == "N" ~ "Neither",
`Exercise Files Provided?` == "Y" ~ "Exercise files only",
TRUE ~ "Assessments only"
))
profile_counts <- profile_data %>%
count(Support_Profile, name = "Courses") %>%
mutate(Percentage = round(100 * Courses / sum(Courses), 1))
profile_countsggplot(profile_counts, aes(x = reorder(Support_Profile, Percentage), y = Percentage)) +
geom_col(fill = "steelblue", width = 0.65) +
geom_text(aes(label = paste0(Percentage, "%")), hjust = -0.15) +
coord_flip() +
scale_y_continuous(limits = c(0, 65)) +
labs(
title = "Combinations of Instructional Support",
subtitle = "76 LinkedIn Learning courses",
x = NULL, y = "Percentage of courses"
) +
theme_minimal()
What I noticed: 41 courses (53.9%) included both features, while 15 courses (19.7%) included neither. The remaining courses included just one feature. I found the courses with neither feature especially interesting, but the data do not tell me whether they offer other ways to practice or check understanding.
I then compared the courses with both features, one feature, and neither feature. For this comparison, I grouped the two types of “one feature” courses together.
profile_data <- profile_data %>%
mutate(Profile_Group = case_when(
Support_Profile == "Both" ~ "Both",
Support_Profile == "Neither" ~ "Neither",
TRUE ~ "One feature"
))
profile_data %>%
group_by(Profile_Group) %>%
summarise(
Courses = n(),
Mean_duration = round(mean(`Time (min)`), 1),
Median_duration = median(`Time (min)`),
Mean_skills = round(mean(`#Skills listed to gain`), 1),
.groups = "drop"
)Courses with both features were somewhat longer on average than courses with neither feature, but their median durations were fairly close (59 versus 54 minutes). Their average numbers of skills were also similar (1.6 versus 1.7). Duration and skills alone did not clearly distinguish the two groups.
Finally, I checked how these combinations were distributed across difficulty levels.
level_counts <- profile_data %>% count(Level)
level_labels <- c(
B = paste0("Beginner\n(n=", level_counts$n[level_counts$Level == "B"], ")"),
I = paste0("Intermediate\n(n=", level_counts$n[level_counts$Level == "I"], ")"),
A = paste0("Advanced\n(n=", level_counts$n[level_counts$Level == "A"], ")"),
G = paste0("General\n(n=", level_counts$n[level_counts$Level == "G"], ")")
)
ggplot(profile_data, aes(x = Level, fill = Profile_Group)) +
geom_bar(position = "fill") +
scale_x_discrete(limits = c("B", "I", "A", "G"), labels = level_labels) +
scale_y_continuous(labels = scales::percent) +
labs(
title = "Support Combinations Across Course Difficulty Levels",
subtitle = "Each bar represents 100% of courses at that level",
x = "Course difficulty", y = "Percentage of courses", fill = "Features provided"
) +
theme_minimal()
What I noticed: 63.6% of Intermediate courses included both features, compared with 47.1% of Beginner and 46.7% of General courses. Four out of five Advanced courses included both, but that level has too few courses for a strong conclusion. Overall, the pattern did not follow a simple progression from Beginner to Advanced.
I found that courses combine instructional supports in different ways, and that exercise files and assessments do not show identical patterns. The results suggest several practical questions for instructional designers:
For someone managing a catalog of online courses, these patterns could provide a starting point for a design review. I would not use the findings to require every course to have both features. I would use them to ask more informed questions about the choices behind the design.
I selected these 76 courses from my own saved courses, so this is not a representative sample of LinkedIn Learning.
I recorded whether the platform listed exercise files or assessments. I did not examine the quality of those features, whether learners used them, or whether they improved knowledge or skills. I also did not examine other possible ways a course could support practice or feedback. The findings are exploratory and do not establish cause and effect.
The dataset consists of course-level information publicly available through LinkedIn Learning, rather than records about individual learners. I have acknowledged the platform as the source and avoided making judgments about individual instructors or courses based solely on these features.
Throughout this course, I learned that R can help answer questions in more ways than I initially imagined. At first, I was overwhelmed by the idea that I needed to memorize commands and know exactly when to use them. I now understand that I need to think carefully about what I want to find out before deciding which analysis or code to use.
As someone without a programming background, AI has been a valuable tutor for understanding concepts, working through errors, and learning how to use R. Having previously explored this dataset in Jamovi also helped. R made some patterns easier for me to see and allowed me to confirm some earlier observations. I especially appreciated being able to run code and see the results directly in a Quarto report as the analysis developed.
My biggest takeaway is that meaningful learning analytics starts with asking good questions and thinking deeply about what I want to understand from the data, rather than starting with the code.
I used ChatGPT to help me learn R concepts, generate and troubleshoot code, understand statistical outputs, and organize this Quarto report. I guided the research questions and analytical choices, reviewed the results, and remain responsible for the interpretations and conclusions.
Krumm, A., Means, B., & Bienkowski, M. (2018). Learning analytics goes to school: A collaborative approach to improving education. Routledge.
Littlejohn, A. (2022). Professional learning analytics. In C. Lang, G. Siemens, A. F. Wise, D. Gašević, & A. Merceron (Eds.), Handbook of learning analytics (2nd ed., pp. 141–151). Society for Learning Analytics Research. https://doi.org/10.18608/hla22
LinkedIn Learning. (n.d.). LinkedIn Learning [Online learning platform and course information]. https://www.linkedin.com/learning/