R/partition-filter.r

Defines functions partition_filter

Documented in partition_filter

#' Filter the dataset based on folder partitions
#' @param x a disk.frame
#' @param ... filtering conditions for filtering the disk.frame at (folder) partition level
#' @importFrom dplyr filter
#' @export
partition_filter <- function(x, ...) {
  expr = bquote(dplyr::filter(dataframe, .(substitute(...))))
  globals = find_globals_recursively(expr, parent.frame())
  
  attr(x, "partition_filter") = list(expr=expr, globals=globals)
  
  return(x)
}

Try the disk.frame package in your browser

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

disk.frame documentation built on Aug. 24, 2023, 5:09 p.m.