R/names-datas.R

Defines functions ps_names_datas

Documented in ps_names_datas

#' Names Data Frames
#'
#' Gets names of the data frames in by default the calling environment.
#'
#' @param envir The environment to get the names of the data frames for.
#' @return A character vector of the names of the data frames.
#' @export
#'
#' @examples
#' ps_names_datas()
ps_names_datas <- function(envir = parent.frame()) {
  chk_environment(envir)
  names <- objects(envir = envir)
  is_df <- vapply(names, is_df, TRUE, envir)
  sort(names[is_df])
}
poissonconsulting/poisdata documentation built on Jan. 11, 2024, 3:58 a.m.