我正在尝试在R中从嵌套列表中创建数据框。以下是一个示例:
mylist<-list(file1 = list("a", sample1 = list(x = 2, y = list(c(1, 2)),
sample2 = list(x = 4, y = list(c(3, 8))))), file2 = list(
"a", sample1 = list(x = 6, y = list(c(6, 4)), sample2 = list(
x = 6, y = list(c(7, 4))))))
我想知道如何从嵌套列表中提取所有特征'x'和特征'y',并将特征'y'拆分为两列; 每个值分别放在一列里?谢谢大家的时间!
data.frame
吗? - Maurits Evers