R/as-data-frame.R

Defines functions as.data.frame.term_rcrd

#' @method as.data.frame term_rcrd
#' @export
as.data.frame.term_rcrd <- function(x, ..., stringsAsFactors = FALSE) {
  chk_flag(stringsAsFactors)
  # FIXME: Need stringsAsFactors? Use vctrs::new_data_frame()?
  data.frame(par = field(x, "par"), dim = I(field(x, "dim")), stringsAsFactors = stringsAsFactors)
}

Try the term package in your browser

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

term documentation built on Sept. 29, 2022, 5:14 p.m.