Learn R Programming

lares (version 5.2.13)

seq_surnames: Surnames Order Sequence

Description

Generate a sequence of numbers that determines the order in which surnames should be listed based on the number of generations of ancestors you wish to include. This sequence follows the traditional Latin custom of assigning the father's surname first, followed by the mother's surname. The same logic extends systematically to higher generations, ensuring that the order of surnames remains consistent as you move upward through the family tree.

Usage

seq_surnames(n = 1)

Value

Integer vector.

Arguments

n

Integer. Number of generations to include in the sequence. Notice it will generate a vector with 2^(n-1) values.

Examples

Run this code
seq_surnames(1)
seq_surnames(2)
seq_surnames(3)
seq_surnames(4)

Run the code above in your browser using DataLab