check_stac: Check if a 'stac' is valid.

View source: R/check_stac.R

check_stacR Documentation

Check if a stac is valid.

Description

Check if a stac is valid. Will stop if not

Usage

check_stac(stac)

Arguments

stac

the status of the colonist, see stac_to_str for values and meanings

Details

A valid stac ...

  • is numeric

  • has one element

  • the element has a whole-number value in range ⁠[0, 6]⁠

Value

nothing

Author(s)

Richèl J.C. Bilderbeek

See Also

Use stac_to_str to convert a stac to a string.

Examples

check_stac(0)
check_stac(1)
check_stac(6)

joshwlambert/DAISIEmainland documentation built on July 14, 2024, 5:40 p.m.