R/texto2lista.R

Defines functions texto2lista

#' Title
#'
#' @param text
#'
#' @return
#' @export
#'
#' @examples
texto2lista <- function(text){
  text %>%
    str_split("###referencia") %>%
    unlist() %>%
    map_chr(str_trim) %>%
    .[str_length(.)>=10] %>%
    map(extraePregunta) %>%
    unlist(recursive=FALSE)
}
fjbaron/cvetdc documentation built on Jan. 5, 2022, 12:25 a.m.