store list in data.frame R
# Create a list with sample data
my_list <- list(
Name = c("Alice", "Bob", "Charlie"),
Age = c(25, 30, 22),
Score = c(95, 89, 75)
)
# Convert the list to a data frame
my_data_frame <- as.data.frame(my_list)
# Print the data frame
print(my_data_frame)