R/getVector.R

Defines functions getVector

Documented in getVector

#' Builds vector
#'
#' @return vector
#' @export
#'
#'
getVector <- function() {

  return <- getVector1()

  ok <- FALSE


  while(!ok) {



    do <- ""

    do <- whatToDo("What to do next?", "nothing", "add", "intersect", "subtract")


    if(do == "add") {

      return <- unique(c(return, getVector1()))

    }

    else if(do == "intersect") {

      return <- intersect(return, getVector1())

    }

    else if(do == "subtract") {

      return <- setdiff(return, getVector1())

    }

    else {

    }


    message(paste("Current vector is of length ", length(return), ".", sep = ""))


    ok <- ok("Vector ok?")

  }



  return


}
nicohuttmann/htmnanalysis documentation built on Dec. 6, 2020, 3:02 a.m.