Learn R Programming

VOSONDash (version 0.5.7)

getVertexCategories: Get a list of vertex category attribute names and values

Description

This function returns a list of graph vertex attribute names that match a category attribute prefix format and their unique values.

Usage

getVertexCategories(g, cat_prefix = "vosonCA_")

Arguments

g

igraph graph object.

cat_prefix

Character string. Category attribute prefix format to match. Default is "vosonCA_".

Value

A named list of vertex category attributes and values.

Examples

Run this code
# NOT RUN {
# get a list of voson vertex categories and values
g <- loadPackageGraph("DividedTheyBlog_40Alist_release.graphml")

vcats <- getVertexCategories(g)

# vcats
# $Stance
# [1] "conservative" "liberal"  
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab