set.seed(42)
toy_data <- simulateToyData()
net <- generateNetworkObjects(
toy_data, "CloneSeq"
)
# Add default set of node properties
net <- addNodeStats(net)
# Modify default set of node properties
net <- addNodeStats(
net,
stats_to_include =
chooseNodeStats(
closeness = TRUE,
page_rank = FALSE
)
)
# Add only the spepcified node properties
net <- addNodeStats(
net,
stats_to_include =
exclusiveNodeStats(
degree = TRUE,
transitivity = TRUE
)
)
# Add all node-level network properties
net <- addNodeStats(
net,
stats_to_include = "all"
)
Run the code above in your browser using DataLab