I want to save a list of object in the dataframe. I'm wondering if it works in R programming. Here's several fake data about statistic mid-term score in different class:
name <- c('John','Mary','George','Sam','Bruce','Kiki','Jossef','Chen','Bob','May')
score_sample <- sample(1:100, 10, replace = TRUE)
eco_1A <- data.frame(name = name , score = score_sample)

I want to know which student pass the test, and it would look like this:
class <- c('eco_1A','eco_1B','soc_1A','BA_1A','BA_1B')
pass_name_sheet <- c('Mary,Sam','Bruce','Jack','Kiki,Cheng,Bob','Jossef' )
all_score <- data.frame(class = class ,pass_name_sheet = pass_name_sheet)

I want to know each student's name who pass the test for each class.
How should I do?