R/trueFalseFunc.R

Defines functions trueFalseFunc

Documented in trueFalseFunc

#' trueFalseFunc
#'
#' If radio button input == 1, the function returns true
#' and if the radio button value is 2, the function returns false
#'
#' @note \code{trueFalseFunc}
#' @return true or false depending on input
#' @param input, user inputs
#'
#' @examples
#'     x<- trueFalseFunc()
#'
#'
#' @export
#
trueFalseFunc <- function(input = NULL) {
if (is.null(input)) return(NULL)
if(input == 1) {
        TRUE
    }
else if(input == 2) {
        FALSE
    }
}

Try the crisprseekplus package in your browser

Any scripts or data that you put into this service are public.

crisprseekplus documentation built on Nov. 8, 2020, 5:39 p.m.