ischecked: is checked function

View source: R/format.R

ischeckedR Documentation

is checked function

Description

this function is for converting common output of checkbox type variables to something else (e.g. default is converting the word 'Checked' to TRUE, and 'Unchecked' to FALSE)

Usage

ischecked(
  x,
  pos = "Checked",
  neg = "Unchecked",
  ret_pos = TRUE,
  ret_neg = FALSE
)

Arguments

x

vector containing a dichotomous 'checked' and 'unchecked' state

pos

the positive or affirmative state. default is 'Checked' (case sensitive)

neg

the negative state. default is 'Unchecked'

ret_pos

what the function returns for a positive instance. default is TRUE

ret_neg

what the function returns for a negative instance. default is FALSE

Examples

ischecked_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.