我遇到了od2line函数问题,该错误说明了所有数据;
错误:
No match for line 132No match for line 133No match for line 134No match for line 226No match for line 242No match for line 243No match for line 619No match for line 620No match for line 847No match for line 865No match for line 959No match for line 960No match for line 961No match for line 992No match for line 1089
但是我不确定为什么,因为使用的数据集是必需的;
流数据:数据帧(flbo)
GP_ODS Ph_ODS Items
1 01F998 FA414 41
2 01F998 FA414 48
3 01F998 FA414 2
4 01F998 FAG38 2
5 01F998 FAG38 1
6 01F998 FC879 3
原始数据:空间点数据帧(mergp)
ODS NAME PCNS TYPE ITEMS FORM
1 01F998 UNIDENTIFIED DOCTORS WA75TD NA 324 GP
2 01J998 UNIDENTIFIED DOCTORS L366GA NA 26328 GP
3 01T998 UNIDENTIFIED DOCTORS L203DL NA 899 GP
4 01V998 UNIDENTIFIED DOCTORS PR86PL NA 20 GP
5 01X998 UNIDENTIFIED DOCTORS WA102AP NA 63 GP
6 12F998 UNIDENTIFIED DOCTORS CH415AL NA 18 GP
目标数据:空间点数据帧(merph)
ODS NAME PCNS TYPE ITEMS FORM
1 FA002 ROWLANDS PHARMACY SK75LD Managed Chain 102018 PH
2 FA007 ROWLANDS PHARMACY CM94GD Managed Chain 100016 PH
3 FA008 BOOTS LS28DB Boots 48120 PH
4 FA012 MEDICHEM E14LR Independent 269952 PH
5 FA020 LLOYDS PHARMACY HU181AB Managed Chain 38102 PH
6 FA026 GRENDON PHARMACY CV92EW Independent 67929 PH
创建流程的代码:
travel_network <- od2line(flow = flbo, zones = mergp, destinations = merph, zone_code = names(mergp)[1], origin_code = names(flbo)[1], dest_code = names(flbo)[2], zone_code_d = names(merph)[1]) head(flbo)
有人看到了这个问题吗?