我想创建键,然后将所有值拉到一个列表中,但是,当我尝试拉值时,出现此错误:
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘values’ for signature ‘"hash"’
不确定是否存在格式问题。这是我当前的代码:
myMarkersList <- hash("Neuron", c("Snap25","Meg3"))
myMarkersList$GABAergic <- c("Ndnf","Vip")
myMarkersList$Microglia <- c("Ctss","Csf1r")
myMarkersList$Astrocytes <- c("Gfap","Aqp4")
myMarkersList$Endothelial <- c("Xdh","Flt1")
myMarkersList$OPC <- c("Pdgfra")
myMarkersList$Oligodendrocyte <- c("Opalin","Olig1")
myMarkersList$Glutamatergic <- c("Ptgs2", "Ngb")
myGenesList <- values(myMarkersList)
myMarkers <-c()
在尝试创建myGenesList时出现错误