2021-08-23 08:34:28 +02:00
|
|
|
#' @title Check if global variable is empty
|
|
|
|
|
#' @description Checks if a global variable has been filled with values other than their initial ones.
|
|
|
|
|
#' @details For a list of global variables, check the \code{globals.R} file.
|
|
|
|
|
#' @param g the global variable in quesiton.
|
|
|
|
|
#' @return TRUE if the variable still contains its original values, FALSE otherwise.
|
2021-08-23 14:34:20 +02:00
|
|
|
#' @importFrom stats sd
|
2021-08-23 08:34:28 +02:00
|
|
|
#' @author Waldir Leoncio
|
|
|
|
|
isGlobalEmpty <- function(g) {
|
2024-04-10 16:04:07 +02:00
|
|
|
return(sum(g) == 0 && is.na(sd(g)))
|
2021-11-10 14:02:35 +01:00
|
|
|
}
|