allen_proportion_result: Calculate the proportion of each relation in a result vector

View source: R/AllenDataFrame.R

allen_proportion_resultR Documentation

Calculate the proportion of each relation in a result vector

Description

Divides through by the sum of observations in the result vector. Assigns the names of the result vector to the optionally sorted return vector.

Usage

allen_proportion_result(result_vector, sort = FALSE)

Arguments

result_vector

A result vector

sort

if TRUE sort in decreasing order else return unsorted vector

Value

A named vector with proportions

Author(s)

Thomas S. Dye


ArchaeoPhases documentation built on June 22, 2022, 1:05 a.m.