R/func.getVertexAttributes.R

Defines functions getVertexAttributes

getVertexAttributes <- function(dt.graph, vertex.name){
    attributes <- {dt.graph %>% vertex.attributes} %>% lapply(function(x){
        return(x[which(V(dt.graph)$name == vertex.name)])  
    })
    return(attributes)
}
davidmacro/frog2features documentation built on Oct. 27, 2021, 12:17 a.m.