do_PA_to_dist: Convert percentage agreement matrix to distance matrix

View source: R/do_PA_to_dist.R

do_PA_to_distR Documentation

Convert percentage agreement matrix to distance matrix

Description

The input is assumed to be comma-separated vector of percentage agreements; that is, a square table with rows and columns for the same set of witnesses in the same order. The first column and row is taken to be witness names. Table elements are treated as numeric. (Each element of the diagonal should be 100.)

Usage

do_PA_to_dist(file)

Arguments

file

A file name, which can be a URL.

Details

The output is the distance matrix obtained by taking the 100 complement of the percentage agreement and dividing by 100.

This uses utils::read.csv to read the input CSV file.

Value

A distance matrix.

Examples

# do_PA_to_dist("my_percentage_agreements.csv")


tjfinney/ANTTV documentation built on July 1, 2024, 11 p.m.