包含标签:tidyr 的文章
-
给定R中的父子关系,如何展平分层数据结构
我有描述父子关系的数据: df <- tibble::tribble( ~Child, ~Parent, "Fruit", "Food", "Vegetable", "Food", "Apple"…… -
使用不同的数据类型从 long 扩展/枢轴扩展时遇到问题
tst <- data.frame(ID = c(123, 123, 123, 124, 124, 124), Identifier = c("S2", "S2", "S5", "S3", "S2", "S2"), Speed = ……