Learn R Programming

ggenealogy (version 1.0.3)

dfToIG: Process the genealogy graph

Description

Processes the genealogy into an igraph object with appropriate vertex information, graph type, and edge weights.

Usage

dfToIG(geneal, vertexinfo = NULL, edgeweights = 1, isDirected = FALSE)

Arguments

geneal

the full genealogy (in data frame format)

vertexinfo

(default NULL) either names of columns in the genealogy which should be added to the database as vertex information or a data frame with information for all vertices such that the first column contains vertex names.

edgeweights

(default 1) name of a column which contains edge weights

isDirected

(default FALSE) should the graph be a directed graph?

See Also

https://www.r-project.org for iGraph information