【发布时间】:2019-12-23 21:28:06
【问题描述】:
我在 R 数据框中有一个带有文本的向量,如下所示:
string<-c("Real estate surface: 60m2 Number of rooms: 3 Number of bedrooms: 2 Number of bathrooms: 1 Number of toilets: 0 Year of construction: 1980 Last renovation: Floor: 1/15")
并且我想将文本拆分为具有关联值的 8 列数据框,例如
我该怎么做? 谢谢!
【问题讨论】:
-
Last renovation之后是空的吗 -
是的。缺失值
-
你尝试过什么,你在哪里卡住了?