identity_match: Assign Common Id to Nodes and Edgelists to Git and Mbox

View source: R/identity.R

identity_matchR Documentation

Assign Common Id to Nodes and Edgelists to Git and Mbox

Description

Assign Common Id to Nodes and Edgelists to Git and Mbox

Usage

identity_match(
  project_log,
  name_column,
  assign_identity_function,
  use_name_only = FALSE,
  label
)

Arguments

project_log

A list which can be any number of tables from parse_gitlog or parse_mbox

name_column

A string or vector of strings containing the column names which identity match should apply. One column name should provided for each table in the 'project_log' list.

assign_identity_function

The heuristic function which decides common IDs (currently only available: assign_exact_identity)

use_name_only

Uses only the name field (i.e. disregard the e-mail field)

label

Whether to replace the original non matched name with the collection of all names (label == raw_name), or an id (label == identity_id)

Value

Returns 'project_log', with two added columns, 'raw_name' and 'identity_id'. 'raw_name' contains all names matched to the user, while 'identity_id' provides a unique identifier, starting at 1, for all names passed in 'project_log' across all tables of the list.


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.