I´m trying to create an dataframe which is holding an ID and an numeric vector with an unknown count of grades per row, but I don´t know how to do this.
studentmean <-
data.frame(
Student = character(),
Grades = c(0),
stringsAsFactors = FALSE
)
Later I am trying to add a new row to the dataframe using:
gradeList <- getGradesOfStudent(data$ResultFrame, matriculationNumber)$Grades
studentmean[nrow(studentmean) + 1, ] = list(as.character(matriculationNumber), gradeList
How is it possible to store an vector of numeric values inside a single dataframe cell?