process_seed: Process Seed Input for the Bootwar Game

View source: R/helper_funcs.R

process_seedR Documentation

Process Seed Input for the Bootwar Game

Description

This function processes the seed input for the Bootwar game. It converts the seed to an integer if it's not NA. If the seed is NA, it returns NULL.

Usage

process_seed(seed_input)

Arguments

seed_input

Numeric or NA. The input seed value from the Shiny app.

Value

Integer or NULL. If the input is not NA, it returns the integer value of the seed. Otherwise, it returns NULL.


bootwar documentation built on Oct. 1, 2023, 5:07 p.m.