R/lexisDS3.R

Defines functions lexisDS3

Documented in lexisDS3

#'
#'  @title
#' lexisDS3
#'
#' @description
#' The third serverside function called by ds.lexis.
#' @details This is an assign function that simplifies the
#' returned output from ds.lexis. Specifically, without lexisDS3 the output consists of a table within
#' a list, but lexisDS3 converts this directly into a dataframe.
#' For more details see the extensive header for ds.lexis.
#' 
#' @return Data frame with `messageobj` object
#' @export
#'
lexisDS3 <- function(){

  outobj <- data.frame(base::get("messageobj", envir = parent.frame())$expanded.table)

  return(outobj)

}
#ASSIGN FUNCTION
# lexisDS3

Try the dsBase package in your browser

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

dsBase documentation built on Aug. 8, 2025, 6:05 p.m.