# # # R代码从装饰图案的DO.db来源。Rnw“# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #代码块1号:DO.db。Rnw: 48-50 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #库(DO.db)帮助(DO.db) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #代码块2号:DO.db。Rnw: 58 - 65 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # FirstTenDOBimap < - DOTERM[1:10] # #抓提斯十类(FirstTenDOBimap) xx <——as.list (FirstTenDOBimap) DOID (xx[[2]])术语(xx[[2]])同义词(xx[[2]])二级(xx[[2]]) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 3号代码块:DO.db。Rnw: 82 - 87 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # xx < - as.list (DOANCESTOR) #删除id做没有任何祖先xx < - xx [! is.na (xx)] #显示前4 DOID的祖先xx[1:4] # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #代码块数量4:DO.db。Rnw: 98 - 103 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # xx < - as.list (DOPARENTS) #删除id做没有任何祖先xx < - xx [! is.na (xx)] #显示前4 DOID的祖先xx[1:4] # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #代码块5号:DO.db。Rnw: 117 - 122 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # xx < - as.list (DOOFFSPRING) #删除id做没有任何祖先xx < - xx [! is.na (xx)] #显示前4 DOID的祖先xx[1] # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #代码块6号:DO.db。Rnw: 135 - 140 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # xx < - as.list (DOCHILDREN) #删除id做没有任何祖先xx < - xx [! is.na (xx)] #显示前4 DOID的祖先xx[1] # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #代码块7号:DO.db。Rnw: 147 - 148 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # DO_dbschema() # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #代码块8号:DO.db。Rnw: 153 - 155 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # DOMAPCOUNTS