Skip to content

Commit

Permalink
append
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Sep 26, 2023
1 parent ae42b4f commit e16684f
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions R/block.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ new_filter_block <- function(data, column = character(),
)
}

#' @rdname new_block
#' @export
filter_block <- function(data, ...) {
initialize_block(new_filter_block(data, ...), data)
}

#' @param dat Tabular data in which to select some columns.
#' @param cols Column(s) to select.
#' @rdname new_block
Expand All @@ -245,6 +251,12 @@ new_select_block <- function(dat, cols = colnames(dat)[1L], ...) {
)
}

#' @rdname new_block
#' @export
select_block <- function(data, ...) {
initialize_block(new_select_block(data, ...), data)
}

#' @param dat Tabular data in which to select some columns.
#' @param x X axis variable.
#' @param y Y axis variable.
Expand Down Expand Up @@ -280,11 +292,11 @@ new_plot_block <- function(dat, x, y, plot_opts = list(color = "blue"), ...) {
)
}

#' @rdname new_block
#' @export
filter_block <- function(data, ...) {
initialize_block(new_filter_block(data, ...), data)
}
##' @rdname new_block
##' @export
#plot_block <- function(data, ...) {
# initialize_block(new_plot_block(data, ...), data)
#}

#' @rdname new_block
#' @export
Expand Down

0 comments on commit e16684f

Please sign in to comment.