Learn R Programming

PELVIS (version 1.2.1)

metavar: Internal function used to get the five main characters described by Bruzek (2002) from the eleven visual traits observed on the human os coaxe.

Description

Converts a set of three visual traits to its correspoding main character (e.g. PrSu1, PrSu2 and PrSu3 are converted to PrSu).

Usage

metavar(x, threshold=2)

Arguments

x

A vector of characters of length 3, having three possible values: ‘f’, ‘i’ or ‘m’.

threshold

For internal purposes only: threshold for the majority rule; set to 2 by default since x is supposed to be of length 3 (cf. Bruzek 2002)

Value

A unique character value among three possible values: ‘F’, ‘0’ or ‘M’.

References

Bruzek, J. (2002) A method for visual determination of sex, using the human hip bone. American Journal of Physical Anthropology 117, 157--168. doi: 10.1002/ajpa.10012

Examples

Run this code
# NOT RUN {
# Here we create a set of three values for the traits observed on the preauricular surface:
prsu <- c(PrSu1="f", PrSu2="f", PrSu3="m")
prsu
# Final determination for the main character PrSu:
metavar(prsu)
# }

Run the code above in your browser using DataLab