【发布时间】:2021-11-10 21:46:42
【问题描述】:
这是对上一个问题的跟进:Read functions as text and use for plotting
映射函数的输出...
data %>%
bind_cols(
map(.x = models,.f = text_model) %>%
set_names(models) %>%
bind_rows(.id = "model")
)
...生成一个数据框,其中每个函数的结果写入单独的列(函数包含在列标题中)。
但是,最好附加每个函数的输出,以便所有结果都包含在同一列中,并使用单独的列来跟踪哪个函数(“model001”、“model002”、...” model500") 生成结果。
如何调整上一个问题(Read functions as text and use for plotting)的代码以这种方式编写结果?
编辑:有人建议Read functions as text and use for plotting 作为答案,但这篇文章是关于如何将输出写入单个列(而不是每个函数的单独列)的后续文章。
【问题讨论】:
-
这能回答你的问题吗? Read functions as text and use for plotting
-
这是对该问题的后续跟进
-
...将函数输出写入单个列(而不是每个函数的单独列)