zoo_order_period: Create a subset of a list of ordered periods based on...

View source: R/zoo_order_period.R

zoo_order_periodR Documentation

Create a subset of a list of ordered periods based on existing records

Description

A list of ordered periods is provided for the whole analysis. This function compare this list to periods represented in the dataset and shorten the reference list if needed.

Usage

zoo_order_period(
  df = NA,
  period_column = "period",
  lorder_period = c("EN", "MN", "LN", "EBA", "MBA", "LBA", "EIA", "MIA1", "MIA2", "RR",
    "ERE", "LRE", "LA")
)

Arguments

df

a dataframe with the archaeozoological assemblages and the period they belong

period_column

the column name of assemblage periods

lorder_period

a vector with the ordered periods, by default: c("EN", "MN", "LN", "EBA", "MBA", "LBA", "EIA", "MIA1", "MIA2", "RR", "ERE", "LRE", "LA"). See Nieto-Espinet al al. 2021 (https://doi.org/10.1371/journal.pone.0246201)

Value

the ordered list of periods existing in the dataframe

Examples


df <- zoo_read()
lorder_period <- zoo_order_period(df)


zoometh/zoowork documentation built on Aug. 21, 2022, 5:11 a.m.