R/clean.R

Defines functions clean

Documented in clean

#Non-Dailies cleaning

#' Clean
#' 
#' Cleans, preventing squalor gain and decreasing squalor. For non-daily or monthly cleaning.
#' @family activities
#' @export

clean <- function(){
  stats$cleaned <<- 1
  if(stats$squalor > 0){
    stats$squalor <<- stats$squalor - 1
  }
  write.csv(stats, savespot)
  return("You are keeping squalor at bay.")
}
alexisblackbird/R-Survival documentation built on May 24, 2019, 3:01 a.m.