splitVectorByNodes: splitVectorByNodes

View source: R/graph_embedding.R

splitVectorByNodesR Documentation

splitVectorByNodes

Description

splitVectorByNodes

Usage

splitVectorByNodes(vec, nodes, n.nodes)

Arguments

vec

input vector to be divided

nodes

nodes used to divide the vector 'vec' via split()

n.nodes

numeric The number of nodes for splitting

Value

list from vec with names given by the nodes

Examples

adjList = graphToAdjList(conosGraph)
print(names(adjList))
## [1] "idx" "probabilities" "names" 
length(adjList$names)
## [1] 12000


kharchenkolab/sccore documentation built on Feb. 26, 2024, 12:41 a.m.